fullyloaded Posted May 23, 2009 Share Posted May 23, 2009 hi is there anyway to change the alert popup box in my code to a simple custom one? i try to add one but had no luck i think it has to do with the if (confirm( but i could be wrong thanks... <?php $dbu=new mysql_db; //************************************************************************* $sql = "SELECT * FROM chat_conver WHERE mem2_id='".$_SESSION[u_ID]."' AND active='1' AND invite_alert='1' "; $dbu->query($sql); if($dbu->move_next()) { $cid=$dbu->f('chat_conver_id'); $dbu->query("update chat_conver set invite_alert='0' where chat_conver_id='".$cid."'" ); ?> <script language="javascript"> if (confirm("A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')")) window.open("http://www.mysite.com/", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1"); </script> Quote Link to comment Share on other sites More sharing options...
jackpf Posted May 23, 2009 Share Posted May 23, 2009 Yeah, you see that text "A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')" Change that....? Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted May 23, 2009 Author Share Posted May 23, 2009 hi i tried that but it didn't work you think its because my site is using templates with each php file? Quote Link to comment Share on other sites More sharing options...
jackpf Posted May 23, 2009 Share Posted May 23, 2009 Well, no offense, but how are we supposed to know then? If you don't even know how your own site works, how are we supposed to? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.