Bibs Random Content

Bibs Random Content

Karl-Heinz Klug

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.

Install

  1. Upload all the files in the zip to the /wp-content/plugins/bibs-random-content directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place the code into your template . Done

Reviews

0 out of 5 stars

  • Version: 1.0
  • Last updated: 15 years ago
  • Active installations: 10
  • WordPress version: 2.2
  • Tested up to: 2.8
  • PHP version: false