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?
chris-au Elite Nuker
Joined: Jan 31, 2003
Posts: 717
Posted:
Wed Jun 25, 2003 10:29 pm
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
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:
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).
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