I am wanting to change the pm notification to a gif image instead of (1) by the message tab
would like to know....
1. what file do i edit
2. what code do i replace
3. what exact code do i use
any help would be gratefully appreciated
before our upgrade to smf 2.0 beta4 , i had used the index.template.php and used this in the coding there...
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>] <img src="' . $settings['images_url'] . '/newpm.gif" border="0" />' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
i have found nothing like this in the index template of smf 2.0 beta 4 . in looking around at other posts, is the change to be in the Subs.php ? everything looks so different with smf 2.0 beta 4
Do you want the number itself to be an image or just change the PM text link to a image link? The file in SMF 2.0 beta 4 is located at /Sources/Subs.php:
'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
),
),
),
it is to replace the (1) beside message tab ..when a pm is there.. an image.... (newpm.gif) to be flashing beside the message tab.
Mumbles about how hard things are to find in 2.0 RC1 ...
$source/Subs.php around line 3928
if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
$context['menu_buttons']['pm']['title'] .= ' [<strong>'. $context['user']['unread_messages'] . '</strong>]';
Make the call to the image there instead of the [x] display.