My own logo on the right side?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
erikhrast
Registered User
Posts: 5
Joined: Tue Jan 24, 2006 11:03 pm

My own logo on the right side?

Post by erikhrast »

Hello...

Is it possiblle to add another logo (phpbb on the left) or small banner on the right side of forum header?

Thanks,
Eric
Reggie ray
Registered User
Posts: 105
Joined: Mon Oct 24, 2005 6:20 pm

Post by Reggie ray »

Wht dint you Replace the PHPBB logo with yours ? - thats optinal to keep - as long as you keep the Link at the bottom you can chnage what ever you want (as far as i know)
erikhrast
Registered User
Posts: 5
Joined: Tue Jan 24, 2006 11:03 pm

Post by erikhrast »

I already have my own logo on the left. But I want another logo on the right side...
biscuitkeeper
Registered User
Posts: 778
Joined: Wed Jan 26, 2005 11:44 am
Location: NE Scotland

Post by biscuitkeeper »

Yes.. you can add anything you wish as long as it isn't illegal of course :wink:

Just edit overall_header.tpl to include the new image (you might have to add tables to lay the images out better)

BK
Patience of a Saint :: Memory of a Goldfish.
erikhrast
Registered User
Posts: 5
Joined: Tue Jan 24, 2006 11:03 pm

Post by erikhrast »

I'm not such expert in php.
I need some example code... where could I get it?

Thanks...
TheJCMan
Registered User
Posts: 17
Joined: Wed Jan 25, 2006 6:33 pm
Location: Edinburgh
Contact:

Post by TheJCMan »

If you are not very good at coding but have a WYSIWYG editor like Dreamweaver, then you can open the file overall_header.tpl and edit it manually that way on the design page.

If you dont have a page editor like that try the following :

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]---------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
				<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
				<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
				<table cellspacing="0" cellpadding="2" border="0">
					<tr> 
						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
						<!-- BEGIN switch_user_logged_out -->
						&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
						<!-- END switch_user_logged_out -->
						</span></td>
					</tr>
					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>
				</table></td>
			</tr>
		</table>

# 
#-----[ REPLACE WITH ]---------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
				<td width="8%" align="center" valign="middle"><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
				<td align="center" width="89%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
				<table cellspacing="0" cellpadding="2" border="0">
					<tr> 
						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
						<!-- BEGIN switch_user_logged_out -->
						&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
						<!-- END switch_user_logged_out -->
						</span></td>
					</tr>
					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>
				</table></td>
			    <td align="center" width="8%" valign="middle"><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
			</tr>
		</table>

# 
#-----[ IN-LINE FIND ]---------------------------------------------
#
<td align="center" width="8%" valign="middle"><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>

# 
#-----[ IN-LINE FIND ]---------------------------------------------
#
<a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a>
Edit that line to show your oen logo, or alternativly edit the whole line/section to your liking.
Giggidy Giggidy Goo
Andrew Kucienski
Registered User
Posts: 1050
Joined: Mon Oct 24, 2005 2:06 am
Location: Far far away!!!

Post by Andrew Kucienski »

If you are going to use Dreamweaver read this first: How to customize Macromedia Dreamweaver MX

This might also be a good tutorial for you: How to edit your forum's header and footer. Includes information on how to specify your own, custom logo.
erikhrast
Registered User
Posts: 5
Joined: Tue Jan 24, 2006 11:03 pm

Post by erikhrast »

TheJCMan ... your code is working, but the white background disappers... why?
TheJCMan
Registered User
Posts: 17
Joined: Wed Jan 25, 2006 6:33 pm
Location: Edinburgh
Contact:

Post by TheJCMan »

erikhrast wrote: TheJCMan ... your code is working, but the white background disappers... why?


What white background ?

No colours should have been altered in that code as all I did was add an extra column.

Have you got an example such as a link to your forum ?
Giggidy Giggidy Goo
erikhrast
Registered User
Posts: 5
Joined: Tue Jan 24, 2006 11:03 pm

Post by erikhrast »

I solve the problem... thank you all!
TheJCMan
Registered User
Posts: 17
Joined: Wed Jan 25, 2006 6:33 pm
Location: Edinburgh
Contact:

Post by TheJCMan »

erikhrast wrote: I solve the problem... thank you all!


What was the problem out of curiosity ?
Giggidy Giggidy Goo
Locked

Return to “2.0.x Support Forum”