Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Apr 2010, 23:37
Classico Classico is offline
 
Join Date: Dec 2007
Question How to Disable the printable version

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!!!
Reply With Quote
  #2  
Old 13 Apr 2010, 02:49
Andy Andy is offline
 
Join Date: Oct 2003
You will want to create a plugin like this.

Untitled-1.jpg
Reply With Quote
  #3  
Old 15 Apr 2010, 12:30
MARCO1's Avatar
MARCO1 MARCO1 is offline
 
Join Date: Jun 2008
Real name: Marco
I'll create this Mod today, And Send PM To you when I finish it
__________________
Marco Mamdouh Fahem.
OUZMind Lead Developers
vBFoster Lead Developers
vBulletin 5 Alpha Team member.
Reply With Quote
  #4  
Old 15 Apr 2010, 17:38
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
There is already a mod for that I believe.

http://www.vbulletin.org/forum/showthread.php?t=231478
__________________
My mods.
Reply With Quote
  #5  
Old 15 Apr 2010, 19:47
MARCO1's Avatar
MARCO1 MARCO1 is offline
 
Join Date: Jun 2008
Real name: Marco
Originally Posted by borbole View Post
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!
__________________
Marco Mamdouh Fahem.
OUZMind Lead Developers
vBFoster Lead Developers
vBulletin 5 Alpha Team member.
Reply With Quote
  #6  
Old 15 Apr 2010, 19:57
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Originally Posted by MARCO1 View Post
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.
__________________
My mods.
Reply With Quote
  #7  
Old 16 Apr 2010, 02:29
MARCO1's Avatar
MARCO1 MARCO1 is offline
 
Join Date: Jun 2008
Real name: Marco
Originally Posted by borbole View Post
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
__________________
Marco Mamdouh Fahem.
OUZMind Lead Developers
vBFoster Lead Developers
vBulletin 5 Alpha Team member.
Reply With Quote
  #8  
Old 18 Jul 2015, 09:43
Wolver2 Wolver2 is offline
 
Join Date: Oct 2010
Originally Posted by MARCO1 View Post
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
Reply With Quote
  #9  
Old 18 Jul 2015, 09:51
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.

Reply With Quote
  #10  
Old 18 Jul 2015, 23:57
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Which will not prevent people from seeing the printable version if they know the direct link.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #11  
Old 19 Jul 2015, 01:56
Wolver2 Wolver2 is offline
 
Join Date: Oct 2010
Thanks MarkFL sadly They know the url of the printable version anyone to block everyone?

Originally Posted by MarkFL View Post
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.
Reply With Quote
  #12  
Old 19 Jul 2015, 02:08
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Try adding:


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

at the top of your "printthread.php" file.
Reply With Quote
  #13  
Old 19 Jul 2015, 09:57
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.

There are no settings to configure, once it is imported, it is active.
Attached Files
File Type: xml product-markflnoprintable.xml (1.2 KB, 25 views)
Reply With Quote
  #14  
Old 20 Jul 2015, 15:08
Wolver2 Wolver2 is offline
 
Join Date: Oct 2010
Appreciate it MarkFL , I will try and report to u once i get home
Reply With Quote
  #15  
Old 26 Jul 2018, 17:19
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Real name: Stratis
Originally Posted by Wolver2 View Post
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


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.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cool Printable version nguyenvu27 vBulletin 2.x Template Modifications 1 17 Apr 2003 16:53



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:03.

Layout Options | Width: Wide Color: