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:
ADD THIS UNDERNEATH IT:
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
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: