News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Print option

Started by nina-nina, March 17, 2009, 01:30:37 PM

Previous topic - Next topic

nina-nina

There is a button/option where the member can print the topic he/she is reading. I would like to disable this option and I can't seem to find how to do it?  Can anyone point to where is it that I can disable the print option?  Than you.

shadow82x

What theme are you using?
What SMF version are you using?
Colin B
Former Spammer, Customize, & Support Team Member

nina-nina

I am using SMF 1.1.8 and the theme is Dilbert.

shadow82x

Currently your theme is not found on our theme site.
Mind attaching your themes display.template.php here? (../Themes/{yourtheme}/display.template.php)

How do I use FTP? / What is FTP?
Colin B
Former Spammer, Customize, & Support Team Member

nina-nina

I am sorry, I was writing so fast that I misspelled the name of the theme. The Theme is Dilber MC
Here is the theme site:  http://custom.simplemachines.org/themes/index.php?lemma=80

shadow82x

Quote from: nina-nina on March 17, 2009, 05:40:42 PM
I am sorry, I was writing so fast that I misspelled the name of the theme. The Theme is Dilber MC
Here is the theme site:  http://custom.simplemachines.org/themes/index.php?lemma=80
Thanks for clarifying. :)

In
../Themes/default/display.template.php
You can find/Remove
      'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

Note: This will only remove the button, members can still access /action=printpage;topic=4.0
Note #2: Since Dilber MC doesn't have its own display.template.php, it fallsback to the default theme
Colin B
Former Spammer, Customize, & Support Team Member

nina-nina

Thank you much!   :) I just want to remove the button.

shadow82x

No problem. :) Goodluck with your site. ;)
Colin B
Former Spammer, Customize, & Support Team Member

nina-nina

Quote from: Shadow82x on March 17, 2009, 07:07:51 PM
Quote from: nina-nina on March 17, 2009, 05:40:42 PM
I am sorry, I was writing so fast that I misspelled the name of the theme. The Theme is Dilber MC
Here is the theme site:  http://custom.simplemachines.org/themes/index.php?lemma=80
Thanks for clarifying. :)

In
../Themes/default/display.template.php
You can find/Remove
      'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

Note: This will only remove the button, members can still access /action=printpage;topic=4.0
Note #2: Since Dilber MC doesn't have its own display.template.php, it fallsback to the default theme

I've spent the last two days trying to find this and I have not been able to find it.  So, I still have/see the 'print' option button that I want to remove.

shadow82x

Are you sure you are looking in the right area?

../Themes/default/display.template.php

Mind attaching that template here if you cant find the option?
Colin B
Former Spammer, Customize, & Support Team Member

Advertisement: