"Adore God. Reverence and cherish your parents. Love your neighbor as yourself, and your country more than yourself. Be just. Be true. Murmur not at the ways of Providence. So shall the life, into which you have entered, be the portal to one of eternal and ineffable bliss." - Thomas Jefferson
I made an update to my Super Simple Random Quote Generator. These changes are courtesy of Scott Hampton of www.creed3.net. The random quote generator is available in the WordPress plugins.
7261 userhttp%3A%2F%2Fwww.amorian.org%2F2009%2F05%2F08%2Frandom-quote-generator-updated%2FRandom+Quote+Generator+Updated2009-05-08+19%3A13%3A12Scotthttp%3A%2F%2Fwww.amorian.org%2F%3Fp%3D726 commented in " Random Quote Generator Updated "
I just tweaked your randomquotes plugin. It wasn't working for me when the URL is tweaked (by mod_rewrite I think), because the plugin couldn't find the quotes file.
1 user commented in " Random Quote Generator Updated "
Follow-up comment rss or Leave a TrackbackI just tweaked your randomquotes plugin. It wasn't working for me when the URL is tweaked (by mod_rewrite I think), because the plugin couldn't find the quotes file.
I changed the line
$file = substr($_SERVER['SCRIPT_FILENAME'],0,strrpos($_SERVER['SCRIPT_FILENAME'], "/")+1).'wp-content/plugins/randomquotes/quotes.txt';
to
$file = ABSPATH.'wp-content/plugins/randomquotes/quotes.txt';
Now it works for me.
Thanks for a useful plugin
Mike Pritchard
Leave A Reply