Monday, February 21, 2005

vxQuote

vxQuote is a small, efficient random quote script, allowing you to easily add/remove as many quotes as you like, directly in the file. No database or other files required, just change the quotes, upload, and add 1 line of php to your webpage. Finished!


[Right click and hit "save as/save target"]

The line of code you will need to add to your webpage is;



(That assumes vxquote.php is in the same directory as your webpage); if not, modify the line above to point to the directory where vxquote.php is. REMEMBER - your webpage needs to be saved as .php for this to work; using other extensions will NOT process the php code. Make sure you actually save the webpage as .php; it's a common mistake to name the webpage .htm.php by accident, so be careful.

For better randomness, I suggest using at least 10 quotes. If you want a certain quote to be shown more often than the others, then simply duplicate it a few times; then there's more chance of it being displayed.

No comments: