Problem with Title in Viewtopic

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
mk264
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 3:24 am
Contact:

Problem with Title in Viewtopic

Post by mk264 »

Hi
For some reason the page title is not showing in my topics but is visible on the index and viewforum pages.

Here's an example:
http://www.staffybullterriers.com/forum/about14279.html

Any ideas what may be causing this and how it can be fixed.

mk264
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 3:24 am
Contact:

Re: Problem with Title in Viewtopic

Post by mk264 »

I am running Phpbb 2.0.22

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51350
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem with Title in Viewtopic

Post by stevemaury »

I don't see what you are talking about. The topic, forum and index page header all look the same to me. What is "Page title"?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

mk264
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 3:24 am
Contact:

Re: Problem with Title in Viewtopic

Post by mk264 »

The very top of the page is the title. It appears in the header between the <title> tags.

Instead of the topic title the url is appearing in the title field.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51350
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem with Title in Viewtopic

Post by stevemaury »

When I View Source, I see this at the top of the topic page:

Code: Select all

<!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="ltr">
<head>
<title></title>
When I view the source of your forum index, I see:

Code: Select all

<!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="ltr">
<head>
<title>Staffordshire Bull Terrier Discussion Forum</title>
So there is no title. Have you been doing anything with viewtopic_body.tpl?

And how come your pages are .html instead of .php?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

mk264
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 3:24 am
Contact:

Re: Problem with Title in Viewtopic

Post by mk264 »

Here's the code. I cannot see any obvious mods in the file. Thanks for taking the time to reply.

The reason my page is html is because I have modded the site to prdocue static pages. This didnt touch the viewtopic page(I think). I have fixed the code.

Code: Select all


<!-- IF C_PM --><!-- DEFINE $CA_NEW_MSGS = true --><!-- ENDIF -->

{TPL_CONTENT_TOPNAV1}
<table align="center"><TR><td align="center" width="33%">



<img src="/images/point.gif">&nbsp;<font size="+1"><a href="http://www.staffybullterriers.com"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <U>OUR</U> <BR> Main Staffordshire Bull Terrier Site</font>
</td>
<td align="center" width="33%"><img src="/images/point.gif">&nbsp;



<font size="+1"><a href="http://www.staffybullterriers.com/forum/chat/flashchat.php"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <BR> The Staffordshire Bull Terrier Chatroom</font>
</td>

<td align="center" width="33%"><img src="/images/point.gif">&nbsp;



<font size="+1"><a href="http://www.dogcollarssite.com"  onMouseOver="status='Staffordshire Bull Terrrier Dog Collars'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <U>My</U> <BR> Doggie Collar Site</font>
</td>
</tr>

<table align="center"><TR><td align="center" width="50%">



<img src="/images/point.gif">&nbsp;<font size="+1"><a href="http://www.kingdomofpets.com/dogobediencetraining/index.php?aff=malkeenan&type=staffordshirebullterrier&tid=toplink"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> If Your Staffy Is Misbehaving in <u>ANY</u> Way</font>
</td>

<td align="center" width="50%">



<b>Buy a Brick for Staffies!</b> <a href="http://www.staffybullterriers.com/forum/about13077.html" target="new">Click Here Now</a> to Do YOUR Bit for Staffy Rescue</td>

</tr></table>

<table align="center"><tr><td align="center">


<div id="contentwrapper">

<div id="billboard0" class="billcontent">
<b>Watch out Here for New & Exciting Staffy Forum News!</b>
</div>

<div id="billboard1" class="billcontent">
<b>Brand New</b> Staffy Club Just Launched! <a href="http://www.staffyclub.com/">Click Here</a> for All the Details!
</div>



<div id="billboard2" class="billcontent">
The Staffy Fundraising Section of Our Forum is Now Live. <a href="http://www.staffybullterriers.com/forum/forum-20.html">Click Here</a> to Checkout Our Super-Saving Staffy Auctions!
</div>

<div id="billboard3" class="billcontent">
Are <b>YOU</B> a Staffy Club <u>VIP</u> or <u>Gold</u> Member Yet? <b>Don't get left behind!</b> <a href="http://www.staffyclub.com/">Click Here</a> for More Info!
</div>

<div id="billboard4" class="billcontent">
<b>Congratulations</B> Staffy Forum & Staffy Club Members. The target of $800 for the Kali and Cassidy fund has been reached, 10 days ahead of schedule!
</div>

<div id="billboard5" class="billcontent">
Buy a Brick for Staffies in Need! <b>A Very Worthwhile Project!</b> <a href="http://www.northeaststaffierescue.co.uk/kennelappeal.htm">Click Here</a> for ALL the Details!
</div>


</div>
</td></tr></table>

<p align="center"><script type="text/javascript"><!--
			google_ad_client = "pub-6085386106156520";
			google_ad_width = 728;
			google_ad_height = 90;
			google_ad_format = "728x90_as";
                        google_ad_type = "text";
			google_ad_channel ="";
			google_color_border = "E0E0E0";
			google_color_bg = "E0E0E0";
			google_color_link = "809FC0";
			google_color_url = "E9E9E9";
			google_color_text = "000000";
			//--></script>
			<script type="text/javascript"
			  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script></p>



<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
	<td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table></center>
<p>&nbsp;</P>



<!-- IF $CA_NEW_MSGS -->{TPL_CONTENT_TOPNAV2_PM}<!-- ELSE -->{TPL_CONTENT_TOPNAV2}<!-- ENDIF -->
<!-- IF $CA_NEW_MSGS --><!-- INCLUDE newpm.tpl --><!-- ENDIF -->

<table width="100%" cellspacing="0" cellpadding="2" border="0">
  <tr> 
    <td align="left" valign="bottom" width="25%"><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
	<td align="center" valign="top" width="50%"><span class="gen"><!-- IF $CA_NEW_MSGS --><br /><!-- ENDIF --><a href="{U_VIEW_TOPIC}"><b>{TOPIC_TITLE}</b></a></span></td>
	

 <td align="right" valign="bottom" width="25%"><form action="{CA_SEARCH_INDEX}" method="post" class="inline-form"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
		<input type="text" name="search_keywords" class="post" size="15" />
		<input type="submit" value="{L_SEARCH}" class="mainoption" />
	</form>
	<span class="pagination">{PAGINATION}</span></td>
 

</tr>
</table>

{POLL_DISPLAY} 

<?php

global $userdata, $board_config, $topic_id, $is_auth, $forum_topic_data, $lang, $phpEx;

if(!isset($can_reply))
{
	$can_reply = $this->style_config['quick_reply'] && $userdata['session_logged_in'] ? true : false;
	if($can_reply)
	{
		$is_auth_type = 'auth_reply';
		if(!$is_auth[$is_auth_type])
		{
			$can_reply = false;
		}
		elseif ( ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) && !$is_auth['auth_mod'] ) 
		{
			$can_reply = false;
		}
	}
	if($can_reply)
	{
		$this->assign_block_vars('xs_quick_reply', array());
	}
}

$postrow_count = ( isset($this->_tpldata['postrow.']) ) ?  sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
	$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
	// set profile link and search button
	if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
	{
		$postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
		if($this->vars['TPL_CFG_TOPICVIEW'] !== 'hide')
		{
			$search = array($lang['Read_profile'], '<a ');
			$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
			$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
		}
	}
	// check for new post
	$new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
	$postrow_item['TPL_HDR1'] = $new_post ? $this->vars['TPL_HDR1_NEW'] : $this->vars['TPL_HDR1_POST'];
	$postrow_item['TPL_HDR2'] = $new_post ? $this->vars['TPL_HDR2_NEW'] : $this->vars['TPL_HDR2'];
	$postrow_item['TPL_FTR'] = $new_post ? $this->vars['TPL_FTR_NEW'] : $this->vars['TPL_FTR'];
	// set backgrounds
	$num = ($postrow_i % 2) + 1;
	$postrow_item['TPL_CLASS_POST'] = 'post' . $num;
	$postrow_item['TPL_CLASS_PROFILE'] = 'post-left' . $num;
}	

?>

<!-- IF TPL_CFG_TOPICVIEW == "above" --><!-- INCLUDE viewtopic_post_above.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "left" --><!-- INCLUDE viewtopic_post_left.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "right" --><!-- INCLUDE viewtopic_post_right.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "hide" --><!-- INCLUDE viewtopic_post_none.tpl --><!-- ENDIF -->


{TPL_HDR1_ORANGE}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>{TPL_HDR2}
 <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
	

<td class="row1g" align="left" valign="middle">
	<table border="0" cellspacing="0" cellpadding="5" width="100%">
	<tr>
		<td align="left" valign="middle">
			<span class="gensmall">{S_AUTH_LIST}</span>
		</td>
		<td align="right" valign="middle">
			<span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
			{PAGE_NUMBER}&nbsp;&nbsp;</span>
			<div class="pagination">{PAGINATION}</div><br />
			<span class="gensmall">{S_WATCH_TOPIC}</span>
		</td>


	</tr>
	</table>
	</td> 


</tr>
<tr>
	<td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
	<tr>
		<td align="left" valign="middle" nowrap="nowrap"><form method="post" action="{S_POST_DAYS_ACTION}" style="display: inline;">{S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></form></td>
		<td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
	</tr>
	</table>
	</td>
</tr>
</table>{TPL_FTR}

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" valign="top" style="padding-top: 5px; padding-bottom: 5px;">&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>
	<!-- BEGIN xs_quick_reply -->
	&nbsp;<a href="javascript:ShowHide('quick_reply','quick_reply2');"><img src="{T_TEMPLATE_PATH}/images/lang_{T_LANG}/{T_COLOR}/quick_reply.gif" border="0" alt="{CA_QR_BUTTON}" align="middle" /></a>
	<!-- END xs_quick_reply -->
	</td>
	<td align="right" valign="top" style="padding-top: 5px;">{S_TOPIC_ADMIN}&nbsp;</td>
</tr>
</table>

<div id="quick_reply" style="display: none; position: relative; "><form action="<?php echo append_sid('posting.'.$phpEx); ?>" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}<input type="hidden" name="sid" value="<?php global $userdata; echo $userdata['session_id']; ?>" />{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr> 
	<td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
	<td class="row2" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr> 
	<td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" border="0" alt="" /></b></span></td>
	<td class="row2" width="100%"><textarea name="message" rows="15" cols="35" style="width:98%" tabindex="3" class="post"></textarea></td>
</tr>
<tr> 
	<td class="row1" valign="middle" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
	<td class="row2"><span class="genmed">
	<?php 
		$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
		$html_on = $board_config['allow_html'] ? $userdata['user_allowhtml'] : 1;
		$bbcode_on = $board_config['allow_bbcode'] ? $userdata['user_allowbbcode'] : 0;
		$smilies_on = $board_config['allow_smilies'] ? $userdata['user_allowsmile'] : 0;
	?>
	<?php if($board_config['allow_html']) { ?>
	<label><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_HTML_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
	<?php if($board_config['allow_bbcode']) { ?>
	<label><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_BBCode_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
	<?php if($board_config['allow_smilies']) { ?>
	<label><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?>  /> <span class="genmed"><?php echo $lang['Disable_Smilies_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
	<?php if($user_sig) {  ?>
	<label><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Attach_signature']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
	<label><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Notify']; ?></span></label><br />
	</span></td>
</tr>
<tr> 
	<td class="catBottom" colspan="2" align="center" height="25"> <input type="hidden" name="mode" value="reply" /><input type="hidden" name="t" value="<?php echo $topic_id; ?>" /><input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="<?php echo $lang['Submit']; ?>" />&nbsp;<input type="submit" tabindex="5" name="preview" class="mainoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table>{TPL_FTR}</form></div>


{TPL_CONTENT_BOTTOMNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
	<td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_BOTTOMNAV2}
  
Last edited by mk264 on Sat Mar 29, 2008 10:57 pm, edited 1 time in total.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51350
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem with Title in Viewtopic

Post by stevemaury »

Could you edit that to put the proper closing code tag at the end ([/code]). Thanks

EDIT - never mind. Thats viewtopic.php, not viewtopic_body.tpl. Want to fix that?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
Lumpy Burgertushie
Registered User
Posts: 67751
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Problem with Title in Viewtopic

Post by Lumpy Burgertushie »

this is most likely caused by whatever that MOD you have installed that uses mod-rewrite for the file names.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

mk264
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 3:24 am
Contact:

Re: Problem with Title in Viewtopic

Post by mk264 »

I agree. its been so long since I modded my site that I was hoping someone could point me in the right direction on what I need to look for.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51350
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem with Title in Viewtopic

Post by stevemaury »

mk264 wrote:Here's the code. I cannot see any obvious mods in the file. Thanks for taking the time to reply.

The reason my page is html is because I have modded the site to prdocue static pages. This didnt touch the viewtopic page(I think). I have fixed the code.

Code: Select all


<!-- IF C_PM --><!-- DEFINE $CA_NEW_MSGS = true --><!-- ENDIF -->

{TPL_CONTENT_TOPNAV1}
<table align="center"><TR><td align="center" width="33%">



<img src="/images/point.gif">&nbsp;<font size="+1"><a href="http://www.staffybullterriers.com"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <U>OUR</U> <BR> Main Staffordshire Bull Terrier Site</font>
</td>
<td align="center" width="33%"><img src="/images/point.gif">&nbsp;



<font size="+1"><a href="http://www.staffybullterriers.com/forum/chat/flashchat.php"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <BR> The Staffordshire Bull Terrier Chatroom</font>
</td>

<td align="center" width="33%"><img src="/images/point.gif">&nbsp;



<font size="+1"><a href="http://www.dogcollarssite.com"  onMouseOver="status='Staffordshire Bull Terrrier Dog Collars'; return true"
onMouseOut="status='';return true">Click Here Now</a> To Visit <U>My</U> <BR> Doggie Collar Site</font>
</td>
</tr>

<table align="center"><TR><td align="center" width="50%">



<img src="/images/point.gif">&nbsp;<font size="+1"><a href="http://www.kingdomofpets.com/dogobediencetraining/index.php?aff=malkeenan&type=staffordshirebullterrier&tid=toplink"  onMouseOver="status='Staffordshire Bull Terrriers'; return true"
onMouseOut="status='';return true">Click Here Now</a> If Your Staffy Is Misbehaving in <u>ANY</u> Way</font>
</td>

<td align="center" width="50%">



<b>Buy a Brick for Staffies!</b> <a href="http://www.staffybullterriers.com/forum/about13077.html" target="new">Click Here Now</a> to Do YOUR Bit for Staffy Rescue</td>

</tr></table>

<table align="center"><tr><td align="center">


<div id="contentwrapper">

<div id="billboard0" class="billcontent">
<b>Watch out Here for New & Exciting Staffy Forum News!</b>
</div>

<div id="billboard1" class="billcontent">
<b>Brand New</b> Staffy Club Just Launched! <a href="http://www.staffyclub.com/">Click Here</a> for All the Details!
</div>



<div id="billboard2" class="billcontent">
The Staffy Fundraising Section of Our Forum is Now Live. <a href="http://www.staffybullterriers.com/forum/forum-20.html">Click Here</a> to Checkout Our Super-Saving Staffy Auctions!
</div>

<div id="billboard3" class="billcontent">
Are <b>YOU</B> a Staffy Club <u>VIP</u> or <u>Gold</u> Member Yet? <b>Don't get left behind!</b> <a href="http://www.staffyclub.com/">Click Here</a> for More Info!
</div>

<div id="billboard4" class="billcontent">
<b>Congratulations</B> Staffy Forum & Staffy Club Members. The target of $800 for the Kali and Cassidy fund has been reached, 10 days ahead of schedule!
</div>

<div id="billboard5" class="billcontent">
Buy a Brick for Staffies in Need! <b>A Very Worthwhile Project!</b> <a href="http://www.northeaststaffierescue.co.uk/kennelappeal.htm">Click Here</a> for ALL the Details!
</div>


</div>
</td></tr></table>

<p align="center"><script type="text/javascript"><!--
			google_ad_client = "pub-6085386106156520";
			google_ad_width = 728;
			google_ad_height = 90;
			google_ad_format = "728x90_as";
                        google_ad_type = "text";
			google_ad_channel ="";
			google_color_border = "E0E0E0";
			google_color_bg = "E0E0E0";
			google_color_link = "809FC0";
			google_color_url = "E9E9E9";
			google_color_text = "000000";
			//--></script>
			<script type="text/javascript"
			  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script></p>



<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
	<td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table></center>
<p>&nbsp;</P>



<!-- IF $CA_NEW_MSGS -->{TPL_CONTENT_TOPNAV2_PM}<!-- ELSE -->{TPL_CONTENT_TOPNAV2}<!-- ENDIF -->
<!-- IF $CA_NEW_MSGS --><!-- INCLUDE newpm.tpl --><!-- ENDIF -->

<table width="100%" cellspacing="0" cellpadding="2" border="0">
  <tr> 
    <td align="left" valign="bottom" width="25%"><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
	<td align="center" valign="top" width="50%"><span class="gen"><!-- IF $CA_NEW_MSGS --><br /><!-- ENDIF --><a href="{U_VIEW_TOPIC}"><b>{TOPIC_TITLE}</b></a></span></td>
	

 <td align="right" valign="bottom" width="25%"><form action="{CA_SEARCH_INDEX}" method="post" class="inline-form"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
		<input type="text" name="search_keywords" class="post" size="15" />
		<input type="submit" value="{L_SEARCH}" class="mainoption" />
	</form>
	<span class="pagination">{PAGINATION}</span></td>
 

</tr>
</table>

{POLL_DISPLAY} 

<?php

global $userdata, $board_config, $topic_id, $is_auth, $forum_topic_data, $lang, $phpEx;

if(!isset($can_reply))
{
	$can_reply = $this->style_config['quick_reply'] && $userdata['session_logged_in'] ? true : false;
	if($can_reply)
	{
		$is_auth_type = 'auth_reply';
		if(!$is_auth[$is_auth_type])
		{
			$can_reply = false;
		}
		elseif ( ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) && !$is_auth['auth_mod'] ) 
		{
			$can_reply = false;
		}
	}
	if($can_reply)
	{
		$this->assign_block_vars('xs_quick_reply', array());
	}
}

$postrow_count = ( isset($this->_tpldata['postrow.']) ) ?  sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
	$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
	// set profile link and search button
	if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
	{
		$postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
		if($this->vars['TPL_CFG_TOPICVIEW'] !== 'hide')
		{
			$search = array($lang['Read_profile'], '<a ');
			$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
			$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
		}
	}
	// check for new post
	$new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
	$postrow_item['TPL_HDR1'] = $new_post ? $this->vars['TPL_HDR1_NEW'] : $this->vars['TPL_HDR1_POST'];
	$postrow_item['TPL_HDR2'] = $new_post ? $this->vars['TPL_HDR2_NEW'] : $this->vars['TPL_HDR2'];
	$postrow_item['TPL_FTR'] = $new_post ? $this->vars['TPL_FTR_NEW'] : $this->vars['TPL_FTR'];
	// set backgrounds
	$num = ($postrow_i % 2) + 1;
	$postrow_item['TPL_CLASS_POST'] = 'post' . $num;
	$postrow_item['TPL_CLASS_PROFILE'] = 'post-left' . $num;
}	

?>

<!-- IF TPL_CFG_TOPICVIEW == "above" --><!-- INCLUDE viewtopic_post_above.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "left" --><!-- INCLUDE viewtopic_post_left.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "right" --><!-- INCLUDE viewtopic_post_right.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "hide" --><!-- INCLUDE viewtopic_post_none.tpl --><!-- ENDIF -->


{TPL_HDR1_ORANGE}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>{TPL_HDR2}
 <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
	

<td class="row1g" align="left" valign="middle">
	<table border="0" cellspacing="0" cellpadding="5" width="100%">
	<tr>
		<td align="left" valign="middle">
			<span class="gensmall">{S_AUTH_LIST}</span>
		</td>
		<td align="right" valign="middle">
			<span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
			{PAGE_NUMBER}&nbsp;&nbsp;</span>
			<div class="pagination">{PAGINATION}</div><br />
			<span class="gensmall">{S_WATCH_TOPIC}</span>
		</td>


	</tr>
	</table>
	</td> 


</tr>
<tr>
	<td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
	<tr>
		<td align="left" valign="middle" nowrap="nowrap"><form method="post" action="{S_POST_DAYS_ACTION}" style="display: inline;">{S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></form></td>
		<td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
	</tr>
	</table>
	</td>
</tr>
</table>{TPL_FTR}

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" valign="top" style="padding-top: 5px; padding-bottom: 5px;">&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>
	<!-- BEGIN xs_quick_reply -->
	&nbsp;<a href="javascript:ShowHide('quick_reply','quick_reply2');"><img src="{T_TEMPLATE_PATH}/images/lang_{T_LANG}/{T_COLOR}/quick_reply.gif" border="0" alt="{CA_QR_BUTTON}" align="middle" /></a>
	<!-- END xs_quick_reply -->
	</td>
	<td align="right" valign="top" style="padding-top: 5px;">{S_TOPIC_ADMIN}&nbsp;</td>
</tr>
</table>

<div id="quick_reply" style="display: none; position: relative; "><form action="<?php echo append_sid('posting.'.$phpEx); ?>" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}<input type="hidden" name="sid" value="<?php global $userdata; echo $userdata['session_id']; ?>" />{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr> 
	<td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
	<td class="row2" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr> 
	<td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" border="0" alt="" /></b></span></td>
	<td class="row2" width="100%"><textarea name="message" rows="15" cols="35" style="width:98%" tabindex="3" class="post"></textarea></td>
</tr>
<tr> 
	<td class="row1" valign="middle" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
	<td class="row2"><span class="genmed">
	<?php 
		$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
		$html_on = $board_config['allow_html'] ? $userdata['user_allowhtml'] : 1;
		$bbcode_on = $board_config['allow_bbcode'] ? $userdata['user_allowbbcode'] : 0;
		$smilies_on = $board_config['allow_smilies'] ? $userdata['user_allowsmile'] : 0;
	?>
	<?php if($board_config['allow_html']) { ?>
	<label><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_HTML_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
	<?php if($board_config['allow_bbcode']) { ?>
	<label><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_BBCode_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
	<?php if($board_config['allow_smilies']) { ?>
	<label><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?>  /> <span class="genmed"><?php echo $lang['Disable_Smilies_post']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
	<?php if($user_sig) {  ?>
	<label><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Attach_signature']; ?></span></label><br />
	<?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
	<label><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Notify']; ?></span></label><br />
	</span></td>
</tr>
<tr> 
	<td class="catBottom" colspan="2" align="center" height="25"> <input type="hidden" name="mode" value="reply" /><input type="hidden" name="t" value="<?php echo $topic_id; ?>" /><input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="<?php echo $lang['Submit']; ?>" />&nbsp;<input type="submit" tabindex="5" name="preview" class="mainoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table>{TPL_FTR}</form></div>


{TPL_CONTENT_BOTTOMNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
	<td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_BOTTOMNAV2}
  
That is not even close to a standard viewtopic_body.tpl file. You need to get your MOD working right.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
Lumpy Burgertushie
Registered User
Posts: 67751
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Problem with Title in Viewtopic

Post by Lumpy Burgertushie »

where did all those variables come from. what version of phpbb are you running?

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51998
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Problem with Title in Viewtopic

Post by Brf »

Your page title is here in overall_header.tpl:

Code: Select all

<title>{PAGE_TITLE}</title>
'PAGE_TITLE' is defined in includes/page_header.php, which fills in the name from variable here in viewtopic.php:

Code: Select all

$page_title = $lang['View_topic'] .' - ' . $topic_title;

Locked

Return to “2.0.x Support Forum”