vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to Disable the printable version (https://vborg.vbsupport.ru/showthread.php?t=240254)

Classico 04-11-2010 09:37 PM

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']))
{
    print_no_permission();
}

But does not work.... :(

Can you please help me?

Thanks!!! :)

Andy 04-13-2010 12:49 AM

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

Attachment 115696

MARCO1 04-15-2010 10:30 AM

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

borbole 04-15-2010 03:38 PM

There is already a mod for that I believe.

https://vborg.vbsupport.ru/showthread.php?t=231478

MARCO1 04-15-2010 05:47 PM

Quote:

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

https://vborg.vbsupport.ru/showthread.php?t=231478

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

borbole 04-15-2010 05:57 PM

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 04-16-2010 12:29 AM

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 07-18-2015 06:43 AM

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 07-18-2015 06:51 AM

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

PHP Code:

<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}<vb:if condition="$perpage">&amp;pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&amp;page={vb:raw pagenumber}</vb:if>" accesskey="3" rel="nofollow">{vb:rawphrase show_printable_version}</a></li

and change it to:

PHP Code:

<vb:comment><li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}<vb:if condition="$perpage">&amp;pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&amp;page={vb:raw pagenumber}</vb:if>" accesskey="3" rel="nofollow">{vb:rawphrase show_printable_version}</a></li></vb:comment


cellarius 07-18-2015 08:57 PM

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


All times are GMT. The time now is 09:57 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.01027 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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