Random Content [Basic]
This modification is in the archives.
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(); 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 |