Pages:
Author

Topic: Making new messages more obvious (SMF patch) - page 3. (Read 564 times)

hero member
Activity: 510
Merit: 4005
I've noticed that I check my PMs right after logging in, but then only haphazardly after that. The message counter in square brackets is pretty easy to miss (unless you remember to cast your eyes up there once in a while), so I sometimes leave messages sitting around for longer than I'd like.



I played around with a few ways to make it more obvious that your inbox needs attending. It's quite easy to mess up that area of the HTML, so what ended up working best was a carefully-rasterized image of a little white dot:



I think it catches the eye nicely without being too opinionated (stylistically), so it fits in with the rest of the SMF aesthetic.

Here's the patch for @theymos, if he approves of this change:

Code:
--- /var/www/baseline/Themes/default/index.template.php	2008-04-30 18:30:34.000000000 +0000
+++ /var/www/modified/Themes/default/index.template.php 2023-04-10 14:59:46.000000000 +0000
@@ -545,25 +545,26 @@
 
  // Edit Profile... [profile]
  if ($context['allow_edit_profile'])
  echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? ' ' : '' , '
 
  ' , $txt[79] , '
  ' , $current_action == 'profile' ? ' ' : '';
 
  // Go to PM center... [pm]
  if ($context['user']['is_logged'] && $context['allow_pm'])
  echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? ' ' : '' , '
 
- ' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '
+ ' , $context['user']['unread_messages'] > 0 ? ' ' : '' ,
+ '' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '
  ' , $current_action == 'pm' ? ' ' : '';
 
  // The [calendar]!
  if ($context['allow_calendar'])
  echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? ' ' : '' , '
 
  ' , $txt['calendar24'] , '
  ' , $current_action == 'calendar' ? ' ' : '';
 
  // the [member] list button
  if ($context['allow_memberlist'])
  echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? ' ' : '' , '
Pages:
Jump to: