phpBB code question

They have: 344 posts

Joined: Jun 2002

I went and looked at someone's website who had a banner up to like that and I found this code in the body.


<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" class="forumline">

        <tr>
        <td background="templates/Coldsteel/images/catbg2.gif" height="28" align="center" valign="middle" nowrap="nowrap">
        <span class="mainmenu">:: <a href="index.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Home </a>
        <span class="mainmenu">:: <a href="faq.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">FAQ </a></span><span class="mainmenu">:: <a href="search.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Search </a>:: <a href="memberlist.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Memberlist </a>:: <a href="groupcp.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Usergroups </a>
                  :: <a href="profile.php?mode=register&amp;sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Register </a></span>
        <span class="mainmenu">:: <a href="profile.php?mode=editprofile&amp;sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Profile </a>:: <a href="privmsg.php?folder=inbox&amp;sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Login to check your private messages </a>:: <a href="login.php?sid=c6b5befbf035ec9c3ced38595333e7fe" class="mainmenu">Login</a> ::</span>
        </td>
        </tr>
      </table>
'

Where abouts in the overall_header.tpl should I place it? I think that it goes in the body but I am not sure what code to overwrite. Is it this:


<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" />

<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
   <tr>
      <td class="bodyline"><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><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></span><span class="mainmenu">&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="http://cmdirector.neosurge.net" class="mainmenu">The Site</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;<a href="{U_SITE_HIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_statistics.gif" width="12" height="13" border="0" alt="{L_SITE_HIST}" hspace="3" />{L_SITE_HIST}</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></span>&nbsp;
                  <!-- END switch_user_logged_out -->
                  </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>
'

If so can you tell me whereabouts in there please?

They have: 344 posts

Joined: Jun 2002

ooh...that code is a mess! I am still unsure where to place it. So any help is much appreciated!

Busy's picture

He has: 6,151 posts

Joined: May 2001

depending how much of the heading you want to replace, set the inner tables border to 1 (border="1") and see how much it affects of the layout, if its not enough, do the same to the outer table.

If you just want to replace the logo, rename logo_phpBB.gif to logo_phpBB-old.gif and make a new logo_phpBB.gif image and upload

They have: 344 posts

Joined: Jun 2002

No! What I want is for everything to be in a line at the top like:

--------------------------------------------------
BANNER
--------------------------------------------------

Link Link Link Link Link Link Link

--------------------------------------------------

Busy's picture

He has: 6,151 posts

Joined: May 2001

AT the moment the code in the main table holds it all together and the nested tables diplays the links etc, turn the table borders to 1 and see where they start/stop and adjust to suit

NOTE, before changing the code, save a copy of the page and name it top.old or something, so if you do make a boo boo you can always revert back to the orginal.
When I changed my one it took me forever to find one section to change a link, then I found it but had messed up another bit further down.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.