Jump to content


- - - - -

Rotating Banner


  • Please log in to reply
4 replies to this topic

#1 Kacen

Kacen

    Novice

  • Members
  • PipPip
  • 7 posts
  • IPB Version:N/A

Posted 28 January 2012 - 02:42 PM

Quite simple, I would like the banner on our forum to change with refreshes.

#2 Sandi

Sandi

    Coder

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

Posted 29 January 2012 - 07:52 PM

This tutorial I made for board 2.3 should be easily adaptable for 3.2.

http://invisionmoddi...m-logo-rotator/

Posted Image


#3 Kacen

Kacen

    Novice

  • Members
  • PipPip
  • 7 posts
  • IPB Version:N/A

Posted 30 January 2012 - 03:12 PM

What is the equivilent to "In ACP go to Look & Feel and select "Edit Template HTML" from the drop down menu of the skin you want to use. Then ==>All Global HTML ==>global_board_header."" in 3.#

#4 Sandi

Sandi

    Coder

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

Posted 30 January 2012 - 05:00 PM

ACP >> Look & Feel >> [Skin choice] >> global templates >> globalTemplate

Below:
<div id='logo'>

Probably put your code between the <else /> and </if>

Posted Image


#5 Sandi

Sandi

    Coder

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

Posted 30 January 2012 - 06:04 PM

Ok this is tested and works. Upload your images to /public/style_images/[skin choice]/
You images must be labeled logo1.png, logo2.png etc.

ACP >> Look & Feel >> [skin choice] >> global templates >> defaultHeader

Replace all that is there with this:
<if test="$random_number = rand(1, 4)">
	<a href='{$this->settings['board_url']}' title='{$this->lang->words['go_home']}' rel="home" accesskey='1'><img src='{$this->settings['img_url']}/logo{$random_number}.png' alt='{$this->lang->words['logo']}' /></a>
</if>

The second rand number should be the number of images you are rotating.

Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users