Hey who can share the code ive tried it myself but didnt get right to show the pm as a popup in main page like blingywap ive checked in the inboxproc and inbox for the code got the right one but didnt work
Pm As Popup
Collapse
X
-
I will give it. But cant do it nw because im using my phone. Check tomorow again
click here to join blingywap.co.za
http://blingywap.co.za
IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!
-
Originally posted by Numbkwl tanx bru i got that code in the inbox but it didnt show like urs but hey atleast i can say ive triedOriginally posted by Numbhehe sub most ppl cant read we must excuse themIt's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
here u go numb
///////////////////////////////////create a file named popups.php and add
PHP Code:<?
/*
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
PHP Code:$popuppm = mysql_fetch_array(mysql_query("SELECT popuppm FROM ibwf_users WHERE id='".$uid."'"));
PHP Code:$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];
$uid = getuid_sid($sid);
PHP Code:$fmsg = htmlspecialchars(getfmsg());
echo "<center>$fmsg</center>";
PHP Code:include ("popups.php");
click here to join blingywap.co.za
http://blingywap.co.za
IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!
Comment
-
PHP Code://///////////////////////////////////////////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;
Comment
-
<div class='quotetop'>QUOTE (dhruva @ Mar 12 2009, 02:08 PM) <{POST_SNAPBACK}></div>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[/b]
Comment
Comment