SMF Support > SMF 2.0.x Support
Change Quote, Modity, Remove Icons
designer2012:
Hi
Reading through the forums, I found this link
http://www.smfsupport.com/support/smf-for-free-codes-and-support/%28code%29-swap-images-on-page-2017/msg12805/?PHPSESSID=vvj2ijm2vi9ghd928litt8dcd6#msg12805
But the page is no longer there.
Is there another way to change the Quote, Modity, Remove Icons? I have changed all the others manually using an FTP but with these being coded rather than regular icons I can't see where I change them.
Thanks
Kindred:
quote modify and remove icons? you mean in the message/thread view? Those are not icons in the default theme... they are just text with a button-like background.
defined in CSS and called in display.template.php
designer2012:
Sorry for wording it wrong, yes those ones, does that mean that these can't be changed I would like to use icons?
I've looked in display.template.php but I'm far from a php expert so not sure if I can do this and if so how.
Kindred:
--- Code: --- // Build the normal button array.
$normal_buttons = array(
'reply' => array('test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'], 'active' => true),
'add_poll' => array('test' => 'can_add_poll', 'text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start']),
'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' => 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' => array('test' => 'can_send_topic', 'text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=emailuser;sa=sendtopic;topic=' . $context['current_topic'] . '.0'),
'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
);
--- End code ---
actually, it looks like it's defined right there as both text and image....
designer2012:
I am not doing great at explaining myself so I apologise for that :)
I mean the ones under those
Navigation
[0] Message Index
[#] Next page
Go to full version