News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Is there a way to remove certain buttons?

Started by CheeseHead05, August 01, 2013, 10:37:19 PM

Previous topic - Next topic

CheeseHead05

I want to know if I can remove these buttons:

NOTIFY
MARK UNREAD
SEND THIS TOPIC
PRINT


Neo_TE

Notify & send this topic - You can disable it in the permissions.

Print - Check this mod, http://custom.simplemachines.org/mods/index.php?mod=2293.

Mark Unread - You can remove the button by removing the related lines in "display.template.php".

kat

Specifically...

To get rid of the "Notify" button (And piss some of your members off, I'd suspect), remove this line, from Display.template.php (Default theme).

'notify' => array('test' => 'can_mark_notify', 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify', 'image' => ($context['is_marked_notify'] ? 'un' : '') . 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),

"Mark unread", is the next line:

'mark_unread' => array('test' => 'can_mark_unread', 'text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),

"Send topic" is,  you guessed it, the line after that:

'send' => array('test' => 'can_send_topic', 'text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=emailuser;sa=sendtopic;topic=' . $context['current_topic'] . '.0'),

And, as you must have guessed, by now, "Print" is the line after that:

'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),


As an aside, removing the "Print" button won't prevent anyone from printing-off a page, if they want to. They'll just use their browser's menu, to do that.

CheeseHead05

K@,

What is the purpose of "notify"? who am I notifying? and lol at ur print comment....

kat

"Notify" is what they click, if they want a notification of replies to the topic...

ARG01

Quote from: K@ on August 02, 2013, 10:26:13 AM
"Notify" is what they click, if they want a notification of replies to the topic...

Which there are specific settings in your profile to control that as well. :)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

kat

Of course!

Some find the "Notify" button easier, though.

Me, for one. :)

ARG01

I prefer the Notify button as well. This way I am being notified only for the topics that I deem worthy.  If the OP removes his Notify button, he may receive flack from some members. ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.


CheeseHead05

ohhhhh! Guess I will leave the notify button then...

Whats the purpose of the "mark unread" button?

kat

I would think it's just for people who have read things, to flag it back as being unread, for some reason.

In other words... I really have no idea! :)

The wiki wasn't terribly useful, either.

CheeseHead05

K@,

what about the code for "mark read'..I wish to delete that too.

kat


Advertisement: