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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 642
  • Total: 643
  • tino

PM Audio Alert

Started by bigguy, September 10, 2006, 10:10:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

im thinking of recordin my own sound file which will say "HEY! u got mail u dork!"

lol

RoarinRow

Quote from: Aku on October 31, 2006, 04:59:46 PM
im thinking of recordin my own sound file which will say "HEY! u got mail u dork!"

lol

Hahahaha, I would love that one   :2funny:   I'd send all my active members a PM, but I'm sure they'd smite me   :o

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

#12
lool

hey bigguy i wanted to ask - u know those adverts getting posted after every X posts on your forum - is that a mod? is it available for DL anywhere?
found it

thanks

RoarinRow

After installing the package for TP 15 - http://mods.simplemachines.org/index.php?mod=454

I went to my custom theme, opened up index.template.php and added this code right before

// display user name

//Sound Notify On Messages
  if (($context['user']['unread_messages']) >= 1){
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="     http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';

}  
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="     http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';

// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

bigguy

Yeah this mod like most of the rest only installs to the default theme.

Crip

It only repeats [YOU GOT MAIL] once..thats all
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



bigguy

This version does not play the loop. It should only play "You've got mail" once or twice.

RoarinRow

Quote from: bigguy on October 31, 2006, 05:43:35 PM
This version does not play the loop. It should only play "You've got mail" once or twice.

I only heard it twice.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

TolerancE

the notification plays each time you reload a page. Impossible not to notice.

This website is proudly hosted on Crocweb Cloud Website Hosting.