repository
Browse Downloads by alphabetical listing
[ 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | G | H | I ]
[ J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z ]

Title: Random Quotes 1.0.1

Description: This is a minor modification of the Random Quotes module developed by Mario Figge (a.k.a. Eggmcmuffin).

There are two changes:

1) The template file has been modified to correct display errors when using xoopsQuotes class. Instead the blockContent class is used so that it blends into current block background (rather than the white border). If you like the white block just replace this file with the one from Mario's download.

2) The SQL syntax has changed. I was having a problem with the quote displaying as a blank. This was because quotes had been put in and deleted leaving "holes" in the id list that is used to select quotes. I have simplified the query so that it just selects a random row from total number of rows available. This eliminates the use of the id number. This is much simpler and probably faster because one less SQL query is involved.

Note this module still does not contain:
1) Textsanitizer
2) Test to see if any quotes exist in the database. Therefore you must have at least ONE quote to display.
3) A submission method (that would be great).

Hope you find it useful.

P.S. Mario - hope this doesn't step on your toes. I just needed this module and decided to go off of yours! Please use these mods if you want.

Category Path: Miscellaneous > Quotes

Reviews total: 1


Reviewer : Quest 2006/07/28
Rated Resource
"Excellent Module works Great"
Easy to install, simple to use. Does and performs perfectly just as it says. I made the recommended change to allow longer quotes with no problems.

Thank you for this module!

Quest