Stoebi
10-31-2006, 10:00 PM
Lot of thx to captainslater from vbhacks-germany (http://www.vbhacks-germany.org) to translate this hack into english. :)
Description:
With this hack every single post could be shown as a printable version. (See screenshots)
Installation:
Upload the file printpost.php in your forum root than import the product-printpost_201006.xml through your Product-Manager
Attention! Before installing this, make sure you have installed the Template Modification System from Andreas also known as KirbyDE.
Download it here (german only at the moment, but it needs to be imported only): TMS (http://www.vbhacks-germany.org/showthread.php?t=5572)
If you don't have installed the Template Modification System please edit your Templates according to the templateedits-printpost_201006.txt file:
Please edit the following templates:
1.
Search in your postbit-Template
--------------------------------------------------------------------------------
$post[iplogged] --------------------------------------------------------------------------------
and replace it with
--------------------------------------------------------------------------------
<if condition="$post[iplogged]">$post[iplogged] <else />$post[iplogged]</if>
<if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a></if></if> --------------------------------------------------------------------------------
2.
Search in your postbit_legacy-Template
--------------------------------------------------------------------------------
$post[postcount]</strong></a></if>[code]
--------------------------------------------------------------------------------
and replace it with
--------------------------------------------------------------------------------
[code]$post[postcount]</strong></a></if>
<if condition="$show['postcount']"> </if><if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a></if></if> --------------------------------------------------------------------------------
Works with my hack "Hide Links From Guests", too.
Description:
With this hack every single post could be shown as a printable version. (See screenshots)
Installation:
Upload the file printpost.php in your forum root than import the product-printpost_201006.xml through your Product-Manager
Attention! Before installing this, make sure you have installed the Template Modification System from Andreas also known as KirbyDE.
Download it here (german only at the moment, but it needs to be imported only): TMS (http://www.vbhacks-germany.org/showthread.php?t=5572)
If you don't have installed the Template Modification System please edit your Templates according to the templateedits-printpost_201006.txt file:
Please edit the following templates:
1.
Search in your postbit-Template
--------------------------------------------------------------------------------
$post[iplogged] --------------------------------------------------------------------------------
and replace it with
--------------------------------------------------------------------------------
<if condition="$post[iplogged]">$post[iplogged] <else />$post[iplogged]</if>
<if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a></if></if> --------------------------------------------------------------------------------
2.
Search in your postbit_legacy-Template
--------------------------------------------------------------------------------
$post[postcount]</strong></a></if>[code]
--------------------------------------------------------------------------------
and replace it with
--------------------------------------------------------------------------------
[code]$post[postcount]</strong></a></if>
<if condition="$show['postcount']"> </if><if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a></if></if> --------------------------------------------------------------------------------
Works with my hack "Hide Links From Guests", too.