MyBB Community Forums

Full Version: Add another image below Logo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have the following code for header and the logo points to my main website. What I need is to add another small image just below that and link it to forum. However, I am unable to identify how to do it as I am not much better in php. Please help.

<table width="100%">
<tr>
<td>
<div class="logo"><a href="{$mybb->settings['homeurl']}"><img src="{$theme['logo']}" 
alt="{$mybb->settings['homename']}" title="{$mybb->settings['homename']}" /></a></div>
</td>
<td style="vertical-align: top" align="right">
<form method="post" action="{$mybb->settings['bburl']}/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="Quick Search.." onfocus="if(this.value == 'Quick Search..') 
{ this.value = ''; }" onblur="if(this.value=='') { this.value='Quick Search..'; }" class="textbox" size="25" />
<input type="submit" class="button" value="Search" />
</form>
</td>
</tr>
</table>

Link to my forum: www.robotplatform.com/forum
The forum image should come right below the page logo. Please help.

Thanks,
Praveen
Find:

<div class="logo"><a href="{$mybb->settings['homeurl']}"><img src="{$theme['logo']}" 
alt="{$mybb->settings['homename']}" title="{$mybb->settings['homename']}" /></a></div>

Add below:

<br /><div><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

You need to change the {$theme['logo']} variable if you want to use another image other than your board's logo, and you can then apply a class to the div and style it if needed.
Thanks for the response. However, the issue is with adding a logo image. For logo, we have theme logo. But where do i create a class / whatever style for this perticular image? This is required bcoz I need to call that perticular image in header. Can u kindly let me know how & where do I store the image to be called plz?

Cheers,
Praveen

Edit: If i am still not clear in explaining, all I need is to use the code something like : <img="[$theme[forumlogo]]">. But not sure where will I store this forumlogo and call it. I mean which tamplate/theme should I edit.
You want to use a different image for the second logo? Simply upload another image to your forum and instead of:

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

Use:

<img src="http://example.com/logo_2.gif" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />

Where http://example.com/logo_2.gif is the location of your second image.
(2011-03-30, 01:05 PM)faviouz Wrote: [ -> ]You want to use a different image for the second logo? Simply upload another image to your forum and instead of:

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

Use:

<img src="http://example.com/logo_2.gif" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />

Where http://example.com/logo_2.gif is the location of your second image.

Thanks a lot.. will give a try;..