+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Tired of popups for PM`s

  1. #1
    bigguy's Avatar
    bigguy is offline Retired bigguy is an unknown quantity at this point
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    5,426

    Tired of popups for PM`s

    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 by bigguy; 09-15-2006 at 02:49 AM.
    P.C. Tweakr - For all your computer and internet support
    P.C. Tweakr - For all your SMF help and support

  2. #2
    echo_unlimited is offline x10 Elder echo_unlimited is an unknown quantity at this point
    Join Date
    Dec 2005
    Posts
    633

    Re: Tired of popups for PM`s

    Nice. Very nice indeed. :hsdance:

  3. #3
    Brandon Guest

    Re: Tired of popups for PM`s

    Quite usefull. Thanks!

  4. #4
    Phil is offline Retired Staff Phil is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    kingston, Ontairo, Canada
    Posts
    3,672

    Re: Tired of popups for PM`s

    Thats awsome, I'm going to play around with that if I can get my SMF working.

  5. #5
    bigguy's Avatar
    bigguy is offline Retired bigguy is an unknown quantity at this point
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    5,426

    Re: Tired of popups for PM`s

    @ 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.
    P.C. Tweakr - For all your computer and internet support
    P.C. Tweakr - For all your SMF help and support

  6. #6
    Phil is offline Retired Staff Phil is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    kingston, Ontairo, Canada
    Posts
    3,672

    Re: Tired of popups for PM`s

    Quote Originally Posted by bigguy
    @ 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

  7. #7
    bigguy's Avatar
    bigguy is offline Retired bigguy is an unknown quantity at this point
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    5,426

    Re: Tired of popups for PM`s

    PM sent.
    P.C. Tweakr - For all your computer and internet support
    P.C. Tweakr - For all your SMF help and support

  8. #8
    echo_unlimited is offline x10 Elder echo_unlimited is an unknown quantity at this point
    Join Date
    Dec 2005
    Posts
    633

    Re: Tired of popups for PM`s

    This looks pretty kewl even though I don't know how to install SMF curios though could some one install SM|F for me?

  9. #9
    Brandon Guest

    Re: Tired of popups for PM`s

    You can install it from Fantastico in your Cpanel.

  10. #10
    echo_unlimited is offline x10 Elder echo_unlimited is an unknown quantity at this point
    Join Date
    Dec 2005
    Posts
    633

    Re: Tired of popups for PM`s

    Grrrrr... that sucks I can't access my Cursed cPanel

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Im tired of it AHHHH UGH GRR
    By SEŅOR in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 04-15-2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers