I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did
Lavalair Pop Ups
Started on the old forum in April 2008 · view the original in the archive · old links redirect here
TL;DR · summary of 29 replies
- - Roger encountered an XML Parsing Error when trying to send a popup on the WML version.
- - Rukiya provided corrected XHR and XHTML versions of the script, which resolved the issue for Roger.
- - The thread concluded with no specific SQL input required or other inputs needed in inbox.php mentioned.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did
working version been posted so go find it i dont see any reason why same thing should be posted again...
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
I know they already got topics on pop-ups here but that never help me ..So could some of ul pls share ur pop up coding and also have an option where u can send through pop up thanks..Please dont tell me press the search button i already did
make pop.php copy and paste the code in it
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popup WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM popup 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 popup WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE popup 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 "
[b]Popup-PM
by
$by: $dtop
$msg [/b]
";
echo "<a href=\"popup.php?action=send&who=$pop[2]&sid=$sid\">RELPY</a>";
echo "
=======";
}
}
echo "
";
?>
then make popup.php.copy and paste the 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'];
$who = $_GET['who'];
$msg = $_POST["msg"];
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();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Popup-PM\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Send Pop-up\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>
and finally read it just
thanks bro...u helped me alot....learning php was fun over the few months got used to it..thanks to this site and the helpful and not so helpful ppl....with great staff like Gumslone and amylee
does this work for xhtml if not can i av the xhtml popup please
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
Convert i convert it ..Its not difficult..I dont see why ul have a problem wit converting from wml to html ..Stop being lazy bro if u have bugs converting i wil help plus the others wil help also
does this work for xhtml if not can i av the xhtml popup please
Pm me your headers for your site with and stye of your from so i can add the same headers for you External image (may be gone)
<?php
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\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
print "
<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />
<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
";
echo "
<style type=\"text/css\">
Place your css here
</style></head><body>
";
?>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$who = $_GET['who'];
$msg = $_POST["msg"];
if(islogged($sid)==false)
{
echo "<title>PopUp</title>";
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 "</body>";
echo "</html>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<title>PopUp</title>";
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 "</body>";
echo "</html>";
exit();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<title>PopUp</title>";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
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=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<title>PopUp</title>";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
?>
</html>
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... _______…
xhtml version of methos script
create popup.php
<?php 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"); include("xhtmlfunctions.php"); connectdb(); $action = $_GET['action']; $sid = $_GET['sid']; $who = $_GET['who']; $msg = $_POST["msg"]; if(islogged($sid)==false) { ?> <?php addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("Pop Up",$pstyle); echo " "; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"index.php\">Login</a>"; echo " "; echo xhtmlfoot(); exit(); } $uid = getuid_sid($sid); if(isbanned($uid)) { ?> <?php addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("Pop Up",$pstyle); 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'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg "; //echo "<a href=\"index.php\">Login</a>"; echo " "; echo xhtmlfoot(); exit(); } if($action=="send"){ ?> <?php addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("Pop pm",$pstyle); echo " "; echo "$getbuttons "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); echo "Sending Popup-PM to ".$whonick." "; echo "<form action=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">"; echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/> "; echo "<input type=\"submit\" value=\"SEND\"/>"; echo "</form>"; echo " "; echo ""; echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo xhtmlfoot(); } else if($action=="sendto") { ?> <?php addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action"); //saveuinfo($sid); $pstyle = gettheme($sid); echo xhtmlhead("Pop Up",$pstyle); echo "<h5 align=\"center\">"; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); echo "Popup Message Sent to $whonick!</h5> "; echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo xhtmlfoot(); } ?> </html>the pop.php u can leave the same ...
thanks bro
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
XML Parsing Error: not well-formed Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124 Line Number 12, Column 56:Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124 -------------------------------------------------------^
i got this wen tryin to send popup on methos wml version help
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
XML Parsing Error: not well-formed Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124 Line Number 12, Column 56:Location: http://yardwap.info/popup.php?action=send&...fb9ba7205e25124 -------------------------------------------------------^
i got this wen tryin to send popup on methos wml version help
just use my codes it work in wml
Pm me your headers for your site with and stye of your from so i can add the same headers for you External image (may be gone)
<?php 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\">"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; echo "<head>"; print " <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" /> <meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> "; echo " <style type=\"text/css\"> Place your css here </style></head><body> "; ?> <?php include("config.php"); include("core.php"); connectdb(); $action = $_GET['action']; $sid = $_GET['sid']; $who = $_GET['who']; $msg = $_POST["msg"]; if(islogged($sid)==false) { echo "<title>PopUp</title>"; 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 "</body>"; echo "</html>"; exit(); } $uid = getuid_sid($sid); if(isbanned($uid)) { echo "<title>PopUp</title>"; 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 "</body>"; echo "</html>"; exit(); } if($action=="send"){ addonline(getuid_sid($sid),"Sending pop-up MSG",""); echo "<title>PopUp</title>"; echo "<p align=\"center\">"; echo "$getbuttons "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); echo "Sending Popup-PM to ".$whonick." "; echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/> "; echo "<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">"; echo "<postfield name=\"msg\" value=\"$(msg)\"/>"; echo "</go></anchor>"; 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=="sendto") { addonline(getuid_sid($sid),"Sending pop-up MSG",""); echo "<title>PopUp</title>"; echo "<p align=\"center\">"; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); echo "Popup Message Sent to $whonick! "; echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } ?> </html>
its a mixture of xhtml and wml because postfield n anchor are wml tags.correct one is
<?php
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\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
print "
<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />
<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />
<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
";
echo "
<style type=\"text/css\">
Place your css here
</style></head><body>
";
?>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$who = $_GET['who'];
$msg = $_POST["msg"];
if(islogged($sid)==false)
{
echo "<title>PopUp</title>";
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 "</body>";
echo "</html>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<title>PopUp</title>";
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 "</body>";
echo "</html>";
exit();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<title>PopUp</title>";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "[size="1"]<form action=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "<input type=\"submit\" value=\"SEND\"/>";
echo "</form>";
echo "
";
echo "[/size]";
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=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<title>PopUp</title>";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
?>
</html>
<?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'];
$who = $_GET['who'];
$msg = $_POST["msg"];
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();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Popup-PM\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Send Pop-up\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>
this wat i use for the wml the xhtml convert by flame work fine
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
Put amp; after &thats
popup.php?action=sendto&who=$who&$sid=sid\"method
Put amp; after & thats popup.php?action=sendto&who=$who&sid=$sid"method
<?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'];
$who = $_GET['who'];
$msg = $_POST["msg"];
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();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Popup-PM\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\"method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Send Pop-up\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>
STILL DON,T WORK I GOT THE SAME ERROR
if ($who!=$uid) { echo "<a href="popup.php?action=send&who=$who&sid=$sid">Send Popup PM</a> "; } this is the line added to viewuser
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
popup.php
<?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'];
$who = $_GET['who'];
$msg = $_POST['msg'];
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();
}
if($action=="send"){
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Popup-PM\">";
echo "<p align=\"center\">";
echo "$getbuttons
";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Send Pop-up\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Message Sent to $whonick!
";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>
try it. demo url http://bdfun.co.cc/wap
this work thanks lol
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);
i got one more little problem wen i send popup the person that get the popup get error
XML Parsing Error: not well-formed Location: http://sitenameinfo/index.php?action=main&...2c0d29d898cb98f Line Number 12, Column 56:Location: http://sitename/index.php?action=main&...2c0d29d898cb98f -------------------------------------------------------^
advertiser here the place to be join ROGER TO THE WORLD LOL advertiser here new http://tinyurl.com/5tfnzp CODE$rogerInfo = array(“handsome”, “18”,youngcoder);