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.


System Requirements:

Other files by: goghs

iContent (2004/04/28)
ArMS (2004/04/28)
Frozen Bubble (2004/04/28)
TinyContent (2004/04/28)
WikiMod (2004/04/28)
FreeContent WebDigest (2004/04/28)
ArchContact (2004/04/28)
Stories (2004/04/28)
MS Weather (2004/04/28)
WMP Downloads (2004/04/28)
Chat MX 1.1 (2004/04/28)
MyReviews (2004/04/28)
Galeria (2004/04/28)
IRC Chat (2004/04/28)
MyAds (2004/04/28)
Topics Blocks (2004/04/28)
Trackback (2004/04/28)

The comments are owned by the author. We aren't responsible for their content.

 Re: Random Quotes 1.0.1 php5

to make this work in php5

in admin/index.php replace




 Re: Random Quotes 1.0.1 php5

Thank you for the inspiration Mjoel

Edited core, "hacked" template and Czech language files are available on my pages:

Tested on XOOPS 2.4.4



Top Module Downloads

Who's Online

93 user(s) are online (3 user(s) are browsing Module Repository)

Members: 0

Guests: 93



Goal: $100.00
Due Date: Feb 28
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!