wht and where did i go wrong that it dnt work? guys help me out
Alerts/popup
Collapse
X
-
Guest -
Guest -
Guest
brou ill pm u the link ok?its not my site its someone elses site i only edit it for him coz he my mate
Comment
-
n2o
ok this is for XHTML
make popups.php
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE
touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM fun_pops where touid='".$uid."' AND unread = '1' ORDER
BY id LIMIT 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM fun_pops WHERE
touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE fun_pops SET unread='0' WHERE
id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = htmlspecialchars($pop[1]);
echo "
$by: $msg - $dtop
";
echo "<a href=\"lists.php
?action=sendto&sid=$sid&who=$pop[2]\"><font color=\"00FF00\">RELPY</a>";
echo "
<font color=\"0000FF\">---</font>
";
}
}
?>
Then Make popus.php
<?php
include("xhtmlfunctions.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
$pstyle = gettheme1("1");
echo xhtmlhead("FlareZone",$pstyle);
echo "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
$pstyle = gettheme1("1");
echo xhtmlhead("FlareZone",$pstyle);
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are Banned
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties
WHERE uid='".$uid."' AND penalty='1'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg
";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
$pstyle = gettheme($sid);
echo xhtmlhead("FlareZone Pop ups",$pstyle);
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."',
byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<font color=\"00FF00\">Popup Message Sent to $whonick!</font>
";
echo "
<font color=\"0000FF\">---</font>
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
else if($action=="sendto"){
$who = $_get['who'];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
$pstyle = gettheme($sid);
echo xhtmlhead("FlareZone Pop ups",$pstyle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "SEND<go href=\"popus.php?action=send&who=$who&sid= $sid\"
method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
}
echo "</p>";
echo xhtmlfoot();
?>
Add This To List.php
///////////////////////////////////////////POP UPS
else if($action=="sendto"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
$pstyle = gettheme($sid);
echo xhtmlhead("Pop Up MSG",$pstyle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending to ".$whonick."
";
echo "<form action=\"popus.php?action=send&who=$who&si d=$sid\"
method=\"post\">";
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "<input type='submit' value='Send'/></form>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
echo "</p>";
echo xhtmlfoot();
}
And Use The SQL That Was Posted By Subzero ,
Comment
-
Guest -
hey all even in having problem with pop up on my rw script could someone tell me wht exactly is wrong here
oh lists.php i added like this
//////////////////////////////////Pop-Up
else if($action=="sendto"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending to ".$whonick."
";
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&sid= $sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
echo "</p>";
echo "</card>";
}
then on users profile where u have send pm i added link like this
echo "</small>";
}
echo "<a href=\"lists.php?action=sendto&sid=$sid\">Send Pop-Up</a>
";
echo "<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">Send PM</a>
";
$uid = getuid_sid($sid);
if(budres($uid, $who)==0)
{
echo "<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=add\">Add to buddy list</a>
";
}else if(budres($uid, $who)==1)
and after clickin on send popup till next page it works fine i get input box and send msg but after i click on send the next page i get this
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxx.com/public_html/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/popus.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxxx.com/public_html/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/re/popus.php on line 3
Popup Message Sent to !
---
Home
and on main index page i added include
echo "
";
include ('popups.php');
echo "</p>
<small>";
but somethin strange i see where i added this code there is this symbol

can someone of you please guide me what i did wrong and where???Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
Guest
hey all even in having problem with pop up on my rw script could someone tell me wht exactly is wrong here
oh lists.php i added like this
//////////////////////////////////Pop-Up
else if($action=="sendto"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending to ".$whonick."
";
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&sid= $sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
echo "</p>";
echo "</card>";
}
then on users profile where u have send pm i added link like this
echo "</small>";
}
echo "<a href=\"lists.php?action=sendto&sid=$sid\">Send Pop-Up</a>
";
echo "<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">Send PM</a>
";
$uid = getuid_sid($sid);
if(budres($uid, $who)==0)
{
echo "<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=add\">Add to buddy list</a>
";
}else if(budres($uid, $who)==1)
and after clickin on send popup till next page it works fine i get input box and send msg but after i click on send the next page i get this
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxx.com/public_html/re/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/re/popus.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxxx.com/public_html/re/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/re/popus.php on line 3
Popup Message Sent to !
---
Home
and on main index page i added include
echo "
";
include ('popups.php');
echo "</p>
<small>";
but somethin strange i see where i added this code there is this symbol

can someone of you please guide me what i did wrong and where???[/b]
use it
add this code in ur index.php
echo"<a href=\"index.php?action=viewbud&who=$who&s id=$sid\">Send pop up msg</a>
";
b4
echo "<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">Send PM</a>
";
Attached Files
Comment
-
its not workin it takes me to the main login page
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
Guest
just given my scripts which is working fine,find out where u made mistakes by urselfits not workin it takes me to the main login page
[/b]
Comment
-
FlareX -
atleast tell me bro how do you people link it exactly and do i have to also do somethin in lists.php ect?Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
Guest
atleast tell me bro how do you people link it exactly and do i have to also do somethin in lists.php ect?[/b]
man i gave u a complete script with a read me.txt,in my script u can find an action index.php
n the link is
echo"<a href=\"index.php?action=viewbud&who=$who&s id=$sid\">Send pop up msg</a>
"
and the link 4 ur codes in list.php will b
echo"<a href=\"lists.php?action=sendto&who=$who&si d=$sid\">Send pop up msg</a>
"
Comment
-
ok i did everythin right bro but after i click on send popup i get this
Fatal error: Call to undefined function getuid_sid() in /home/xxxx/domains/xxx.com/public_html/pops.php on line 4Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
and when i click on this link
echo"<a href=\"index.php?action=viewbud&who=$who&s id=$sid\">Send pop up msg</a>
"
it takes me to main index page where u loginFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment

Comment