Back to vBulletin 3.0 Template Modifications

Random Content [Basic]
Mod Version: 1.00, by ResaleBroker

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 3
Released: 26 Jun 2005 Last Update: 26 Jun 2005 Downloads: 9
Not Supported Template Edits  

For those times when a database solution is overkill here is an alternative. With this easy modification you can display content, pulled randomly on page load, from a text file. Possible content includes tips, quotes, banners, etc.


1) Open the content.txt file and replace the current content with your own. (One quote, etc. per line.)

2) Upload the content.txt file to your server in the forum directory.

3) Open the rand_con.php file and modify the file path to the content.txt file on your server.

4) Upload the rand_con.php file to your server in the forum directory.


5) Open "Common Templates":
Admin CP >> Styles & Templates >> Style Manager >> All Style Options


6) In the phpinclude_start area add:
HTML Code:
ob_start(); 
include('rand_con.php'); 
$random_content = ob_get_contents(); 
ob_end_clean();
7) Now place a reference to $random_content where you want the resulting HTML to be displayed.

That's it! Your done!

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Miscellaneous Hacks Display groups of content in random order vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024