How to disable the ability to use the print version

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Webber
    Senior Member
    • Aug 2004
    • 143
    • 4.1.x

    How to disable the ability to use the print version

    I am running VB 3.0.03 and am new to this forum software, I need to disable the ability for one to show and print a print version of a thread or post, etc.

    How do I do that?

    I have searched this forum but didn't find anything for this.

    Any help is greatly appreciated.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    The printable thread pages use the same permissions as regular thread pages. If a user has permission to view a thread then they can also view its printable version.

    If you don't want anyone to be able to view printable threads then you can edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Printable Thread Templates -> printthread

    Remove the red code:

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    <title>$vboptions[bbtitle] - $threadinfo[title]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
    <meta name="generator" content="vBulletin $versionnumber" />
    <style type="text/css">
    <!--
    td, p, li, div
    {
    	font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .smallfont
    {
    	font-size: 11px;
    }
    .tborder
    {
    	border: 1px solid #808080;
    }
    .thead
    {
    	background-color: #EEEEEE;
    }
    .page
    {
    	background-color: #FFFFFF;
    	color: #000000;
    }
    -->
    </style>
    </head>
    <body class="page">
    
    [color=red]<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr valign="bottom">
    	<td><a href="$vboptions[bburl]/"><img src="$stylevar[titleimage]" alt="$vboptions[bbtitle]" border="0" /></a></td>
    	<td align="$stylevar[right]">
    		<div class="smallfont">$pagenav</div>
    		<if condition="$show['pagenav']">
    		<div class="smallfont"><a href="printthread.php?$session[sessionurl]t=$threadid&amp;pp=$maxperpage"><phrase 1="$maxperpage">$vbphrase[show_x_posts_on_one_page]</phrase></a></div>
    		</if>
    	</td>
    </tr>
    </table>
    
    <br />
    
    <div>
    	<a href="$vboptions[bburl]/$vboptions[forumhome].php" accesskey="1"><strong>$vboptions[bbtitle]</strong></a>
    	(<span class="smallfont"><em>$vboptions[bburl]/$vboptions[forumhome].php</em></span>)
    </div>
    <div>
    	- &nbsp; <a href="forumdisplay.php?f=$foruminfo[forumid]"><strong>$foruminfo[title]</strong></a>
    	(<span class="smallfont"><em>$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]</em></span>)
    </div>
    <div>
    	- &nbsp; - &nbsp; <a href="showthread.php?t=$threadid" accesskey="3"><strong>$threadinfo[title]</strong></a>
    	(<span class="smallfont"><em>$vboptions[bburl]/showthread.php?t=$threadid</em></span>)
    </div>
    
    <br />
    
    $postbits
    
    <br />
    
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr valign="top">
    	<td class="smallfont">$vbphrase[all_times_are_gmt_x_time_now_is_y]</td>
    	<td align="$stylevar[right]">
    		<div class="smallfont">$pagenav</div>
    		<if condition="$show['pagenav']">
    		<div class="smallfont"><a href="printthread.php?$session[sessionurl]t=$threadid&amp;pp=$maxperpage"><phrase 1="$maxperpage">$vbphrase[show_x_posts_on_one_page]</phrase></a></div>
    		</if>
    	</td>
    </tr>
    </table>
    
    <p class="smallfont" align="center">
    	$vbphrase[powered_by_vbulletin]
    	<br />
    	$vboptions[copyrighttext]
    </p>[/color]
    
    </body>
    </html>
    And replace it with something like this:

    Code:
    <div align="center">Printable threads disabled.</div>
    Now when some one tries to view a printable thread they will only see the above message.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...