[8WR] Ultimate Random Header

[8WR] Ultimate Random Header 1.0.0

No permission to download
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:
Author
Jaxel
Downloads
198
Views
1,649
First release
Last update

Ratings

4.00 star(s) 4 ratings

More resources from Jaxel

Latest updates

  1. USER Function Retroactively Working!

    With XenForo 1.1, the USER function is now working... Just create a custom user field with the...

Latest reviews

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 :)
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.
Jaxel
Jaxel
I dont know how the instructions could be any more clear...
Really useful trick to take a site from ordinary to awesome. Props to the author for releasing this.
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.
Top Bottom