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, 61 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 - Private Message Popup (have searched!) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Tyrekicker
Nuke Soldier
Nuke Soldier


Joined: Jun 03, 2003
Posts: 10


PostPosted: Wed Jun 25, 2003 2:01 am Reply with quoteBack to top

I have done a search, and found the right thread:

http://www.nukecops.com/postlite1460-popup.html

However, the link to the extra file at the bottom is returning a 404 error.
I am using nuke6.7, and I want the popups to appear everywhere.
Any suggestions?
Find all posts by TyrekickerView user's profileSend private message
chris-au
Elite Nuker
Elite Nuker


Joined: Jan 31, 2003
Posts: 717


PostPosted: Wed Jun 25, 2003 10:29 pm Reply with quoteBack to top

You did not read the last bit, he said something that smells, it does not work and maybe that is why he deleted that file, hence, a 404

_________________
Chris
Find all posts by chris-auView user's profileSend private messageVisit poster's website
Joe_The_Peacock
Nuke Cadet
Nuke Cadet


Joined: Jul 10, 2003
Posts: 1


PostPosted: Fri Jul 11, 2003 11:34 pm Reply with quoteBack to top

Here's what I did:

I Really HATE popup windows, and most of my users agree. However, the javascript alert was a welcome notification for most, so in Footer.php, i replaced this:



Code:
function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
   blocks(Down);
    }
    if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
   $cpname = ereg_replace("_", " ", $name);
   echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &</a></div>";
    }
    themefooter();
    echo "</body>\n"
   ."</html>";
    die();
}


With this:

Code:


function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
   blocks(Down);
    }
    if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
   $cpname = ereg_replace("_", " ", $name);
   echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &</a></div>";
    }
    themefooter();
   
 if (!ereg("Private_Messages", $_SERVER[REQUEST_URI])) {      
      $uname = $cookie[1];
      $sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'";
       $result = $db->sql_query($sql);
       $row = $db->sql_fetchrow($result);
         $uid = $row[user_id];
      $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')"));
       if ($newpms == 1) {
       echo "<script language=\"javascript\">{ alert('"._YOUHAVEONEMSG."'); }</script>";
       }
       if ($newpms > 1) {
       echo "<script language=\"javascript\">{ alert('"._YOUHAVE." $newpms "._NEWPMSG."'); }</script>";
       }
   }



This will allow a Javascript alert notification of how many new messages the user has in their PM's without popping up a window (which could be blocked by some popup stoppers).

I hope this is useful!
Find all posts by Joe_The_PeacockView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-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.162 Seconds - 312 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::