Forum Moderators: coopster

Message Too Old, No Replies

Help with header. Care to help?

         

cien

6:34 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



Hi guys. A question here. I want to add a header to my phpbb boards but I don't seem to get it right. It is a simple header which is a table with 3 rows and 6 columns, that's it. I tried to do it and for some reason it didn't show the outer boarders of the table. Maybe I'm putting it in the wrong place. Can you tell me where exactly to put that table and any specific commands if any I need to enter?

Below is the overall header.tlp from the phpbb boards.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Author" content="http://www.phpbbstyles.com" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/ca_aphrodite/style.css" type="text/css" />
<script language="javascript" type="text/javascript" src="templates/ca_aphrodite/scripts.js"></script>
{CA_INLINE_CSS}
<!-- IE conditional comments: [msdn.microsoft.com...] -->
<!--[if IE]>
<style type="text/css">
/* IE hack to emulate the :hover & :focus pseudo-classes
Add the selectors below that required the extra attributes */
.row1h, .row1h-new { behavior: url("templates/ca_aphrodite/pseudo-hover.htc"); }
</style>
<![endif]-->
</head>
<body onload="PreloadFlag = true;">
<a name="top"></a>
<table cellspacing="0" width="100%" id="forum">
<tr>
<td class="forum-header" align="left"><a href="{U_INDEX}" title="{L_INDEX}"><img src="templates/ca_aphrodite/images/logo.gif" height="63" alt="{L_INDEX}" /></a></td>
<td class="forum-header header-search" align="right" valign="bottom">
<form action="{U_SEARCH}" method="get"><input name="search_keywords" type="text" class="post" style="width: 100px;" /> <input type="submit" class="liteoption" value="{L_SEARCH}" /></form>
</td>
</tr>
<tr>
<td colspan="2" class="forum-buttons" valign="middle">
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}">{L_REGISTER}</a> •
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<a href="{U_PROFILE}">{L_PROFILE}</a> •
<a href="{U_PRIVATEMSGS}">{L_PRIVATEMSGS}</a> •
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH}">{L_SEARCH}</a> •
<a href="{U_FAQ}">{L_FAQ}</a> •
<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> •
<a href="{U_GROUP_CP}">{L_USERGROUPS}</a> •
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
</td>
</tr>
<tr>
<td colspan="2" id="content">

<!-- BEGIN switch_user_logged_in -->
<div class="popup{PRIVMSG_IMG}"><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></div>
<!-- END switch_user_logged_in -->

cien

12:35 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



I posted the complete header. Can anybody help?

mcibor

12:51 pm on Aug 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe enforce the border with:

<table cellspacing="0" width="100%" border="1" id="forum">

?
It's more a css or a html question
If you write header in php forum the header("Location: www.google.com"); comes to mind, not the beginning of the html... :)
If the border won't appear then see the source code in the browser, save it, put it into the html coder and correct the html. Then go to your coding and correct it approvingly.

Best regards
Michal Cibor

PS. Don't post the whole code, as it is irrelevant. Only concerning part of your css and beginning of the table

mcibor

12:56 pm on Aug 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A table with 3 rows and 6 columns is:

<table cellspacing="0" width="100%" id="forum" border="1">
<tr><td>1.1</td>
<td>1.2</td>
...
<td>1.6</td></tr>
<tr><td>2.1</td>
<td>2.2</td>
...
<td>2.6</td></tr>
<tr><td>3.1</td>
<td>3.2</td>
...
<td>3.6</td></tr></table>

Not what you have (that is 3 row, 2 column table)

Best regards
Michal Cibor

cien

2:20 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



Oh great! Makes sense! Very helpful! Will try that!

Thank you Mcibor for your help!