• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Rotating header images

masterchief

Well-known member
#1
I would like to implement rotating header images via scripting .. how is this done with xenForo. I will be using imagerotator addon from longtail video, so I already have the code and everything that I need. I just need to know where to place it and can it be done via ACP or template modification. Please advise.
 

masterchief

Well-known member
#4
I already have source code to make it happen... I want to add directly to generated HTML, hopefully via custom HTML widget if it exists.
 

Jake Bunce

XenForo moderator
Staff member
#5
If you just need to insert your code into the HTML then you can edit this template:

Admin CP -> Appearance -> Templates -> logo_block

This template contains the code for the header image.
 

masterchief

Well-known member
#7
where do I place this code on order to have them display in the page header?

Code:
<  img src="http://path_to_images/header_<?php echo(rand(1,5)); ?>.jpg"
width="image_width" height="image_height" alt="image_alt_text" />