[2.0.7] Printer-friendly topic mod

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
48
45%
Very Good
26
25%
Good
11
10%
Fair
9
8%
Poor
12
11%
 
Total votes: 106

Outlaw Josie
Registered User
Posts: 14
Joined: Mon Jan 10, 2005 6:50 pm

Re: New TPL's for this Mod

Post by Outlaw Josie »

Tenchi022 wrote: I downloaded the CSV of Olympus this evening and noticed it had this feature built in. I really liked its layout so I modified the TPL's of this mod to look the same as that in Olympus.

Hope others find these TPL's useful.

You can download them here

Very helpful. Thank you so much!
maquilab
Registered User
Posts: 3
Joined: Thu Apr 21, 2005 7:14 pm

Post by maquilab »

Hi everyone

Sorry, I'm having some problems with one file of this mod:

It is a long post because of the code, sorry don't know how to show you it in other ways since I cannot add attachments

I get this error:
Parse error: parse error, expecting `')'' in \public\phpbb2\viewtopic.php on line 689


This is the code as it is now
<div align="left">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="right"><img src="templates/myApple/images/lang_{LANG}/titreG.gif" alt="" width="200px" /></td>
<td align="left" background="templates/myApple/images/titreD.gif" width="500px" height="24px"><a class="maintitle" style="font-family: 'Trebuchet MS';margin-left: 10px;color: #000;" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
</tr>
<tr>
<td colspan="2"><span class="gensmall"><b>{PAGINATION}</b><br /> &nbsp;</span></td>
</tr>
</table>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/spacer.gif" alt="" width="15" height="26" /></td>
<td align="left" valign="bottom">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/bt_up.gif" /></td>
<td><img src="templates/myApple/images/bt_up.gif" /></td>
</tr>
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" /></a>&nbsp;&nbsp;&nbsp;<a target="_blank" href="{U_PRINTER_TOPIC}"><img src="{PRINTER_IMG}" border="0" alt="{L_PRINTER_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a target="_blank" href="{U_PRINTER_TOPIC}"><img src="{PRINTER_IMG}" border="0" alt="{L_PRINTER_TOPIC}" align="middle" /></a></td>
</tr>
</table>
</td>
<td valign="middle" width="100%">
<span class="nav">
&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> ª <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
</span>
</td>
</tr>
</table>

<table class="postline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr align="right">
<td class="cat" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
</tr>
{POLL_DISPLAY}
<tr>
<th width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
<th nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails"><acronym title="{postrow.POST_DATE}">{L_POSTED}</acronym><span class="gen">&nbsp;</span>&nbsp; &nbsp;<acronym title="{postrow.POST_SUBJECT}">{L_POST_SUBJECT}</acronym></span></td>
<td valign="top" nowrap="nowrap"><img src="templates/myApple/images/ticker2G.gif" style="border:0px;margin:0px;">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}{postrow.SEARCH_IMG}{postrow.DELETE_IMG}{postrow.IP_IMG}<img src="templates/myApple/images/ticker2D.gif" style="border:0px;margin:0px;"></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
<tr>
<td valign="middle" nowrap="nowrap"><img src="templates/myApple/images/tickerG.gif" style="border:0px;margin:0px;">{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}<img src="templates/myApple/images/tickerD.gif" style="border:0px;margin:0px;"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/myApple/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr align="center">
<td class="cat" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
<tr><form method="post" action="{S_POST_DAYS_ACTION}">
<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
</form></tr>
</table></td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/spacer.gif" alt="" width="15" height="26" /></td>
<td align="left" valign="bottom">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/bt_tile.gif" /></td>
<td><img src="templates/myApple/images/bt_tile.gif" /></td>
</tr>
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" /></a></td>
</tr>
<tr>
<td><img src="templates/myApple/images/bt_down.gif" /></td>
<td><img src="templates/myApple/images/bt_down.gif" /></td>
</tr>
</table>
</td>
<td valign="middle" width="100%">
<span class="nav">
&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> ª <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
</span>
</td>
<td align="right" valign="top" nowrap="nowrap">
<span class="gensmall">
{PAGE_NUMBER}
</span>
<br />
<span class="nav">
{PAGINATION}
</span>
</td>
</tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
&nbsp;<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<a href="javascript:ShowHide('auth_open','auth_closed')"><img src="templates/myApple/images/expand.gif" border="0" /></a><div id="auth_open" style="display: none;"><span class="gensmall">{S_AUTH_LIST}</span></div></td>
</tr>
</table>


and that's how it used to be
<div align="left">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="right"><img src="templates/myApple/images/lang_{LANG}/titreG.gif" alt="" width="200px" /></td>
<td align="left" background="templates/myApple/images/titreD.gif" width="500px" height="24px"><a class="maintitle" style="font-family: 'Trebuchet MS';margin-left: 10px;color: #000;" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
</tr>
<tr>
<td colspan="2"><span class="gensmall"><b>{PAGINATION}</b><br /> &nbsp;</span></td>
</tr>
</table>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/spacer.gif" alt="" width="15" height="26" /></td>
<td align="left" valign="bottom">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/bt_up.gif" /></td>
<td><img src="templates/myApple/images/bt_up.gif" /></td>
</tr>
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" /></a></td>
</tr>
</table>
</td>
<td valign="middle" width="100%">
<span class="nav">
&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> ª <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
</span>
</td>
</tr>
</table>

<table class="postline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr align="right">
<td class="cat" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
</tr>
{POLL_DISPLAY}
<tr>
<th width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
<th nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails"><acronym title="{postrow.POST_DATE}">{L_POSTED}</acronym><span class="gen">&nbsp;</span>&nbsp; &nbsp;<acronym title="{postrow.POST_SUBJECT}">{L_POST_SUBJECT}</acronym></span></td>
<td valign="top" nowrap="nowrap"><img src="templates/myApple/images/ticker2G.gif" style="border:0px;margin:0px;">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}{postrow.SEARCH_IMG}{postrow.DELETE_IMG}{postrow.IP_IMG}<img src="templates/myApple/images/ticker2D.gif" style="border:0px;margin:0px;"></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
<tr>
<td valign="middle" nowrap="nowrap"><img src="templates/myApple/images/tickerG.gif" style="border:0px;margin:0px;">{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}<img src="templates/myApple/images/tickerD.gif" style="border:0px;margin:0px;"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/myApple/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr align="center">
<td class="cat" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
<tr><form method="post" action="{S_POST_DAYS_ACTION}">
<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
</form></tr>
</table></td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/spacer.gif" alt="" width="15" height="26" /></td>
<td align="left" valign="bottom">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/myApple/images/bt_tile.gif" /></td>
<td><img src="templates/myApple/images/bt_tile.gif" /></td>
</tr>
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" /></a></td>
</tr>
<tr>
<td><img src="templates/myApple/images/bt_down.gif" /></td>
<td><img src="templates/myApple/images/bt_down.gif" /></td>
</tr>
</table>
</td>
<td valign="middle" width="100%">
<span class="nav">
&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> ª <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
</span>
</td>
<td align="right" valign="top" nowrap="nowrap">
<span class="gensmall">
{PAGE_NUMBER}
</span>
<br />
<span class="nav">
{PAGINATION}
</span>
</td>
</tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
&nbsp;<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<a href="javascript:ShowHide('auth_open','auth_closed')"><img src="templates/myApple/images/expand.gif" border="0" /></a><div id="auth_open" style="display: none;"><span class="gensmall">{S_AUTH_LIST}</span></div></td>
</tr>
</table>
thebigdog00
Registered User
Posts: 5
Joined: Fri Mar 04, 2005 10:24 pm
Location: Glenpool Ok
Contact:

Error with printer_topic_1.0.8

Post by thebigdog00 »

I am using printer_topic_1.0.8

When a user is not logged in it works fine. However, if logged in they get the following error when they click the print button:

Template->loadfile(): No files found for handle qrbody

It was working at one time I don't really know when it stopped. I have installed 3 or 4 mods since the last time I used it.

I am guessing a problem with the viewtopic.php? I don't know?

Thanks
God Bless!
"He who knows all the answers has not yet been asked all the questions." - unknown
www.Truthtalk.net
thebigdog00
Registered User
Posts: 5
Joined: Fri Mar 04, 2005 10:24 pm
Location: Glenpool Ok
Contact:

Post by thebigdog00 »

Was this maybe talked about somewhere else?
God Bless!
"He who knows all the answers has not yet been asked all the questions." - unknown
www.Truthtalk.net
maquilab
Registered User
Posts: 3
Joined: Thu Apr 21, 2005 7:14 pm

Post by maquilab »

don't know.

It doesn't even display me the page and gives me an error. The point is since I'm not using subSilver it might get screwed up...
moodgard
Registered User
Posts: 316
Joined: Sun Feb 08, 2004 8:05 pm

Re: Error with printer_topic_1.0.8

Post by moodgard »

I just downloaded this and am considering adding it to my forum. It's going to be some work, with 24 pages of responses to take into account!
maquilab wrote: I get this error:
Parse error: parse error, expecting `')'' in \public\phpbb2\viewtopic.php on line 689


Can you post a few lines near line 689 from viewtopic.php on your site? The template you've posted doesn't help - it looks ok; you probably made an error when modding viewtopic.php

thebigdog00 wrote: Template->loadfile(): No files found for handle qrbodyI am guessing a problem with the viewtopic.php? I don't know?

Thanks


Possibly viewtopic.php; I just downloaded this myself, the only other culprit could be page_header_printer.php; you can look through the template files in the scripts and see if you've the right path/name. Should be easy to find.
thebigdog00
Registered User
Posts: 5
Joined: Fri Mar 04, 2005 10:24 pm
Location: Glenpool Ok
Contact:

Post by thebigdog00 »

Can you post a few lines near line 689 from viewtopic.php on your site?

//
// Send vars to template
//
$template->assign_vars(array(
'START_REL' => ($start + 1),
'FINISH_REL' => (isset($HTTP_GET_VARS['finish_rel'])? intval($HTTP_GET_VARS['finish_rel']) : ($board_config['posts_per_page'] - $start)),
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_name,
'TOPIC_ID' => $topic_id,
'TOPIC_TITLE' => $topic_title,
'PAGINATION' => $pagination,
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $pagination_ppp ) + 1 ), ceil( $total_replies / $pagination_ppp )),

'POST_IMG' => $post_img,
'REPLY_IMG' => $reply_img,
'PRINTER_IMG' => $printer_img,

'L_AUTHOR' => $lang['Author'],
'L_MESSAGE' => $lang['Message'],
'L_POSTED' => $lang['Posted'],
'L_POST_SUBJECT' => $lang['Post_subject'],
'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'],
'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'],
'L_POST_NEW_TOPIC' => $post_alt,
'L_POST_REPLY_TOPIC' => $reply_alt,
'L_PRINTER_TOPIC' => $printer_alt,
'L_BACK_TO_TOP' => $lang['Back_to_top'],
'L_DISPLAY_POSTS' => $lang['Display_posts'],
'L_LOCK_TOPIC' => $lang['Lock_topic'],
'L_UNLOCK_TOPIC' => $lang['Unlock_topic'],
'L_MOVE_TOPIC' => $lang['Move_topic'],
'L_SPLIT_TOPIC' => $lang['Split_topic'],
'L_DELETE_TOPIC' => $lang['Delete_topic'],
'L_GOTO_PAGE' => $lang['Goto_page'],

'S_TOPIC_LINK' => POST_TOPIC_URL,
'S_SELECT_POST_DAYS' => $select_post_days,
'S_SELECT_POST_ORDER' => $select_post_order,
'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start"),
'S_AUTH_LIST' => $s_auth_can,
'S_TOPIC_ADMIN' => $topic_mod,
'S_WATCH_TOPIC' => $s_watching_topic,
'S_WATCH_TOPIC_IMG' => $s_watching_topic_img,

'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"),
'U_VIEW_FORUM' => $view_forum_url,
'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url,
'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
'U_POST_NEW_TOPIC' => $new_topic_url,
'U_PRINTER_TOPIC' => $printer_topic_url,
'U_POST_REPLY_TOPIC' => $reply_topic_url)
);


the only other culprit could be page_header_printer.php; you can look through the template files in the scripts and see if you've the right path/name.


I had kind of ruled the path out because it works if the user is not logged in. Would that thinking not be correct?
God Bless!
"He who knows all the answers has not yet been asked all the questions." - unknown
www.Truthtalk.net
The Fool Phpbber
Registered User
Posts: 6
Joined: Fri May 13, 2005 2:12 am

Re: Error with printer_topic_1.0.8

Post by The Fool Phpbber »

thebigdog00 wrote: I am using printer_topic_1.0.8

When a user is not logged in it works fine. However, if logged in they get the following error when they click the print button:

Template->loadfile(): No files found for handle qrbody

It was working at one time I don't really know when it stopped. I have installed 3 or 4 mods since the last time I used it.

I am guessing a problem with the viewtopic.php? I don't know?

Thanks


I got the same problem. Some help?
The Fool Phpbber
Registered User
Posts: 6
Joined: Fri May 13, 2005 2:12 am

Post by The Fool Phpbber »

I got it. That's a problem that rises when you use the (super)quickreply mod.

In viewtopic_body.tpl you can see

Code: Select all

<!-- BEGIN switch_quick_reply -->
	{QRBODY}
<!-- END switch_quick_reply -->
Any clues how to solve it?
moodgard
Registered User
Posts: 316
Joined: Sun Feb 08, 2004 8:05 pm

Post by moodgard »

The Fool Phpbber wrote: I got it. That's a problem that rises when you use the (super)quickreply mod.

In viewtopic_body.tpl you can see

Code: Select all

<!-- BEGIN switch_quick_reply -->
	{QRBODY}
<!-- END switch_quick_reply -->
Any clues how to solve it?



I think you'll have to incorporate your superquickreply mod template changes into the new 'printertopic_body.tpl' , same way as this mod changes viewtopic_body.tpl ; I don't have SQR, but I think that should do it.
The Fool Phpbber
Registered User
Posts: 6
Joined: Fri May 13, 2005 2:12 am

Post by The Fool Phpbber »

I'll try...thanks!
The Fool Phpbber
Registered User
Posts: 6
Joined: Fri May 13, 2005 2:12 am

Post by The Fool Phpbber »

EUREKA! this is the way, in viewtopic.php you must add the bold line
//
// Load templates
//
if(isset($HTTP_GET_VARS['printertopic']))
{
$template->set_filenames(array(
'qrbody' => 'viewtopic_quickreply.tpl',
'body' => 'printertopic_body.tpl')
);
} else
{
$template->set_filenames(array(
'qrbody' => 'viewtopic_quickreply.tpl',
'body' => 'viewtopic_body.tpl')
);
}
make_jumpbox('viewforum.'.$phpEx, $forum_id);

//
// Output page header
//
$page_title = $lang['View_topic'] .' - ' . $topic_title;
if(isset($HTTP_GET_VARS['printertopic']))
{
include($phpbb_root_path . 'includes/page_header_printer.'.$phpEx);
} else
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
}


:D
thebigdog00
Registered User
Posts: 5
Joined: Fri Mar 04, 2005 10:24 pm
Location: Glenpool Ok
Contact:

Post by thebigdog00 »

Thanks!
God Bless!
"He who knows all the answers has not yet been asked all the questions." - unknown
www.Truthtalk.net
stardotstar
Registered User
Posts: 70
Joined: Fri Aug 01, 2003 2:07 am
Location: Brisbane, Australia
Contact:

Post by stardotstar »

Hi Printer Friendly Guys!

I have installed the mod and it all works but I am a bit confused about the fact that there are two printer friendly icons that both work at the bottom of my topic view. I don't think this has anything to do with my advanced quick reply mod...

Does this part of the code lead to two icons as shown in the pic?\

Code: Select all

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_POST_REPLY_TOPIC}" align="middle" /></a>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&nbsp;&nbsp;&nbsp;<a target="_blank" href="{U_PRINTER_TOPIC}"><img src="{PRINTER_IMG}" border="0" alt="{L_PRINTER_TOPIC}" align="middle" /></a>
#
#-----[ FIND ]------------------------------------------
#
	<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_POST_REPLY_TOPIC}" align="middle" /></a>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&nbsp;&nbsp;&nbsp;<a target="_blank" href="{U_PRINTER_TOPIC}"><img src="{PRINTER_IMG}" border="0" alt="{L_PRINTER_TOPIC}" align="middle" /></a>
#
Image

I understand that this mod is not in current development but I would appreciate any pointers as to why this is happening... Do I just remove the second iteration of the code shown above?

TIA
Will
\x!\\_
The Fool Phpbber
Registered User
Posts: 6
Joined: Fri May 13, 2005 2:12 am

Post by The Fool Phpbber »

Do I just remove the second iteration of the code shown above?


No friend! The first one is there to show the icon on the upper part of the topic. If you check well your viewtopic_body.tpl you'll notice there are two
identical parts, up and down :

Code: Select all

<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>


Let us know when you got it :wink:
Post Reply

Return to “[2.0.x] MOD Database Cleanup”