This is the support topic for the tutorial Random logo rotator. Please post here if you have any questions or feedback.
IP.Board 2.3: Random logo rotator
Started by Sandi, Jul 15 2008 04:43 PM
3 replies to this topic
#1
Posted 15 July 2008 - 04:43 PM
#2
Posted 24 November 2008 - 10:39 PM
Thankyou so much. This is exactly what i've been looking for. Its simple and it works!
Kind regards,
-Keiron-
-Keiron-
#3
Posted 22 March 2012 - 05:27 PM
Is it possible to use this on Invision 3.3? I couldn't find the file... so much has changed. Thanks
#4
Posted 22 March 2012 - 10:36 PM
Found the solution for 3.3:
Use the "Easy Logo Changer" at least once, doesn't matter what image you upload. (Admin, Look & Feel, Easy Logo Changer, change the logo on the skin you wish to use)
- Then, open the defaultHeader in GlobalTemplates (Admin, Look & Feel, Manage Skin Sets & Templates, Manage Templates & CSS of the skin you wish to use)
Find:
and change that to
In the example above, (rand(1,16) indicated you wish to use 16 random images. You can use any number, depending on the amount of imagines you have!
Name your images logo1.jpg, logo2.jpg, etc...
Next, create a folder named "banners" in your public/style_images/(folder of your skin).
Upload your banner images to that folder.
Enjoy your ever changing forum
Use the "Easy Logo Changer" at least once, doesn't matter what image you upload. (Admin, Look & Feel, Easy Logo Changer, change the logo on the skin you wish to use)
- Then, open the defaultHeader in GlobalTemplates (Admin, Look & Feel, Manage Skin Sets & Templates, Manage Templates & CSS of the skin you wish to use)
Find:
<a href='{$this->settings['board_url']}' title='{$this->lang->words['go_home']}' rel="home" accesskey='1'><img src='{parse replacement="logo_img"}' alt='{$this->lang->words['logo']}' /></a>
and change that to
<a href='{$this->settings['board_url']}' title='{$this->lang->words['go_home']}' rel="home" accesskey='1'><img src='http://netdna.invisionmodding.com//public/style_images/invisionmodding/banners/logo{parse expression="(rand(1,16))"}.jpg' alt='{$this->lang->words['logo']}' /></a>
In the example above, (rand(1,16) indicated you wish to use 16 random images. You can use any number, depending on the amount of imagines you have!
Name your images logo1.jpg, logo2.jpg, etc...
Next, create a folder named "banners" in your public/style_images/(folder of your skin).
Upload your banner images to that folder.
Enjoy your ever changing forum
Edited by Sophia, 22 March 2012 - 11:45 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





Contributor










