PDA

View Full Version : Miscellaneous Hacks - Show post as printable version


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]&nbsp;&nbsp;<else />$post[iplogged]</if>
<if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&amp;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']">&nbsp;&nbsp;</if><if condition="!$show['moderation']"><if condition="$post[threadid]"><a href="printpost.php?$session[sessionurl]t=$post[threadid]&amp;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.

MaestroX
11-01-2006, 11:47 AM
Great hack, thanks for sharing :)

TheBlackPoet
11-01-2006, 12:10 PM
Very nice.... keeps from having to print all the collateral content..... i installed....

apdcanari
11-01-2006, 05:46 PM
Good, Vbulletin 3.5, it is possible, please ? ;)

Stoebi
11-01-2006, 06:34 PM
Good, Vbulletin 3.5, it is possible, please ? ;)
Attached


Regards, Stoebi

apdcanari
11-01-2006, 06:43 PM
Attached


Regards, Stoebi

Verrrrry Good ! Tks a lot ;)

ahmed-samara
11-01-2006, 06:50 PM
Very nice...

Barakat
11-02-2006, 11:54 AM
thanks .... installed and works fine

professional77
11-02-2006, 12:59 PM
thanks very very mush

Boofo
03-15-2008, 04:27 PM
After a few headaches getting the postbit line to work right, this mod is working great! Thank you! ;)

MrD
01-15-2009, 08:13 AM
Hi,
if vbseo is installed, the Addon put 2 Linkback Icons in the thread.