TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

October 10, 2024, 05:36:59 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,395
  • Total Topics: 21,244
  • Online today: 80
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 125
  • Total: 125

Gamerz personal message notification

Started by Lesmond, May 05, 2012, 07:24:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

It has to do with this code likely in index.template. I have to run, or I'd figure it out. I'll check back when I get more time.

// change the PM button
if(isset($context['menu_buttons']['pm']) && $context['user']['unread_messages']>0)
$context['menu_buttons']['pm']['title'] = $txt['pm_short'] . ' <em class="pm_tip">' . $context['user']['unread_messages'] . '</em>';

Lesmond

I have just checked and that code is there!

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // change the PM button
   if(isset($context['menu_buttons']['pm']) && $context['user']['unread_messages']>0)
      $context['menu_buttons']['pm']['title'] = $txt['pm_short'] . ' <em class="pm_tip">' . $context['user']['unread_messages'] . '</em>';
   
   // add admin option to change settings
   if(allowedTo('admin_forum'))

Maxx1

Yes I checked and also changed out this portion , just to be sure it was not that, and no go!

And I stated above, I check the Scripts Above in the Index.template.php.... but it's probably something real minor we are overlooking, if you go to "my messages" it will show a NEW message, but the pm_tip will not show, I was thinking it may be a flag, however even if the image was missing the number should still uprear!

regards,
Maxx

But Mama, That's Where all the fun is!

Maxx1

OK guys found it it's ion the CSS i'll have it in a few!!!!

regards,
Maxx
But Mama, That's Where all the fun is!

Maxx1

Ok in your Gamerz index.css file find this code:

em.pm_tip, em.pm_tip_down {
    background: url("../images/theme/pm_tip.png") no-repeat scroll 0 0 transparent;
    color: #222222;
    display: block;
    font-family: trebuchet,sans-serif;
    font-size: 0.8em;
    font-style: normal;
    font-weight: bold;
    height: 29px;
    line-height: 19px;
    margin: -58px 0 0 25px;
    position: absolute;
    text-align: center;
    width: 29px;
}



change the margin -58 to -30 or so and should be good to go!

em.pm_tip, em.pm_tip_down {
    background: url("../images/theme/pm_tip.png") no-repeat scroll 0 0 transparent;
    color: #222222;
    display: block;
    font-family: trebuchet,sans-serif;
    font-size: 0.8em;
    font-style: normal;
    font-weight: bold;
    height: 29px;
    line-height: 19px;
    margin: -30px 0 0 25px;
    position: absolute;
    text-align: center;
    width: 29px;
}


checked 24" and 19" monitors, but you can adjust to your liking I guess, you will see the flag or rectangular bobble!

regards,
maxx
But Mama, That's Where all the fun is!

Lesmond

Perfect Maxx, nice work in finding that O0

I set mine to
margin: -35px 0 0 56px;

Which gave me this result..

Maxx1

But Mama, That's Where all the fun is!