Pm As Popup
Started on the old forum in March 2009 · view the original in the archive · old links redirect here
I will give it. But cant do it nw because im using my phone. Check tomorow again 🙂
External image (may be gone) click here to join blingywap.co.za http://blingywap.co.za External image (may be gone)
IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!
Numb wrote: kwl tanx bru i got that code in the inbox but it didnt show like urs but hey atleast i can say ive tried
Numb wrote: hehe sub most ppl cant read we must excuse them
like you cant read such simple thing in script.... right? 🤔
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ノ刀ノイリ!
here u go numb
///////////////////////////////////create a file named popups.php and add
<?
/*
2wap forums group
[url]www.coding-talk.com[/url]
*/
$umsg = getunreadpm(getuid_sid($sid));
if ($umsg>0)
{
$uid = getuid_sid($sid);
$lshout = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent, touid, reported, id, title FROM ibwf_private WHERE touid='".$uid."' AND unread='1' ORDER BY timesent DESC LIMIT 1"));
$umsg = getunreadpm(getuid_sid($sid));
$text = getpoppm($sid);
echo "<div>";
echo "$lightgreyh";
echo "<center>[size="1"][u]PopUp PM[/u][/size]</center></div>";
echo "$lightgreyb";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"169\">";
echo "<tr>";
echo "<td class=\"IL-R\" width=\"147\"><small>";
echo "$text";
echo "<a href=\"inbox.php?action=readpm&pmid=$lshout[5]&sid=$sid\">Read</a>";
echo " / ";
echo "<a href=\"inbxproc.php?action=poppmsent&sid=$sid&pmid=$lshout[5]\">Reply</a>";
echo " / ";
echo "<a href=\"inbox.php?action=folderunread&sid=$sid\">Inbox</a>($umsg)
";
echo "<small></td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "</div>";
}
/////////////////////////////////////////add this codes on index.php
$popuppm = mysql_fetch_array(mysql_query("SELECT popuppm FROM ibwf_users WHERE id='".$uid."'"));
add the upper code under the following^
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];
$uid = getuid_sid($sid);
/////////////////////////////////////under this code on the main part
$fmsg = htmlspecialchars(getfmsg());
echo "<center>$fmsg</center>";
//////////////add this
include ("popups.php");
External image (may be gone) click here to join blingywap.co.za http://blingywap.co.za External image (may be gone)
IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!
/////////////////////////////////////////////Function PopUp PM
function getpoppm($sid)
{
$uid = getuid_sid($sid);
$lstpm = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent, touid, reported, title**FROM ibwf_private WHERE touid='".$uid."' AND unread='1' ORDER BY timesent DESC LIMIT 1"));
$pmbynick = getnick_uid($lstpm[1]);
$poppm .= "[i]<a href=\"index.php?action=viewuser&sid=$sid&who=$lstpm[1]\">".$pmbynick."</a>[/i]: $lstpm[5]
";
$poppm .= parsepm($lstpm[0], $sid);
$poppm .= "
";
return $poppm;
add this in the core.php
not working getting this message
Fatal error: Cannot redeclare getunreadpm() (previously declared in /home2/dhruv/public_html/web/core.php:1064) in /home2/dhruv/public_html/web/core.php on line 2101
please help me someone
for one dollar hosting http://www.3ix.org/sys/aff.php?aff=6696
Fatal error: Call to undefined function popuppm() in /home2/dhruv/public_html/web/popups.php on line 8
sorry i m getting this message
for one dollar hosting http://www.3ix.org/sys/aff.php?aff=6696
QUOTE (dhruva @ Mar 12 2009, 02:08 PM) <{POST_SNAPBACK}>
not working getting this message
Fatal error: Cannot redeclare getunreadpm() (previously declared in /home2/dhruv/public_html/web/core.php:1064) in /home2/dhruv/public_html/web/core.php on line 2101
the error explains it its self m8 you got getunreadpm() function in core.php 2 times lol tells you what lines aswell pmsl
Fatal error: Call to undefined function popuppm() in /home2/dhruv/public_html/web/popups.php on line 8
i meant above one, i used the function that is made by rider...... so pleae help me guys
for one dollar hosting http://www.3ix.org/sys/aff.php?aff=6696
poppm sent
rk01 can u please add this file from ur inboxproc here please poppmsent
i dnt have that one and ive checked in my inbox wich other one to use but nothing
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
I got a totally new allert popup pm works 100% u go into cpanel and switch the allert on and off and it will popup the pm its on mobizonez script
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
for those who dnt wona go thru the mobizonez script usage where u want the popup to be shown
getalert($sid);
in ur cpanel or where ppl can turn on the allerts
if (alertstat($sid)==0){
echo "<a href=\"index.php?action=alert&sid=$sid\">»Turn alerts on</a><br/>";
}
else{
echo "<a href=\"index.php?action=alert&sid=$sid\">»Turn alerts off</a><br/>";
}
any place in the index
/////////////////////////////turn alerts on or off////////////////////
else if($action=="alert")
{
addonline($uid,"Toggling alerts","index.php?action=$action");
gettimebar();
getnewmsg($sid);
getalert($sid);
getshouts($sid);
boxstart("Toggle Alerts");
$userwa = $uid;
if(alertstat($sid)==0){
mysql_query("UPDATE ibwf_users SET alert=1 WHERE id=$userwa");
echo "<p>Alerts have been successfully activated<br/>";
}
else if(alertstat($sid)==1){
mysql_query("UPDATE ibwf_users SET alert=0 WHERE id=$userwa");
echo "<p>Alerts have been successfully de-activated<br/>";
}
echo "</p>";
boxend();
getfooter($sid);
}
in core.php
function getalert($sid){
if (alertstat($sid)==1){
$userid = getuid_sid($sid);
$count = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_private WHERE touid = $userid AND unread='1'"));
if($count[0]>0){
$lastmsg_id = mysql_fetch_array(mysql_query("SELECT MIN(id) FROM ibwf_private WHERE touid = $userid AND unread='1'"));
$pminfo = mysql_fetch_array(mysql_query("SELECT text, timesent, byuid, reported FROM ibwf_private WHERE id = $lastmsg_id[0]"));
if(isonline($pminfo[2])){
$iml = "<img src=\"images/onl.gif\" alt=\"On\"/>";
}else{
$iml = "<img src=\"images/ofl.gif\" alt=\"Off\"/>";
}
$msgtxt = "
<div class=\"boxed\">
<div class=\"boxedTitle\">
<h1 align=\"center\" class=\"boxedTitleText\"><b>Message Alert</b>
</h1>
</div>
<div class=\"boxedContent\">
";
$msgtxt .= "<small><b>From</b>: $iml<a href=\"index.php?action=viewuser&who=$pminfo[2]&sid=$sid\">".getnick_uid($pminfo[2])."</a><br/>";
$tmstamp = $pminfo[1] + addhours();
$tmdt = date("d/m/Y h:i:s A", $tmstamp);
$diff1=time()-$pminfo[1];
$msgtxt .= "<b>Sent</b>: $tmdt<br/>".gettimemsg($diff1)."<br/>";
$pmtext = parsepm($pminfo[0], $sid);
if(isspam($pmtext)){
if(($pminfo[3]=="0") && ($pminfo[2]!=1)){
mysql_query("UPDATE ibwf_private SET reported='1' WHERE id='".$pmid."'");
}
}
$msgtxt .= "<b>Message</b>:<br/>".$pmtext;
$msgtxt .= "<u><br/>Reply:</u>:<br/>";
$msgtxt .= "<form action=\"inbxproc.php?action=sendpm&who=$pminfo[2]&sid=$sid\" method=\"post\"><textarea id=\"inputText\" name=\"pmtext\"></textarea><br/>";
$msgtxt .= "<input id=\"inputButton\" type=\"submit\" value=\"Send\"/>";
$msgtxt .= "</form>";
$msgtxt .= "<br/><a href=\"inbox.php?action=main&sid=$sid\">Go to Inbox</a><br/></small></div></div>";
mysql_query("UPDATE ibwf_private SET unread='0' WHERE id = $lastmsg_id[0]");
echo $msgtxt;
return;
}
else {
return "";
}
}
else {
return "";
}
}function getppp($uid){
$ppp = mysql_fetch_array(mysql_query("SELECT ppp FROM ibwf_users WHERE id = $uid"));
return $ppp[0];
}
function alertstat($sid){
$userid=getuid_sid($sid);
if(!$userid){
return 0;
}
$alerstat = mysql_fetch_array(mysql_query("SELECT alert FROM ibwf_users WHERE id = $userid"));
return $alerstat[0];
}
here are the sql add in ibwf_user
`alert` int(1) NOT NULL default '0',
i think thats all for the popup pm enjoy
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
easy to code with alert pm but i cant code in a popup way using JAVA sCRIPT lol
With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com