Alerts/popup
Started on the old forum in February 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 119 replies
- - The fix for the popup script was not fully resolved as some users still had issues with their popups not appearing.
- - Users were advised to change $(msg) to $msg in the code, and place the include statement where they wanted the popup message to show up on their site.
- - Subzero suggested creating a separate file (like 1.php) for the include statement, which could be placed anywhere on the page where the popup should appear.
- - The thread concluded with users trying different configurations of popups.php and lists.php, but some still had issues getting the popups to work.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
put it whereever you want the popup message to show like on the main page, on the forum pages etc...
im still having problem about this.. can you specify where should i place include("popups.php");
and this code..
CODE<?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]\">RELPY</a>"; echo " ---"; } } ?>
tnx
dude!! place all over your site at where to show grrrrrrr lol
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
echo " ";
include("popups.php");
stuff here
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
echo " ";
include("popups.php");
stuff here
what i did is.. i put the script in
if($action=="main")
right after my forum message.. include("popups.php"); and below this.. is where i put the script..
<?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 "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---"; }}?>
anything wrong in what i did?
<?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 "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---"; }}?>
thats is popups.php lol!
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
<?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]\">RELPY</a>"; echo " ---"; }}?>thats is popups.php lol!
should i make a link? but it is not working..
man ya not getting me lol do this place that code in popups.php
include("popups.php");
under
echo " ";
like include("popups.php");
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml> <?php $bcon = connectdb(); if (!$bcon) { echo "<card id=\"main\" title=\"lavalair.net (ERROR!)\">"; echo " "; echo "<img src=\"images/exit.gif\" alt=\"*\"/> "; echo "ERROR! cannot connect to database "; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute "; echo "you can temperoray be in this site <a href=\"http://dreamworldchat.co.uk/chat\">dreamworld chat</a> while lavalair is offline "; echo "**THANK YOU VERY MUCH**"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $brws = explode(" ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo "<card id=\"main\" title=\"lavalair.net\">"; echo " "; echo "<img src=\"images/notok.gif\" alt=\"x\"/> "; echo "This IP address is blocked "; echo " "; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo " IP: $rmsg "; echo " "; echo " "; 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 "</card>"; echo "</wml>"; exit(); } } if(($action != "") && ($action!="terms")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { echo "<card id=\"main\" title=\"lavalair.net\">"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"index.php\">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } } //echo isbanned($uid); if(isbanned($uid)) { echo "<card id=\"main\" title=\"lavalair.net\">"; echo " "; 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'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg "; echo "Ban Reason: $banres[0]"; //echo "<a href=\"index.php\">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); ////////////////////////////////////////MAIN PAGE if($action=="main") { addvisitor(); addonline(getuid_sid($sid),"Forum Index","index.php?action=$action"); //saveuinfo($sid); echo "<card id=\"main\" title=\"lavalair.net\">"; echo " "; //echo "".date("D d M y-H:i:s")." "; echo "".date("D d M y - ")."\n"; echo "<a href=\"time.php?sid=$sid\">".date("H:i")."</a> "; echo "<img src=\"images/logo.gif\" alt=\"*\"/> "; $nick = getnick_sid($sid); echo "Hello $nick "; echo "<a href=\"lists.php?action=faqs&sid=$sid\">»F.A.Qs«</a> "; $fmsg = htmlspecialchars(getfmsg()); echo "$fmsg "; //echo "The temporary chat site is ready, check <a href=\"index.php?action=viewfrm&sid=$sid&fid=221\">info boards> Support RW</a>"; include("popups.php"); echo " "; /////inbox data $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); //$new_gm = getnewgml(getuid_sid($sid)); echo "<a href=\"inbox.php?action=main&sid=$sid\">»Inbox($umsg/$tmsg)</a> "; /*if($new_gm>0) { echo "<a href=\"rwgmail.php?sid=$sid\">»G-Mail(".$new_gm.")</a> "; }*/ $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline")); echo "<a href=\"index.php?action=chat&sid=$sid\">»Chat($chs[0])</a> "; $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); echo "<a href=\"index.php?action=clmenu&sid=$sid\">»Clubs($chs[0])</a> "; $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "<a href=\"lists.php?action=buds&sid=$sid\">»Buddies($onbuds/$mybuds)</a>"; $reqs = getnreqs($uid); if($reqs>0) { echo ": <a href=\"lists.php?action=reqs&sid=$sid\">$reqs</a>"; } echo " "; echo "<a href=\"index.php?action=funm&sid=$sid\">»Fun Menu</a> "; echo "<a href=\"help.php?sid=$sid\">»Help Menu</a> "; echo "<a href=\"index.php?action=cpanel&sid=$sid\">»CPanel</a> "; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault")); echo "<a href=\"lists.php?action=vault&sid=$sid\">»Downloads($noi[0])</a> "; if(ismod($uid)) { $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'")); $tot += $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'")); $tot += $tnor[0]; $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog")); $tol = $tnol[0]; if($tol+$tot>0) { echo "<a href=\"modcp.php?action=main&sid=$sid\">»Mod R/L ($tot/$tol)</a> "; } } echo " "; ////// echo " "; echo getshoutbox($sid); echo " "; echo " "; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id"); $iml = "<img src=\"images/1.gif\" alt=\"*\"/>"; while($fcat=mysql_fetch_array($fcats)) { $catlink = "<a href=\"index.php?action=viewcat&sid=$sid&cid=$fcat[0]\">$iml$fcat[1]</a>"; echo " $catlink"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name"); if(getfview()==0) { echo " "; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$forum[0]\">$forum[1]</a>, "; } } echo ""; }else if(getfview()==20) { echo " Forums: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'")); echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>"; } } echo "</select>"; echo "<anchor>[GO]"; echo "<go href=\"index.php\" method=\"get\">"; echo "<postfield name=\"action\" value=\"viewfrm\"/>"; echo "<postfield name=\"sid\" value=\"$sid\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go>"; echo "</anchor>"; } } echo " "; echo " "; echo ""; echo "Members Online: <a href=\"index.php?action=online&sid=$sid\">".getnumonline()."</a> "; $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); echo "Staff Online: <a href=\"index.php?action=stfol&sid=$sid\">".$noi[0]."</a> "; echo " <a href=\"index.php?action=stats&sid=$sid\">Site Stats</a> "; echo "<a href=\"index.php?action=search&sid=$sid\">Search</a> "; echo "<a href=\"index.php?action=terms&sid=$sid\">Terms of use</a> "; echo " "; echo "**lavalair 2006©** "; if (isadmin(getuid_sid($sid))) { echo "<a href=\"index.php?action=admincp&sid=$sid\">Admin CP</a>"; } echo " "; echo "</card>"; } else if($action=="clmop") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id=\"main\" title=\"Moderate Member\">"; echo " "; $whnick = getnick_uid($who); echo "**$whnick**"; echo " "; echo " "; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "<a href=\"genproc.php?action=dcm&sid=$sid&who=$who&clid=$clid\">»Kick $whnick out</a> "; echo "<a href=\"index.php?action=gcp&sid=$sid&who=$who&clid=$clid\">»$whnick's Club Points</a> "; echo "<a href=\"index.php?action=gpl&sid=$sid&who=$who&clid=$clid\">»Give $whnick Plusses</a> "; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!"; } echo " "; echo " "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="gcp") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id=\"main\" title=\"Moderate Member\">"; echo " "; $whnick = getnick_uid($who); echo "**$whnick**"; echo " "; echo " "; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "Action: <select name=\"giv\">"; echo "<option value=\"1\">Add</option>"; echo "<option value=\"0\">Subtract</option>"; echo "</select> "; echo "Points: <input name=\"pnt\" format=\"*N\" size=\"2\" maxlength=\"2\"/> "; echo "<anchor>[GO]"; echo "<go href=\"genproc.php?action=gcp&sid=$sid&who=$who&clid=$clid\" method=\"post\">"; echo "<postfield name=\"giv\" value=\"$(giv)\"/>"; echo "<postfield name=\"pnt\" value=\"$(pnt)\"/>"; echo "</go></anchor>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!"; } echo " "; echo " "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="gpl") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id=\"main\" title=\"Moderate Member\">"; echo " "; $whnick = getnick_uid($who); echo "**$whnick**"; echo " "; echo " "; $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "<img src=\"images/point.gif\" alt=\"!\"/>You can only give plusses, these are real plusses, you can't subtract plusses "; $cpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_clubs WHERE id='".$clid."'")); echo "<img src=\"images/point.gif\" alt=\"!\"/>Your club plusses credit is $cpl[0] "; echo "<img src=\"images/point.gif\" alt=\"!\"/>Do not abuse giving of plusses to users, your club could be deleted "; echo "Plusses: <input name=\"pnt\" format=\"*N\" size=\"2\" maxlength=\"2\"/> "; echo "<anchor>[GO]"; echo "<go href=\"genproc.php?action=gpl&sid=$sid&who=$who&clid=$clid\" method=\"post\">"; echo "<postfield name=\"pnt\" value=\"$(pnt)\"/>"; echo "</go></anchor>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!"; } echo " "; echo " "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } </wml> include("popups.php"); got it now ??Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
<?php /* IrisBlaze wap forum by Ra'ed Shabana */ //» » //« « include("config.php"); include("core.php"); //session_start(); header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>");echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml> <?php$bcon = connectdb(); if (!$bcon) { echo "<card id="main" title="lavalair.net (ERROR!)">"; echo " "; echo "<img src="images/exit.gif" alt="*"/> "; echo "ERROR! cannot connect to database
"; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute
"; echo "you can temperoray be in this site <a href="http://dreamworldchat.co.uk/chat">dreamworld chat</a> while lavalair is offline "; echo "THANK YOU VERY MUCH"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $brws = explode(" ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"];
$uid = getuid_sid($sid);
cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo "<card id="main" title="lavalair.net">"; echo " "; echo "<img src="images/notok.gif" alt="x"/> "; echo "This IP address is blocked "; echo " "; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over
"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo " IP: $rmsg
";
echo ""; echo "
"; 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 "</card>"; echo "</wml>"; exit(); } } if(($action != "") && ($action!="terms")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { echo "<card id="main" title="lavalair.net">"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired
"; echo "<a href="index.php">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); }
} //echo isbanned($uid); if(isbanned($uid)) { echo "<card id="main" title="lavalair.net">"; echo " "; 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'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
$remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg"; echo "Ban Reason: $banres[0]"; //echo "<a href="index.php">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");
////////////////////////////////////////MAIN PAGE if($action=="main") { addvisitor(); addonline(getuid_sid($sid),"Forum Index","index.php?action=$action"); //saveuinfo($sid);
echo "<card id=\"main\" title=\"lavalair.net\">";echo " "; //echo "".date("D d M y-H:i:s")." "; echo "".date("D d M y - ")."\n"; echo "<a href="time.php?sid=$sid">".date("H:i")."</a> "; echo "<img src="images/logo.gif" alt="*"/> "; $nick = getnick_sid($sid); echo "Hello $nick "; echo "<a href="lists.php?action=faqs&sid=$sid">»F.A.Qs«</a> "; $fmsg = htmlspecialchars(getfmsg()); echo "$fmsg "; //echo "The temporary chat site is ready, check <a href="index.php?action=viewfrm&sid=$sid&fid=221">info boards> Support RW</a>"; include("popups.php"); echo "
";
/////inbox data $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); //$new_gm = getnewgml(getuid_sid($sid)); echo "<a href="inbox.php?action=main&sid=$sid">»Inbox($umsg/$tmsg)</a> "; /if($new_gm>0) { echo "<a href="rwgmail.php?sid=$sid">»G-Mail(".$new_gm.")</a> "; }/ $chs = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_chonline")); echo "<a href="index.php?action=chat&sid=$sid">»Chat($chs[0])</a> "; $chs = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubs")); echo "<a href="index.php?action=clmenu&sid=$sid">»Clubs($chs[0])</a> "; $uid = getuid_sid($sid); $mybuds = getnbuds($uid); $onbuds = getonbuds($uid); echo "<a href="lists.php?action=buds&sid=$sid">»Buddies($onbuds/$mybuds)</a>"; $reqs = getnreqs($uid); if($reqs>0) {
echo ": <a href=\"lists.php?action=reqs&sid=$sid\">$reqs</a>";} echo " "; echo "<a href="index.php?action=funm&sid=$sid">»Fun Menu</a> "; echo "<a href="help.php?sid=$sid">»Help Menu</a> "; echo "<a href="index.php?action=cpanel&sid=$sid">»CPanel</a> "; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_vault")); echo "<a href="lists.php?action=vault&sid=$sid">»Downloads($noi[0])</a> "; if(ismod($uid)) { $tnor = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_private WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_posts WHERE reported='1'")); $tot += $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_topics WHERE reported='1'")); $tot += $tnor[0]; $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog")); $tol = $tnol[0]; if($tol+$tot>0) { echo "<a href="modcp.php?action=main&sid=$sid">»Mod R/L ($tot/$tol)</a> "; }
} echo " "; ////// echo " "; echo getshoutbox($sid); echo " "; echo "
"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id"); $iml = "<img src="images/1.gif" alt="*"/>"; while($fcat=mysql_fetch_array($fcats)) { $catlink = "<a href="index.php?action=viewcat&sid=$sid&cid=$fcat[0]">$iml$fcat[1]</a>"; echo " $catlink"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name"); if(getfview()==0) { echo " "; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) {
echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$forum[0]\">$forum[1]</a>, "; } } echo ""; }else if(getfview()==20) { echo "Forums: <select name="fid">"; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'")); echo "<option value="$forum[0]">$forum1</option>"; } } echo "</select>"; echo "<anchor>[GO]"; echo "<go href="index.php" method="get">"; echo "<postfield name="action" value="viewfrm"/>"; echo "<postfield name="sid" value="$sid"/>"; echo "<postfield name="fid" value="$(fid)"/>"; echo "</go>"; echo "</anchor>"; }
} echo " "; echo " ";
echo ""; echo "Members Online: <a href="index.php?action=online&sid=$sid">".getnumonline()."</a> "; $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); echo "Staff Online: <a href="index.php?action=stfol&sid=$sid">".$noi[0]."</a> "; echo " <a href="index.php?action=stats&sid=$sid">Site Stats</a> "; echo "<a href="index.php?action=search&sid=$sid">Search</a> "; echo "<a href="index.php?action=terms&sid=$sid">Terms of use</a> "; echo " ";
echo "lavalair 2006© "; if (isadmin(getuid_sid($sid))) { echo "<a href="index.php?action=admincp&sid=$sid">Admin CP</a>"; } echo " "; echo "</card>"; }
else if($action=="clmop") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id="main" title="Moderate Member">"; echo " "; $whnick = getnick_uid($who); echo "$whnick"; echo " "; echo "
"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "<a href="genproc.php?action=dcm&sid=$sid&who=$who&clid=$clid">»Kick $whnick out</a> "; echo "<a href="index.php?action=gcp&sid=$sid&who=$who&clid=$clid">»$whnick's Club Points</a> "; echo "<a href="index.php?action=gpl&sid=$sid&who=$who&clid=$clid">»Give $whnick Plusses</a> "; }else{ echo "<img src="images/notok.gif" alt="X"/>Missing Info!"; } echo " ";
echo "";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";echo "Home</a>"; echo " "; echo "</card>"; }
else if($action=="gcp") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id="main" title="Moderate Member">"; echo " "; $whnick = getnick_uid($who); echo "$whnick"; echo " "; echo "
"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "Action: <select name="giv">"; echo "<option value="1">Add</option>"; echo "<option value="0">Subtract</option>"; echo "</select> "; echo "Points: <input name="pnt" format="*N" size="2" maxlength="2"/> "; echo "<anchor>[GO]"; echo "<go href="genproc.php?action=gcp&sid=$sid&who=$who&clid=$clid" method="post">"; echo "<postfield name="giv" value="$(giv)"/>"; echo "<postfield name="pnt" value="$(pnt)"/>"; echo "</go></anchor>"; }else{ echo "<img src="images/notok.gif" alt="X"/>Missing Info!"; } echo " ";
echo "";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";echo "Home</a>"; echo " "; echo "</card>"; }
else if($action=="gpl") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Moderating Club Member",""); echo "<card id="main" title="Moderate Member">"; echo " "; $whnick = getnick_uid($who); echo "$whnick"; echo " "; echo "
"; $exs = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubmembers WHERE uid='".$who."' AND clid=".$clid."")); $cow = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_clubs WHERE owner='".$uid."' AND id=".$clid."")); if($exs[0]>0 && $cow[0]>0) { echo "<img src="images/point.gif" alt="!"/>You can only give plusses, these are real plusses, you can't subtract plusses "; $cpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_clubs WHERE id='".$clid."'")); echo "<img src="images/point.gif" alt="!"/>Your club plusses credit is $cpl[0] "; echo "<img src="images/point.gif" alt="!"/>Do not abuse giving of plusses to users, your club could be deleted
"; echo "Plusses: <input name="pnt" format="*N" size="2" maxlength="2"/> "; echo "<anchor>[GO]"; echo "<go href="genproc.php?action=gpl&sid=$sid&who=$who&clid=$clid" method="post">"; echo "<postfield name="pnt" value="$(pnt)"/>"; echo "</go></anchor>"; }else{ echo "<img src="images/notok.gif" alt="X"/>Missing Info!"; } echo " ";
echo "";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";echo "Home</a>"; echo " "; echo "</card>"; }
</wml>include("popups.php"); got it now ??
but what about the code where will i put this one..
<?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 "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---"; }}?>
dude as i said
popups.php
is the file of
<?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 "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---"; }}?>
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
dude as i said popups.php is the file of
<?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]\">RELPY</a>"; echo " ---"; }}?>
should i include this in popups.php?
yes here the code lol
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
yes here the code lol
but what about this code? where should i place this?
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?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)
{
echo "<card id=\"main\" title=\"$sitename\">";
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 "</card>";
echo "</wml>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are [b]Banned[/b]
";
$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 "</card>";
echo "</wml>";
exit();
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"sent!!\">";
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 "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
else if($action=="sendto"){
$who = $_get['who'];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
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 "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
}
echo "</p>";
echo "</card>";
?>
</wml>
ok change ya plans!!
ok use this
make a file [ 1.php ] !! right
include("1.php"); anywhere you like it to show!!
place this in it!!
<?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 "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---"; }}?>
============================done==================================== now make popups.php
place this code in it
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?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)
{
echo "<card id=\"main\" title=\"$sitename\">";
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 "</card>";
echo "</wml>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are [b]Banned[/b]
";
$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 "</card>";
echo "</wml>";
exit();
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"sent!!\">";
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 "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
else if($action=="sendto"){
$who = $_get['who'];
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"popups\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
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 "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&sid=$sid\">Home</a>
";
}
echo "</p>";
echo "</card>";
?>
</wml>
====================done============== try that now get the code for lists in list code ok
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…