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

[8wayRun.Com] Ultimate Random Header 1.0.0

Forced/User-Selected/Random Image

  1. Jaxel
    Remember, I am unemployed programmer and this mod is free! If you appreciate the work here, please donate.

    You guys would not believe how many messages and emails I get from people asking how I do the random header background I have on 8WayRun.Com. Well as it turns out, this is actually I script I wrote several years ago, and have been reusing since vBulletin3, vBulletin4 and now XenForo.

    Features:
    • Will search for matching nodes/wikis/portal when displaying images
    • Will search for matching user preferences when displaying images
    • Full support for the following image types: JPG, GIF and PNG
    Demo:
    Installation:
    • upload the entire contents of the attached zip to your XenForo root
    Usage Notes:
    • Anywhere you want to use this, instead of a link to an image, link to the following:
    styles/header/header.php?node={$quickNavSelected}&user={$visitor.customFields.header}
    • You CAN NOT use this system in the built in XenForo CSS system. XenForo aggressively caches it's CSS files, so the whole semblance of "dynamic" or "random" is just not possible. If you want to use this, such as I have on 8WayRun.Com, you must put the property directly into the element in your templates.
    • This system has a hierarchy of how it finds images to place. NODE > USER > RANDOM

      The first thing it will check is for "node". It will take the value in this field and try to find an image matching the value from the folder /styles/header/nodes/; it will first check for a PNG, then a JPG, and finally a GIF. Nodes currently can be "node-#", "wiki-#" or "portal".

      If it can't find a valid node image, it will then search for "user". The user operation pulls the images from the /styles/header/users/ folder. In order to use this feature, XenForo 1.1 is required. You must create a new custom user field ID called "header" and add preferences options with the value being the name of your image (not including the extension).

      If after all that, it still can't find a valid image, either from nodes or user customized, it will instead search the /styles/header/random/ and find an image at random to display.
    Donations:
    Xorex Xor, SanMan, Mirovinger and 3 others like this.

Recent Updates

  1. USER Function Retroactively Working!

Recent Reviews

  1. phalseid
    phalseid
    5/5,
    Version: 1.0.0
    Easy to use & quick setup :D
    First I had though that it would be alot of work to implement.
    I was afraid to say the least, but I just had to drag & drop the the downloaded files into the FTP and copy & paste 1 line.

    Thanks for releasing this :)
  2. 51463
    51463
    1/5,
    Version: 1.0.0
    The instructions are not clear and the developer does not answer or help anyone who is not familiar with coding. I was not able to install this add-on.
    1. Jaxel
      Author's Response
      I dont know how the instructions could be any more clear...
  3. Bios Element
    Bios Element
    5/5,
    Version: 1.0.0
    Really useful trick to take a site from ordinary to awesome. Props to the author for releasing this.
  4. intradox
    intradox
    5/5,
    Version: 1.0.0
    Very useful feature for boards that have extensive subforums where a distinction for the user is necessary. also is great to have custom banners for wiki, gallery, chat, etc. in order to make it really feel like a community than just a forum.