Messages - Wordzilla [ switch to compact view ]

Pages: prev1 ... 37 38 39 40 41 [42] 43 44 45 46 47 ... 92next
206
Mouser, u scared me!

do i understand that your running the script off mrcody, and each time a quote needs to be shown, your mycody.com hosted script re-downloads the quote file from users pc, and picks one and displays it.. each time?

that's soooo untrue (otherwise plz rename my forum name to wordsucker  :D :D)! It fetches only a string with maximum length of 450 characters from the user server (consumes very little bandwidth). And the script on mrcody.com will stop running after 3 seconds of execution, so there's even less chance it could overload servers.

set_time_limit(3);
$len_limit = 450;

Remember the Random quote picker on the user server is responsible for picking out a single quote every time it runs.  :)

It is so designed that the user will not need PHP GD2 library on his server in order to get the thing to work (just call the text-to-image converter on mrcody.com to do the job), while offering the flexibility for him to script his own random quote generator (he may prefer getting quotes from mysql, adding more ASCII flavors to the end output quote, etc.)

207
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:

Screenshot - 14_05_2007 , 1_56_21 PM.png
Screenshot - 14_05_2007 , 1_58_43 PM.png


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

Screenshot - 14_05_2007 , 3_17_05 PM.png




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:


208
For DC Fans: Bring DC Forum to your Desktop for searching/browsing/etc.

Finding stuff on DC is now a piece of cake to me. 8)

btw, I'll upload most up-to-date dc forum archive soon. Stay tuned!

209
btw, the links open in IE eventhough my default browser is Firefox..

R u sure? If u are already using the latest version (v1.1.4), then congratulations you have found a bug for me to fix!  ;)

210
General Software Discussion / Re: .Net Framework
« on: May 13, 2007, 06:49 AM »
It's just like vb runtime and java runtime environment, or even Adobe flash player plugin for your browsers.

".net applications (and thus .net framework 2) are becoming more and more popular; if you install new software on a fairly regular basis you are going to need to install it sooner or later" -- Mouser

To learn more about it, read http://en.wikipedia.org/wiki/.net_framework


I was told I needed it to run ie7, yet I am running ie 7 without it.

Perhaps Windows Update has already installed it for you (clandestinely! without your knowledge!), but no worries, it won't harm your PC.

Pages: prev1 ... 37 38 39 40 41 [42] 43 44 45 46 47 ... 92next
Go to full version