Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:07 pm EST
Geeklog Forums
Random Quote Block
demianturner
Currently on offer there seems to only be a block that grabs quotes from a 'quotes' site.
This block allows you to store quotes in your own DB and pull them out once per page request. If an author name is available in the record, you can search it on google. The download comes with 119 quotes to get you started ;-)
Get the block here.
Dirk
Have you seen Tony's Fortune Plugin?
I also seem to remember that I downloaded a "random quotes" block once that read quotes from a text file. However, I was unable to find it again ...
But, as we all know, competition is a good thing ;-)
bye, Dirk
demianturner
Hi Dirk,
damn, I hadn't seen this, I usually only search under 'blocks'.
Well, my version is only a few lines of code, I guess it's enough for users looking for something simple ;-)
Was looking at the MVC stuff, you guys should check out PHPseagull for another approach to doing this:
http://www.phpkitchen.com/phpseagull/
If you look carefully you'll even find some GL methods in there, fully credited, of course. I'd be interested to hear your feedback.
cheers
Demian
Anonymous
demianturner
santos_douglas
Update
Never mind, I found I can drop it in using PHPmyAdmin
Gonzalo
I have a quotes.php file that return a random quote from a db, this works perfect, but i want to put this quote on the "header.thtml" (clean theme)...
anybody know how can i do this?
THANKS
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content