vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Completely remove printable view (https://vborg.vbsupport.ru/showthread.php?t=328764)

Aneurysm 06-01-2021 06:00 PM

Completely remove printable view
 
Been trying to figure this out forever, how can I completely disable or remove the printable view?

SITUATION: Our VB forum is for copier and printer technicians so the word "print" occasionally shows up as the last word of a post's title which, because we also utilize Dragonbyte Tech SEO rewrites for our URLs, causes the post to display in the printable view where another user cannot reply (see sample URL in the code block below). Rather than using rewrites to do something with the word "print" in the URLs I would rather just 100% remove/disable the printable view since it's never used and won't be missed. I've tried a few things with permissions but that just leaves users hanging with a message that they're not allowed. Any or thought on how I can completely remove the printable view? (I'm currently running vb v4.2.5)

SAMPLE URL:
HTML Code:

https://www.copytechnet.com/forums/konica-minolta/157120-c220-secure-print.html?157120=#post1774001

Seven Skins 06-01-2021 07:14 PM

OK

I tried this and it works, I think, but do not know what affect this will cause to the other functionality if any.

Rename your printthread.php to e.g printthread-old.php
Make a copy of showthread.php
Rename this copy to printthread.php

Basically you are replacing the contents of printthread.php with showthread.php

z3r0 06-03-2021 02:34 PM

I think before doing anything else I'd turn off "Rewrite Printer-Friendly Thread URLs" in the dbseo forum URL rewrite settings so your users are not inconvenienced.


All times are GMT. The time now is 11:58 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.01006 seconds
  • Memory Usage 1,709KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete