vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Show post as printable version (https://vborg.vbsupport.ru/showthread.php?t=130518)

Stoebi 10-31-2006 10:00 PM

Show post as printable version
 
Lot of thx to captainslater from vbhacks-germany 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

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
--------------------------------------------------------------------------------
Code:

$post[iplogged]
--------------------------------------------------------------------------------

and replace it with
--------------------------------------------------------------------------------
Code:

            <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
--------------------------------------------------------------------------------
[code]$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

Quote:

Originally Posted by apdcanari
Good, Vbulletin 3.5, it is possible, please ? ;)

Attached


Regards, Stoebi

apdcanari 11-01-2006 06:43 PM

Quote:

Originally Posted by Stoebi
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! ;)


All times are GMT. The time now is 07:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01102 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete