Other Software > Announce Your Software/Service/Product
Forum Random Quotes Generator - salting your forum signature with wits
Wordzilla:
This is a php script that randomly picks out a quote from your quotes collection and display it in image format on forums (i.e. DonationCoder.com ;)). Every time a visitor views your forum profile or signature below your post, he sees a random fun quote. It's fairly customizable and super easy to use.
See it in action:
Forum Random Quotes Generator - salting your forum signature with wits
Forum Random Quotes Generator - salting your forum signature with wits
How it works
Two components powers this script:
1. Text-to-image converter, which converts a text string into image that displays in your forum signature. (can be found in qb.zip)
2. Random quote picker, which picks out a quote from your quotes collection and feed it to text-to-image converter (can be found in myquotes.zip)
Requirements
You need to have ftp write access to a web server that supports PHP, otherwise I'll be very happy to receive "please include this FUN quote" requests from you. ;)
Installation and Usage
1. The no-brainer way, no php knowledge required
Download myquotes.zip, uncompress and upload files to your web server (e.g. http://yoursite.com/myquotes/), add quotes to quotes.txt (sample provided), one quote per line.
Modify your forum signature to display the random quote image, by adding these lines:
--- ---[b]Random Quote:[/b]
[img]http://www.mrcody.com/qb/q.php?u=yoursite.com/myquotes/[/img]
5 mins that's all it takes to get it working. 8)
2. If you decide to hack the script...
The Text-to-image converter and Random quote picker scripts are now "sold separately" ;), for I'm reluctant to complicate things for people with no php knowledge - this way they only have to deal with one php file (which works right out of the box) and one plain text file that contains quotes.
You may want to seriously customize the script, plz feel absolutely free to do so.
Note: your web server PHP engine must be compiled with GD2 library in order for the Text-to-image converter (q.php) to work.
Customization Options
There are many url parameter that you can make use of when calling the text-to-image converter script.
f - fontname (e.g. default)
c - color code in hex (e.g. 000000)
b - background color code in hex (e.g. FFFFFF)
s - line spacing (e.g. 3) (range = 1-5)
w - image width (e.g. 500) (range = 200-600)
pt - top padding (e.g. 3) (range = 0 - 10)
pl - left padding (e.g. 1) (range = 0 - 10)
a - author line spacing (e.g. 3) (range = 0 - 10)
i - image format (e.g. 1) (default 0 = png, 1 = gif, 2 = jpeg)
u - url, without "http://" (e.g. yoursite.com/myquotes/)
Note: we have a few fonts available for your choice:
default
courier
iso915 (not set to as default, but also recommended)
proggyclean
proggysquare
trisk
reize
Usage:
--- ---[img]http://mrcody.com/qb/q.php?u=yoursite.com/myquotes/[/img]
[img]http://mrcody.com/qb/q.php?u=yoursite.com/myquotes/&s=3&c=999999&pt=4&f=iso915[/img]
[img]http://www.mrcody.com/qb/q.php?u=www.mrcody.com/myquotes&c=222222&b=e9f2fe&pl=3&pt=4[/img] <-- that's what i have in my forum signature.
How to add quotes to quotes.txt
One quote per line. Text is to be auto-wrapped by the script so dont worry about line wrapping. Two consecutive vertical bars || represents a hard line break.
Example:
"There is Windows ME, Windows NT and Windows CE... So we have Windows CEMENT"||-- Joto
Forum Random Quotes Generator - salting your forum signature with wits
Author's note:
You are allowed to download, use and modify the script in anyway you like. And as long as you don't post ASCII porn and is a member of DonationCoder.com, you are allowed to call the text-to-image converter script on www.mrcody.com for free. :D :D
I'd really LOVE to see more dynamic fun quotes (not at all necessarily from DC members) in forum signatures here everyday!! :Thmbsup:
Grorgy:
>:D >:D >:D > What a great idea, mow now for some quotes :o
nudone:
fantastic.
i've really enjoyed reading the quotes on wordzilla's posts too.
mouser:
great! :up:
hamradio:
Cool I just created a quotes file and it has been added to my signature as you can now see! :) :up:
Navigation
[0] Message Index
[#] Next page
Go to full version