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: 110
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 68
  • Total: 68

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.

rebelrose

Quote from: OzButcher on December 07, 2006, 02:39:08 AM
Thanks! That shows up the image :) I don't get the sound though, but I'm assuming it might be because I'm running firefox?

Did you add a sound file?

TolerancE

Has this process changed for 1.1 and .97? I have tried and cannot find any of that code in the newer versions.

alhaudhie

Quote from: Kaye on April 21, 2006, 02:33:51 AM
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. ?? .

yes.. it not play with ff

anybody can resolve this?... tq

Crip

Just go here: http://www.tinyportal.net/index.php?topic=1570.msg26454#msg26454

add the code for it in your index.template.php .. couldn't be easier. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

A quick google on bgsound for Firefox and you'll discover that the bgsound tag is IE specific. You'll need to use embed. If you don't know how to use embed, then google again. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.