vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=240254

How to Disable the printable version
by Classico
11 Apr 2010 23:37

Hi,

Im trying yo disable the printable version for guests ( VB4 ).

In the printthread template i try to use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But does not work.... :(

Can you please help me?

Thanks!!! :)

Andy 13 Apr 2010 02:49

1 Attachment(s)
You will want to create a plugin like this.

Attachment 115696

MARCO1 15 Apr 2010 12:30

I'll create this Mod today, And Send PM To you when I finish it :)

borbole 15 Apr 2010 17:38

There is already a mod for that I believe.

http://www.vbulletin.org/forum/showthread.php?t=231478

MARCO1 15 Apr 2010 19:47

Quote:

Originally Posted by borbole (Post 2021757)
There is already a mod for that I believe.

http://www.vbulletin.org/forum/showthread.php?t=231478

Why we should use DB ? We can make the same Mod without any DB Changes!

borbole 15 Apr 2010 19:57

Quote:

Originally Posted by MARCO1 (Post 2021828)
Why we should use DB ? We can make the same Mod without any DB Changes!

I haven''t seen how the mod is coded. I simply informed the OP that what he wanted could be achived with that mod. It is up to him if he wants to use it or not or request another one.

MARCO1 16 Apr 2010 02:29

Quote:

Originally Posted by borbole (Post 2021831)
I haven''t seen how the mod is coded. I simply informed the OP that what he wanted could be achived with that mod. It is up to him if he wants to use it or not or request another one.

Yes, I Guessed that, You just trying to help, Thanks for your support borbole I like this kind of people :)

Wolver2 18 Jul 2015 09:43

Quote:

Originally Posted by MARCO1 (Post 2021973)
Yes, I Guessed that, You just trying to help, Thanks for your support borbole I like this kind of people :)

Couldnt find the Mod u created on this.

As I was looking for a Mod to completely give No access to anyone to print function

MarkFL 18 Jul 2015 09:51

You could go to your "SHOWTHREAD" template, and locate the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


cellarius 18 Jul 2015 23:57

Which will not prevent people from seeing the printable version if they know the direct link.

Wolver2 19 Jul 2015 01:56

Thanks MarkFL sadly They know the url of the printable version :( anyone to block everyone?

Quote:

Originally Posted by MarkFL (Post 2550582)
You could go to your "SHOWTHREAD" template, and locate the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


MarkFL 19 Jul 2015 02:08

Try adding:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

at the top of your "printthread.php" file.

MarkFL 19 Jul 2015 09:57

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.

Wolver2 20 Jul 2015 15:08

Appreciate it MarkFL , I will try and report to u once i get home

Stratis 26 Jul 2018 17:19

Quote:

Originally Posted by Wolver2 (Post 2550836)
Appreciate it MarkFL , I will try and report to u once i get home

Yep, I am waiting three years for your report, I assume you forgot it :D


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. :)


All times are GMT. The time now is 21:10.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.