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
Collapse
X
-
working version been posted so go find itI 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[/b]
i dont see any reason why same thing should be posted again...キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
-
make pop.php copy and paste the code in itI 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[/b]
then make popup.php.copy and paste the code in itCode:<?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 " "; ?>
and finally read it justCode:<?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>
[attachment=1583:readme.php]Attached Files
Comment
-
does this work for xhtml if not can i av the xhtml popup please[/b]
Pm me your headers for your site with and stye of your from so i can add the same headers for you
Code:<?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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
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 "<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))
{
?>
<?php
addonline(getuid_sid($sid),"PoP Up Msging - xHTML","index.php?action=$action");
//saveuinfo($sid);
$pstyle = gettheme($sid);
echo xhtmlhead("Pop Up",$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();
}
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 "<p align=\"center\">";
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 "</p>";
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 "</p>";
echo xhtmlfoot();
}
?>
</html>
the pop.php u can leave the same ...
Comment
-
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
Comment
-
just use my codes it work in wmlXML 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[/b]
Comment
-
its a mixture of xhtml and wml because postfield n anchor are wml tags.correct one isPm me your headers for your site with and stye of your from so i can add the same headers for you
[/b]Code:<?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>
Code:<?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>
Comment
-
this wat i use for the wml the xhtml convert by flame work fineCode:<?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>
Comment
Comment