You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
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? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Fri Dec 19, 2003 2:20 pm Reply with quoteBack to top

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();
Find all posts by XEULASView user's profileSend private messageVisit poster's website
msimonds
Premium
Premium


Joined: Jul 11, 2003
Posts: 240

Location: Dallas, Texas

PostPosted: Fri Dec 19, 2003 8:06 pm Reply with quoteBack to top

yes there is supposed to be a footer.php, it is part of the core modules of nuke

_________________
Founder
SportsRant.com
Find all posts by msimondsView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
gschoper
Captain
Captain


Joined: Sep 16, 2003
Posts: 380


PostPosted: Fri Dec 19, 2003 9:21 pm Reply with quoteBack to top

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

_________________
Image
http://nuke.schoper.net/
Find all posts by gschoperView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.402 Seconds - 328 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::