Jump to content

Inserting a banner on overall_header.tpl


zigojacko

Recommended Posts

(phpbb)

 

Hi all,

 

Please could someone help me identify something that I am overlooking? I am trying to insert either a flash banner or an animated gif to the overall_header.tpl file so that it appears at the top of the pages.

 

Although I have done this numerous times successfully, for some reason I just simply can't get it to work this time withouit screwing up the formatting and layout of my phpbb forums.

 

Please could someone take a look at the below code and point out to me where I should be inserting my code to insert th banner?

 

  <table width="90%" cellspacing="0" cellpadding="0" border="0" align="center">
    <tr> 
      <td><a href="{U_INDEX}"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
      <td align="center" width="100%" valign="middle">
        <table cellspacing="0" cellpadding="2" border="0">
          <tr> 
            <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>  
					<!-- BEGIN switch_user_logged_out -->
					 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span> 
					<!-- END switch_user_logged_out -->
             </td>
          </tr>
          <tr>
            <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>   <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>   <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
          </tr>
        </table></td>
	</table>

	<br />

 

This code is taken from the overall_header.tpl file and below is the code I have been trying to insert on line 64 which is where  </table></td> is  displayed four lines from the bottom.

 

		    </tr>
		<tr><td colspan="2" align="center"><div align="center"><img name="***name of banner***" src="***link to banner***" width="468" height="80" alt="***description of banner***">
                        </td>
	  </tr>

 

Please help, any feedback appreciated. Thanks in advance :)

Link to comment
https://forums.phpfreaks.com/topic/97213-inserting-a-banner-on-overall_headertpl/
Share on other sites

Try this:

<table width="90%" cellspacing="0" cellpadding="0" border="0" align="center">
		<tr><td colspan="2" align="center"><div align="center"><img name="***name of banner***" src="***link to banner***" width="468" height="80" alt="***description of banner***">
                        </td>
	  </tr>
    <tr>
      <td><a href="{U_INDEX}"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
      <td align="center" width="100%" valign="middle">
        <table cellspacing="0" cellpadding="2" border="0">
          <tr> 
            <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>  
					<!-- BEGIN switch_user_logged_out -->
					 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span> 
					<!-- END switch_user_logged_out -->
             </td>
          </tr>
          <tr>
            <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>   <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>   <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/Glass/images/{T_BODY_BACKGROUND}/icon_mini_nav.gif" width="15" height="15" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
          </tr>
        </table></td>
	</table>

	<br />

You can see I've added the code immediately after the first TABLE tag. As I said on the phone - I've not much experience (if any) with phpBB and this looks the logical place to put this. If it doesn't work hopefully someone else who does have some experience with phpBB code can have a go.

 

EDIT: Just removed a TR tag - try again.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.