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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 95
  • Total: 95

Animated PM icon

Started by SOTGMarine, December 03, 2005, 11:45:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bhunted

Here is a Donate button for yaz too in case you would like to take donations...


bicho



Anibody know how to make an animated button to the default theme RC2, like this one that we are using here on the bloczone?

I already have put the button next to the members buttons called "DoaÇÃÆ'Ã,µes" and i want to know if it is possible  to make this one (DoaÇÃÆ'Ã,µes) animated and if i can how.


Thank you very much to you all.

ontap

another way....

YourTheme/index.template.php

Find:

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.';


Afer Add:

// Show Flashy icon if user has new messages but forget the guests
if (!$context['user']['is_guest'] && $context['user']['unread_messages'])
      echo '
<a href="' . $scripturl . '?action=pm"><img src="' . $settings['images_url'] . '/gif.gif" border="0" />(' . $context['user']['unread_messages'] . ')</a> ' . $context['menu_separator'] . '';


Add Image To YourTheme/Images/newpm.gif

crip

SMF has a mod for this now..goes in the Default Theme.

technodragon73

I have edited the tportalblock.template.php (which is where it is handled for me anyway).  This is under the user block.

Find:
                   if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , '</a>';

Replace with:
                   if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , ' <img src="' . $settings['images_url'] . '/msg.gif" border="0"><bgsound src="' . $settings['images_url'] . '/Mail01.wav" border="0"></a>';


I couldn't attach the wav file, but you can easily find your own.  Just make sure to change the file name in the above code so it will work.

crip

That is indeed handy and a bit creative as well. ;)

technodragon73

Plus using the portal blocks it is a lot easier...most themes use the default one so there is less editing to be done than if it was through the index.template

crip

Exactly..now go get in shape.. ;D ;D

technodragon73

 :2funny: :knuppel2: :tickedoff:

I did...it is round... :2funny:

dkaye315

Quote from: technodragon73 on March 14, 2006, 11:30:07 PM
I have edited the tportalblock.template.php (which is where it is handled for me anyway).  This is under the user block.

Find:
                   if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , '</a>';

Replace with:
                   if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , ' <img src="' . $settings['images_url'] . '/msg.gif" border="0"><bgsound src="' . $settings['images_url'] . '/Mail01.wav" border="0"></a>';


I couldn't attach the wav file, but you can easily find your own.  Just make sure to change the file name in the above code so it will work.
Thanks for posting this, added it to my boards.  Interestingly, the sound does not work in FF.  However, does work in both IE and Opera. ?? .

This website is proudly hosted on Crocweb Cloud Website Hosting.