Search found 8 matches

by meine-erde
Sun Feb 18, 2007 8:16 pm
Forum: Plugins
Topic: Request: Display random entry
Replies: 6
Views: 4586

I don't know whether this statements are all supported by Postgres or SQLite, but one could first get the max and min id of the posts
SELECT
MIN(id) as id_min,
MAX(id) as id_max
FROM `serendipity_entries`
WHERE 1;
Knowing these values, one could generate a random float between 0 and 1 in php ...
by meine-erde
Fri Feb 16, 2007 12:14 am
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

Okay, I understand, that there are ways to fulfill most of my requirements with existing tools. But the main point (at least for me) is: I don't want to use that many tools just because each of them works a bit different.

With the regexMarkup Plugin I can create HTML like tags, wich are then ...
by meine-erde
Sun Jan 14, 2007 4:16 pm
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

So, now I have an answer. He releases his code under the MIT-License. That license is considered compatible with BSD (at least with the 3-clause BSD) so there should be no further licensing problems.
by meine-erde
Sun Jan 14, 2007 3:20 pm
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

I've written a mail to Christian, asking him for permission to release his code under bsd. I haven't got an answer jet, but according to german Wikipedia the 3-clause BSD license used for s9y is compatible with the GPL. So we can take his code and release the full package under the bsd license.

The ...
by meine-erde
Sun Jan 14, 2007 2:31 pm
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

Since the plugin should contribute in adding more security to s9y I agree to your security requirements.

There should be noted, that I'm pretty packed with work at the moment, so the development could use some time. I'm going to use this thread to advertise some early versions on time so the ...
by meine-erde
Sun Jan 14, 2007 2:16 pm
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

I could give the user the opportunity to enter the definitions in a textbox. But since it is plain php (one function per tag), I assume that only advanced users directly type the functions. Therefore only administrators should be given the right to add new functions. Since they are directly executed ...
by meine-erde
Sun Jan 14, 2007 1:57 pm
Forum: Plugins
Topic: Improved BBCode Plugin
Replies: 10
Views: 7560

Improved BBCode Plugin

I'm relatively new to the s9y community and as of today feel the pains of switching the blogging platform. I used to work with a homegrown system written entirely be myself, which I felt was the best way to achieve maximum flexibility in terms of configuration.

Since I don't have the time to add ...
by meine-erde
Sat Jan 13, 2007 2:50 pm
Forum: Bugs
Topic: free tagging and v1.1beta5
Replies: 9
Views: 6158

The original code looks like this:
for (freetag in freetags) {
if (freetags[freetag] && trim(freetags[freetag].toLowerCase()) == addTag.toLowerCase()) {
inList = true;
}
}
It seems as if there is a problem in the assignment of freetag in the for-in loop. If I manually check the content of the ...