FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Help Needed with phpBB overall_header.tpl





Possum
Hi


Ive made an error on the overall_header.tpl file..

Which causes the Forum Subject Text to loose its proper formatting..

See: http://udopage.com/udopage_99.php

I customized this part. If you can find the error I will give you 150 Frih$

Error may happen in bold code




Quote:




<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<div align="center">
<center>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="90%" id="AutoNumber1" bgcolor="#1C5790" cellpadding="0">
<tr>
<td width="93%">
<p align="left">
<img border="0" src="templates/subSilver/images/forumsphpbb.gif" width="600" height="65"></td
<td width="7%">
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<div id="navcontainer">
<ul id="navlist">



<li><a href="http://udopage.com/http://udopage.com/">uDoPage</a></li>
<li><a href="http://udopage.com/udopage_150.php">Tutorials</a></li>
<li><a href="http://udopage.com/udopage_118.php">Education</a></li>
<li><a href="http://udopage.com/udopage_245.php">Web developers</a></li>
<li><a href="http://udopage.com/udopage_144.php">Help Authoring</a></li>
<li><a href="http://udopage.com/udopage_83.php">Programmers</a></li>
<li><a href="http://udopage.com/udopage_98.php">Screen Shots</a></li>
<li><a href="http://udopage.com/udopage_104.php">Purchase</a></li>

<li><a href="http://udopage.com/udopage_155.php">Download</a></li>
<li><a href="http://udopage.com/udopage_152.php">Contact Us</a></li>
<li><a href="http://udopage.com/phpBB2/">Forums</a></li>



</ul>
</div></td>
</tr>
</table>
</center>
</div>
<a name="top"></a>

<table width="90%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<p align="center"><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 -->
&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></p>
</td>
</tr>
</table>
<table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#99CCFF" width="100%" id="AutoNumber1" bgcolor="#FFFFFF">
<tr>
<td width="100%">
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-3823593166746497";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
<br />








Also what is the file that follows overall_header.tpl as the phpBB page gets build...

Cheers Possum...
Fire Boar
Code:
<a font color="#FF0000" href="viewtopic.php?t=6&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight=">test</a>


This is wrong. It should be:

Code:
<a style="color: #FF0000" href="...">test</a>


Look in viewtopic_body.tpl. Replace the first <table>...</table> block with the following:


Code:
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" style="color: #FF0000" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall"><b>{PAGINATION}</b><br />
     &nbsp; </span></td>
  </tr>
</table>


That's if you want the link to be red. For the normal colour, simply remove the style="color: #FF0000" part. It's the class="maintitle" that gives the link its formatting, and in your case it's missing.

Hope that helps.
-FB
Possum
Hi

you did well to spot what I was doing.. Actually I was trying a work a round..

I found the problem. I used FrontPage to help me with the editing and it stuffed up the code..

Cheers Possum
Fire Boar
Ah, that would explain it. The moral of the story? Never EVER use Front Page. Very Happy

Glad you've got it sorted.
-FB
Related topics
Help on phpBB ..
need help in forum hosting
Help with PhpBB
PHPBB
phpBB gives error - Help needed urgently
PHPBB!!!!!!
Little help
I need your help! /w phpBB.v2
PHPBB Logo
Clan NDA HELP NEEDED FOR WEBSITE
some help needed on installing phpBB
PHPBB help needed
Big Help needed .
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.