PDA

View Full Version : Completely remove printable view


Aneurysm
06-01-2021, 06:00 PM
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:
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.