Takes a random quote, picture or adcode from a text file and displays it anywhere in a WordPress Template
|Author:||Karl-Heinz Klug und Birgit Hoffmann (profile at wordpress.org)|
|WordPress version required:||2.2|
|WordPress version tested:||2.8|
|Added to WordPress repository:||16-04-2009|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|Total downloads:||1 090|
Click to start download
Takes a random quote, picture or adcode from a text file and displays it anywhere in a WordPress Blog Template. To display the content, use <?php randomcontent();> anywhere in the template.
The data is stored in the file random.dat one line per content block (see sample). You can use text, html, adsense code, whatverver you want. Chmod the random.dat file to 777.
Question: How to i place content into the random.dat file?
Answer: Put all the code you like to display in one line. So if you have an ad code with 4 lines as example, delete the line braks, so that the code is in one line, thats all.