Tired of popups for PM`s

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
I integrated this onto my forums and I have permission from the author so I thought I would share this with the x10 community. This was written because I figured why not put a voice with the PM instead of getting a popup.

My forum specs are: Smf 1.0.5
: Mkportal 1.0
: 16+ modifications.

This modification is currently running on my forum and works with no errors. It works in FF (with the correct plugin installed) and IE. Credit for this modification goes to member: Psyclones of the simplemachines.org community. The modification is as follows:

backup your "Index.template.php" file and download a copy of it to your computer. In that file:

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], '', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';

ADD THIS UNDERNEATH IT:

//play audio for you got mail
if (($context['user']['unread_messages']) >= 1){
echo '<embed src="gotmail00.wav" hidden="true" autostart="true" loop="false">';
echo '<noembed>';
}

Save.
After that is done, unzip and upload the attached file to your smf directory and your done. If all goes well
the next time you get a PM on your smf forum you will here "You`ve got mail"

NOTE: If you have any questions you can try to ask here or on my forum or on the forum of simplemachines.org As far as I know this only works for Smf 1.0.5 & RC1
 
Last edited:

Phil

Retired Staff
Messages
7,344
Reaction score
0
Points
36
Thats awsome, I'm going to play around with that if I can get my SMF working.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
@ Phil. Well, I`m by far a coder or a programmer but I can give you or try to give you help if you need it. (Or want it) PM me if you have any questions.
 

Phil

Retired Staff
Messages
7,344
Reaction score
0
Points
36
bigguy said:
@ Phil. Well, I`m by far a coder or a programmer but I can give you or try to give you help if you need it. (Or want it) PM me if you have any questions.
I'm trying to use the Cpanel to install my SMF but it's not working any more, i'm getting errors.

I'm trying to set up a forum with some neat mod's such as this and some others.

But I don't want to use PHPbb.. haha
 

echo_unlimited

Active Member
Messages
1,266
Reaction score
0
Points
36
This looks pretty kewl even though I don't know how to install SMF curios though could some one install SM|F for me?
 

Jordan K

[B]tags dont work:([/B]
Messages
1,528
Reaction score
0
Points
0
As you said (and I recognize this) that isn't your work. But I want to say thank you anyways for bringing it here. Many people can & will benefit from this (maybe me one day). But in the mean time, great work on the find.:hsdance:
 
Top