Jump to content


- - - - -

IP.Board 2.3: Random logo rotator


  • Please log in to reply
3 replies to this topic

#1 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 15 July 2008 - 04:43 PM

This is the support topic for the tutorial Random logo rotator.  Please post here if you have any questions or feedback.

#2 Keiron

Keiron

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Kaiton
  • IPB Version:N/A

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-

#3 Sophia

Sophia

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Sophia
  • IPB Version:v3.0.x

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 Sophia

Sophia

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Sophia
  • IPB Version:v3.0.x

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:

<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 Posted Image

Edited by Sophia, 22 March 2012 - 11:45 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users