MyBB Community Forums

Full Version: Putting a Banner in the Forum Header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-11-22, 08:09 PM)db phantom cm Wrote: [ -> ]Wouldn't this put the exact same "logo.png" on every forum, and not a unique one per forum?

What file is this that you are showing the mod for?

it would add the same logo to the header and would allow another below it via the plugin ... and when on pages that are not forums the transparent image gives a place holder so you don't screw the rest of the display just look at the example links in the previous post

The mod used to produce the unique image per forum is the custom header logo plugin
OK - great. let me try that. Smile
OK,

I am looking at the customforumlogo.php int he Plugin folder. I see the customforum_run_forms($page) function, but don't see it being called anywhere except from within the plugin itself.

I see the code that looks int he DB and checks if a customlogo has been set and if so replace the regular logo with the custom one - but again - I only see this called from withing that PHP file.

I cannot see where I need to actually change the code to not replace but instead place under breadcrumbs.

I've looked at the Header template and at best it puts the same custom logo in both areas - not what I was hoping for. Sad
(2011-11-22, 09:25 PM)db phantom cm Wrote: [ -> ]OK - great. let me try that. Smile
OK,

I am looking at the customforumlogo.php int he Plugin folder. I see the customforum_run_forms($page) function, but don't see it being called anywhere except from within the plugin itself.

I see the code that looks int he DB and checks if a customlogo has been set and if so replace the regular logo with the custom one - but again - I only see this called from withing that PHP file.

I cannot see where I need to actually change the code to not replace but instead place under breadcrumbs.

I've looked at the Header template and at best it puts the same custom logo in both areas - not what I was hoping for. Sad

Read what I wrote !!!

In header above the container div add something like
<img src="images/FX/main/logo1.png"  alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />
This is your board logo this is the picture that remains constant
in fact here is my header
<div id="panel"><span style="float:right;">{$lang->welcome_current_time}</span></div></br>
<center>
<img src="images/FX/main/logo1.png"  alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />
</center>

<div>{$welcomeblock}</div>
<div id="container">

		<div id="header">
			<div class="logo">
<img src="{$theme['logo']}"  alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />

                         </div>

			

		<hr class="hidden" />
		
		<div id="content">

                         {$fancymess}
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
                        {$sitenoticecolors1}{$sitenoticecolors2}{$sitenoticecolors3}{$sitenoticecolors4}{$sitenoticecolors5}
               


<div id="panel">

</div></div></div></br></br></br>
as you can see the lower entry will give you the custom logo per forum but it is important to produce a transparent picture to put into
acp->themes->yourtheme->Board Logo

I have added a transparent picture to the post, there should be no need to alter the original plugin file
OK - Got it to finally work, but had to modify the bottom and top of my header. Thanks. This actually works now. Smile
Pages: 1 2