Current time: 04-20-2014, 11:28 PM Hello There, Guest! (LoginRegister)


Jump to the post that solved this thread.
[How To?] Add another image below Logo
03-29-2011, 08:42 PM
Post: #1
Not Solved Add another image below Logo
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.

Code:
<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: http://www.robotplatform.com/forum
The forum image should come right below the page logo. Please help.

Thanks,
Praveen
Find all posts by this user
03-29-2011, 08:56 PM
Post: #2
Not Solved RE: Add another image below Logo
Find:

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

Add below:

Code:
<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.
Find all posts by this user
03-30-2011, 08:19 AM (This post was last modified: 03-30-2011 08:35 AM by praveen_khm.)
Post: #3
Not Solved RE: Add another image below Logo
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.
Find all posts by this user
03-30-2011, 01:05 PM
Post: #4
Not Solved RE: Add another image below Logo
You want to use a different image for the second logo? Simply upload another image to your forum and instead of:

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

Use:

Code:
<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.
Find all posts by this user
03-30-2011, 06:04 PM
Post: #5
Not Solved RE: Add another image below Logo
(03-30-2011 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:

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

Use:

Code:
<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;..
Find all posts by this user
Jump to the post that solved this thread.


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication