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 ...
Search found 8 matches
- Sun Feb 18, 2007 8:16 pm
- Forum: Plugins
- Topic: Request: Display random entry
- Replies: 6
- Views: 4586
- Fri Feb 16, 2007 12:14 am
- Forum: Plugins
- Topic: Improved BBCode Plugin
- Replies: 10
- Views: 7560
- 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.
- 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 ...
The ...
- Sun Jan 14, 2007 2:31 pm
- Forum: Plugins
- Topic: Improved BBCode Plugin
- Replies: 10
- Views: 7560
- 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 ...
- 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 ...
Since I don't have the time to add ...
- Sat Jan 13, 2007 2:50 pm
- Forum: Bugs
- Topic: free tagging and v1.1beta5
- Replies: 9
- Views: 6158