Rotating header images

masterchief

Well-known member
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
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
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
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" />
 

masterchief

Well-known member
these random images push the logo image right or left based upon where script is placed. Is there a way to allow for overlapping of images?
 
Top