- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 68 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Is this supposed to be in footer.php or not? [ ]
Author
Message
XEULAS
Captain
Joined: Oct 20, 2003
Posts: 335
Posted:
Fri Dec 19, 2003 2:20 pm
Is this supposed to be in footer.php (its not in the betaNC version)?
if (is_user($user) AND !ereg("Private_Messages", $_SERVER[REQUEST_URI])) {
$username = $cookie[1];
$popres = sql_query("SELECT user_id, popmeson FROM ".$user_prefix."_users where username='$username'", $dbi);
list($user_id, $popmeson) = sql_fetch_row($popres, $dbi);
if ($popmeson == 1) {
$messres = sql_query("SELECT * FROM ".$prefix."_priv_msgs where to_user_id='$user_id' and read_msg='0'", $dbi);
$messnum = sql_num_rows($messres, $dbi);
if ($messnum == 1) {
echo "<script language=\"javascript\">{ alert('"._YOUHAVEONEMSG."'); }</script>";
}
if ($messnum > 1) {
echo "<script language=\"javascript\">{ alert('"._YOUHAVE." $messnum "._NEWPMSG."'); }</script>";
}
}
}
echo "</body>\n"
."</html>";
die();
foot();
msimonds
Premium
Joined: Jul 11, 2003
Posts: 240
Location: Dallas, Texas
Posted:
Fri Dec 19, 2003 8:06 pm
yes there is supposed to be a footer.php, it is part of the core modules of nuke
_________________ Founder
SportsRant.com
gschoper
Captain
Joined: Sep 16, 2003
Posts: 380
Posted:
Fri Dec 19, 2003 9:21 pm
XEULAS wrote:
Is this supposed to be in footer.php (its not in the betaNC version)?
if (is_user($user) AND !ereg("Private_Messages", $_SERVER[REQUEST_URI])) {
$username = $cookie[1];
$popres = sql_query("SELECT user_id, popmeson FROM ".$user_prefix."_users where username='$username'", $dbi);
list($user_id, $popmeson) = sql_fetch_row($popres, $dbi);
if ($popmeson == 1) {
$messres = sql_query("SELECT * FROM ".$prefix."_priv_msgs where to_user_id='$user_id' and read_msg='0'", $dbi);
$messnum = sql_num_rows($messres, $dbi);
if ($messnum == 1) {
echo "<script language=\"javascript\">{ alert('"._YOUHAVEONEMSG."'); }</script>";
}
if ($messnum > 1) {
echo "<script language=\"javascript\">{ alert('"._YOUHAVE." $messnum "._NEWPMSG."'); }</script>";
}
}
}
echo "</body>\n"
."</html>";
die();
foot();
Yes, it's the code that generates the popup window if you recieve a new private message. (If you have this option selected in your user profile.)
HTH,
gschoper
_________________
http://nuke.schoper.net/
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum