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

Rotating header images

Discussion in 'XenForo Questions and Support' started by masterchief, Jan 9, 2011.

  1. masterchief

    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.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. ArnyVee

    ArnyVee Well-Known Member

  4. masterchief

    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.
     
  5. Jake Bunce

    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.
     
  6. Digital Doctor

    Digital Doctor Well-Known Member

    8wayrun.com does this well, ask Jaxel how he does it.
     
  7. masterchief

    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" />
    
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  9. masterchief

    masterchief Well-Known Member

    now I am getting somewhere with that!! thanx
     
  10. masterchief

    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?
     

Share This Page