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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 165
  • Total: 165

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

That would be a personal choice I would think, I have mine animated in the TP block as well with sound.

OzButcher


Crip

What about just in the index.template.php without TP??  ... the code MAX gave a few post ago doesn't work on SMF Default Theme.. 1.1RC3 ... ?

crip
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



rebelrose


Crip

Thanks, but I have it working without a mod.. just some simple code changes. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



rebelrose

That is what I did also, changed the code. I have mine animated and with sound inn the TP Block and not the forum index.

Crip

I changed the code in the index.template.php < b  r  / >; one of those & an echo '
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



OzButcher

In my theme the mod doesn't work as I don't have any userinfo block.

I am using the 'userbox' code in a block to display when new PM's come in. Can somone tell me which code in this thread will display the image and sound for this purpose? :) Cheers.

http://unt.swisshut.com

rebelrose

Animated PM icon in the user block.

In the forum/Themes/default/TPortalBlocks.template.php



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>';



upload the msg.gif to your images

This was found on Tiny Portal Site Animated PM Icon

Make sure if you use sound that the sound file is correctly named, also you can use any image you like for the animation. I had one custom made for my site.

OzButcher

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?

This website is proudly hosted on Crocweb Cloud Website Hosting.