![]() |
How to Disable the printable version
Hi,
I?m trying yo disable the printable version for guests ( VB4 ). In the printthread template i try to use this code: Code:
if (empty($vbulletin->userinfo['userid'])) Can you please help me? Thanks!!! :) |
1 Attachment(s)
|
I'll create this Mod today, And Send PM To you when I finish it :)
|
|
Quote:
|
Quote:
|
Quote:
|
Quote:
As I was looking for a Mod to completely give No access to anyone to print function |
You could go to your "SHOWTHREAD" template, and locate the code:
PHP Code:
PHP Code:
|
Which will not prevent people from seeing the printable version if they know the direct link.
|
Thanks MarkFL sadly They know the url of the printable version :( anyone to block everyone?
Quote:
|
Try adding:
PHP Code:
|
1 Attachment(s)
If you wish to avoid template edits and PHP file hacks, then download and import the attached add-on. It uses 1 plugin to inject a snippet of javascript to remove the "Show Printable Version" item from the "Thread Tools" menu, and another plugin that will deny permission to anyone trying to access the script manually. :up:
There are no settings to configure, once it is imported, it is active. |
Appreciate it MarkFL , I will try and report to u once i get home
|
Quote:
Mark I just test this, "Show Printable Version" phrase-option is still there. It does not allow though to see the page. Stratis, you do not have permission to access this page. This could be due to one of several reasons: This is ok, but if the option "Show Printable Version" is not there it would be great. Thanks any way. :) |
Quote:
|
Quote:
Thanks for another time. |
It does hide the option. Try it with the default style.
What version of vB are you testing it with? What browser are you using? |
vb 4.2.0, with all styles and all browsers.
Just test this #9 This hides the option, so i will use that with the product-markflnoprintable.xml :) |
I am guessing your template is different then, and so the javascript doesn't work.
|
Quote:
Any way thanks Mark, as with both up changes i am ok now :) |
What I mean is, the default template in your older version of vB must be different enough from the one in later versions to keep the javascript from working. That's my guess.
|
Quote:
|
All times are GMT. The time now is 04:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|