MyBB Hacks

Full Version: Very Simple Random Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Put this code in our templates (where we want the random images will be displayed):

Code:
<img src="images/rand_images/<?=mt_rand(1,9)?>.png" alt="" />

Now, upload 1.png, 2.png, 3.png ..... 9.png to our images/rand_images folder.

That's our very basic and simple random images using Template Conditionals or PHP in Templates / Complex Templates plugin.
Just modify it as our needs.

Hello! I would like to ask how can I add a url on every image. I would like to use it on my affiliate system. Your help is greatly appreciated. Thank You!
Reference URL's