hey bro thanks alot i got it to work finally
Alerts/popup
Collapse
X
-
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>

-
Guest
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 login[/b]
u might nt follow the directions of my readme.txt.do u think PHP will work as ur own wish?
add this codes
in ur index.php
else if($action=="viewbud")
{
addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&who=$who");
echo "<card id=\"main\" title=\"buddylist\">";
echo "
";
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'";
$items = mysql_query($sql);
while ($item = mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
$plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$item[2]."'"));
$uact .= $plc[0];
}else{
$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
$uact = "Last Active: ";
$ladt = date("d m y-H:i:s", $item[0]);
$uact .= $ladt;
}
}
$whonick = getnick_uid($who);
if(arebuds($uid, $who)==true)
{
echo "<a href=\"index.php?action=viewuser&sid=$sid& who=$who\">$whonick</a>
";
echo "($uact)
";
echo "pop-up message:
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<anchor>Send<go href=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<postfield name=\"who\" value=\"$who\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>";
echo "
<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=del\">- remove from buddylist</a>";
}else{
echo "$whonick is not a buddy";
}
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
}
before
else{
/////////////////////////Main Page Here
echo "<card id=\"main\" title=\"nicechat\">";
echo "<p align=\"center\">";
echo "<img src=\"images/logo.gif\" alt=\"*\"/>
";
echo "Welcome to our online music community
";
$onu = getnumonline();
echo "Members Inside: $onu
";
echo "LOGIN or REGISTER to enjoy live chat, blogs, polls, mesage boards, online server games, and so much more. Absolutely free!";
echo "
<a href=\"http:///yoursite.php\">Your OWN Personal Site</a>
";
echo "<a href=\"http:///rssservice.php\">RSS music Feeds</a>
";
echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/>
";
echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/>
";
echo "<anchor>LOGIN<go href=\"login.php\" method=\"get\">";
echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";
echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";
echo "</go></anchor>";
echo "";
echo "
<a href=\"register.php\">REGISTER</a>
";
echo "<a href=\"index.php?action=terms&sid=$sid\">TERMS OF USE</a>
";
echo "";
echo "";
echo "<a href=\"http://\">nicechat(v2)</a>
";
echo "© hardstyles";
echo "</p>";
echo "</card>";
}
?>
</wml>
Comment
-
Guest
hey bro thanks alot i got it to work finally
[/b]
ok,nxt time never forget to follow the directions of read me.txt
Comment
-
jackk bro im converting ur script in xhtml but somethin not right could anyone of u help me out wots wrng in here coz when i try to send popup it says buddy not in list
-------------------
pops.php
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM ibwf_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 0, 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE ibwf_pops SET unread='0' WHERE id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = parsepm($pop[1], $sid);
echo "$by: $msg - $dtop
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"send pop up\"/>";
echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form></small>";
echo "
---
";
}
}
--------------
popup.php
<?php
include("config.php");
include("core.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
echo "</head>";
echo "<body>";
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
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>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
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>";
exit();
}
if($action=="send")
{
$who=$_POST["who"];
$msg=$_POST["msg"];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Pop-Up Sent\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
if(arebuds($byuid, $who)==true)
{
$res = mysql_query("INSERT INTO ibwf_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
include("pops.php");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>
";
echo "Can't Send Message to $whonick
";
}
}else{
echo "Name is not in buddylist!";
}
echo "
---
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
else if($action=="archive")
{
echo "<card id=\"main\" title=\"xxx\">";
echo "</body>";
}
else{
/////////////////////////Main Page Here
echo "<card id=\"main\" title=\"xxx\">";
echo "<p align=\"center\">";
echo "</p>";
echo "</body>";
}
?>
</html>
--------------------
index.php
else if($action=="viewbud")
{
addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&who=$who");
echo "<card id=\"main\" title=\"buddylist\">";
echo "
";
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'";
$items = mysql_query($sql);
while ($item = mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
$plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$item[2]."'"));
$uact .= $plc[0];
}else{
$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
$uact = "Last Active: ";
$ladt = date("d m y-H:i:s", $item[0]);
$uact .= $ladt;
}
}
$whonick = getnick_uid($who);
if(arebuds($uid, $who)==true)
{
echo "<a href=\"index.php?action=viewuser&sid=$sid& who=$who\">$whonick</a>
";
echo "($uact)
";
echo "pop-up message:
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"SEND\"/>";
echo "<postfield name=\"who\" value=\"$who\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form>";
//echo "
<a href=\"index.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=del\">- remove from buddylist</a>";
}else{
echo "$whonick is not a buddy";
}
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</body>";
}
someone help me pleaseFailure 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
jackk bro im converting ur script in xhtml but somethin not right could anyone of u help me out wots wrng in here coz when i try to send popup it says buddy not in list
-------------------
pops.php
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM ibwf_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 0, 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE ibwf_pops SET unread='0' WHERE id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = parsepm($pop[1], $sid);
echo "$by: $msg - $dtop
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"send pop up\"/>";
echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form></small>";
echo "
---
";
}
}
--------------
popup.php
<?php
include("config.php");
include("core.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
echo "</head>";
echo "<body>";
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
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>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
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>";
exit();
}
if($action=="send")
{
$who=$_POST["who"];
$msg=$_POST["msg"];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Pop-Up Sent\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
if(arebuds($byuid, $who)==true)
{
$res = mysql_query("INSERT INTO ibwf_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
include("pops.php");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>
";
echo "Can't Send Message to $whonick
";
}
}else{
echo "Name is not in buddylist!";
}
echo "
---
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
else if($action=="archive")
{
echo "<card id=\"main\" title=\"xxx\">";
echo "</body>";
}
else{
/////////////////////////Main Page Here
echo "<card id=\"main\" title=\"xxx\">";
echo "<p align=\"center\">";
echo "</p>";
echo "</body>";
}
?>
</html>
--------------------
index.php
else if($action=="viewbud")
{
addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&who=$who");
echo "<card id=\"main\" title=\"buddylist\">";
echo "
";
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'";
$items = mysql_query($sql);
while ($item = mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
$plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$item[2]."'"));
$uact .= $plc[0];
}else{
$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
$uact = "Last Active: ";
$ladt = date("d m y-H:i:s", $item[0]);
$uact .= $ladt;
}
}
$whonick = getnick_uid($who);
if(arebuds($uid, $who)==true)
{
echo "<a href=\"index.php?action=viewuser&sid=$sid& who=$who\">$whonick</a>
";
echo "($uact)
";
echo "pop-up message:
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"SEND\"/>";
echo "<postfield name=\"who\" value=\"$who\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form>";
//echo "
<a href=\"index.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=del\">- remove from buddylist</a>";
}else{
echo "$whonick is not a buddy";
}
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</body>";
}
someone help me please[/b]
is my scripts working i mean in wml?
Comment
-
brother its workin good in wml but in xhtml it aint could you please help me convert it in xhtml?
i m getting error when i try to send pop up it says user not in buddylistFailure 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
ok i will give u an xhtml popup,but u hv to wait 4 thatbrother its workin good in wml but in xhtml it aint could you please help me convert it in xhtml?
i m getting error when i try to send pop up it says user not in buddylist[/b]
Comment
-
someone please help me fix the error in popup that i converted into xhtml im unable send pop up it says not in buddy listFailure 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
-
waitin for help here aswell;)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
waitin for help here aswell;)[/b]
i dnt that u hv converted the viewbud action for index.php or nt
Comment
-
Guest
waitin for help here aswell;)[/b]
i dnt that u hv converted the viewbud action for index.php into xhtml or nt
Comment
-
bro i guess i have done almost everythin i don't know if i missed out something please help me out with the converting into xhtml plzFailure 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
-
linkrx7 -
here it is linkx7 brother
the error is when i click on send pop up button it says buddy not in list
pops.php
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM ibwf_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 0, 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE ibwf_pops SET unread='0' WHERE id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = parsepm($pop[1], $sid);
echo "$by: $msg - $dtop
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"send pop up\"/>";
echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form></small>";
echo "
---
";
}
}
--------------
popup.php
<?php
include("config.php");
include("core.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<body bgcolor=\"#00FF00\" link=\"#FFFF00\" vlink=\"#FFFF00\" alink=\"#FFFF00\">";
echo "</head>";
echo "<body>";
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
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>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
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>";
exit();
}
if($action=="send")
{
$who=$_POST["who"];
$msg=$_POST["msg"];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Pop-Up Sent\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
if(arebuds($byuid, $who)==true)
{
$res = mysql_query("INSERT INTO ibwf_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
include("pops.php");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>
";
echo "Can't Send Message to $whonick
";
}
}else{
echo "Name is not in buddylist!";
}
echo "
---
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
else if($action=="archive")
{
echo "<card id=\"main\" title=\"xxx\">";
echo "</body>";
}
else{
/////////////////////////Main Page Here
echo "<card id=\"main\" title=\"xxx\">";
echo "<p align=\"center\">";
echo "</p>";
echo "</body>";
}
?>
</html>
--------------------
in
index.php
else if($action=="viewbud")
{
addonline(getuid_sid($sid),"Viewing buddy","index.php?action=viewbud&who=$who");
echo "<card id=\"main\" title=\"buddylist\">";
echo "
";
$sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'";
$items = mysql_query($sql);
while ($item = mysql_fetch_array($items))
{
if(isonline($item[2]))
{
$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
$plc = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$item[2]."'"));
$uact .= $plc[0];
}else{
$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
$uact = "Last Active: ";
$ladt = date("d m y-H:i:s", $item[0]);
$uact .= $ladt;
}
}
$whonick = getnick_uid($who);
if(arebuds($uid, $who)==true)
{
echo "<a href=\"index.php?action=viewuser&sid=$sid& who=$who\">$whonick</a>
";
echo "($uact)
";
echo "pop-up message:
";
echo "<form action=\"popup.php?action=send&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>";
echo "<input type=\"submit\" value=\"SEND\"/>";
echo "<postfield name=\"who\" value=\"$who\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></form>";
//echo "
<a href=\"index.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"inbox.php?action=sendpm&who=$who&si d=$sid\">+ send message</a>";
echo "
<a href=\"genproc.php?action=bud&who=$who&sid =$sid&todo=del\">- remove from buddylist</a>";
}else{
echo "$whonick is not a buddy";
}
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</body>";
}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
-
will this code work on funmobile script?please instruct how for both wml and xhtmlok 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 ,[/b]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
Comment