Forums
New posts
Home
What's new
New posts
New media
New media comments
Latest activity
Log in
Register
What's new
New posts
Menu
Log in
Register
Install the app
Install
Home
Forums
Main
General Discussion
Forum meme/banner general
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Stiff" data-source="post: 11718" data-attributes="member: 297"><p>I've never used XenForo but I'm reading that the header banner is part of the [ICODE]logo_block[/ICODE] section in the site template by default.</p><p></p><p>Wherever it is, setting the image itself should be as easy as inserting a number inline at the image source, randomly:</p><p>[CODE=php]src="/forum/data/assets/logo/banner<? rand(0, $number_of_banners) ?>.gif"[/CODE]</p><p>or, exhaustively different based on the current day:</p><p>[CODE=php]src="/forum/data/assets/logo/banner<? ((date('z') + 1) % $number_of_banners) ?>.gif"[/CODE]</p><p>etc. (mind the file type if they're not all gifs).</p><p></p><p>If you want to source images automatically from a thread, or otherwise avoid updating the banner count with every addition, there's a bit more to it, but as long as you can customize the page source it should be trivial. If you already knew all that and the issue is neatly setting multiple images as logos specifically, I don't know if you can do that in XenForo but there should be many workarounds.</p></blockquote><p></p>
[QUOTE="Stiff, post: 11718, member: 297"] I've never used XenForo but I'm reading that the header banner is part of the [ICODE]logo_block[/ICODE] section in the site template by default. Wherever it is, setting the image itself should be as easy as inserting a number inline at the image source, randomly: [CODE=php]src="/forum/data/assets/logo/banner<? rand(0, $number_of_banners) ?>.gif"[/CODE] or, exhaustively different based on the current day: [CODE=php]src="/forum/data/assets/logo/banner<? ((date('z') + 1) % $number_of_banners) ?>.gif"[/CODE] etc. (mind the file type if they're not all gifs). If you want to source images automatically from a thread, or otherwise avoid updating the banner count with every addition, there's a bit more to it, but as long as you can customize the page source it should be trivial. If you already knew all that and the issue is neatly setting multiple images as logos specifically, I don't know if you can do that in XenForo but there should be many workarounds. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Main
General Discussion
Forum meme/banner general
Top