Jump to content
MakeWebGames

Recommended Posts

Posted

ok so this is simply a popup saying you have mail.

create file called: mpop.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

insert this file into the header file using

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

if i made a mistake tell me because this is my first atempt at a popup

easily converted to v2 and can also be used for events

Posted

something else you can do as well is change the color and perhapse add a icon / png whatever you like that shows visually that you have a event or even mail or an announcement has been added

Mainmenu.php ->

if($mc > 0) {

print "

<table border='1' bgcolor='#F5F6CE'>

<tr>

<td style='background-image: url(smoke.jpg)'><td width ='140'><font color=red>Mailbox ($mc) unread.png

</td>

</tr>

</table>";

}

else {

print "

<table border='1'>

<tr>

<td style='background-image: url(smoke.jpg)'><td width ='140'><font color=red>Mailbox (0) &nbsp

</td>

</tr>

</table>";

}

  • 4 weeks later...
Posted

This will only alert them when they refresh the page, Surely it would be better to use XHR to check to see if the user has any new mail every 10 or so seconds?

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...