NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·Creating a Gaming PHP Nuke Site - Newbie
·Issues with GIF Images
·Installation Issues
·Please Help Question about Siggy's
·Hi My name is Rukasuzu, where is the introduction?
·Include file as block?
·How Do I make a Website?
·Array of strings as parameter
·Theme Change, just white? :(
·How can i disable upload t download by other users?Php-Nuke8

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: carlosmafud
Today: 0
Yesterday: 1
Overall: 15026

Visitation:
Guests: 407
Members: 0
Total: 407


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Game Quest Online - Games and more!
Game Quest Online - Games and more!

NukeResources :: View topic - Nuke 8.0 Patched 3.3 - Your_Account/navbar.php fixes
NukeResources Forum Index

NukeResources Forum Index -> Bug Fixes -> Nuke 8.0 Patched 3.3 - Your_Account/navbar.php fixes
Post new topic  Reply to topic    View previous topic :: View next topic 
Nuke 8.0 Patched 3.3 - Your_Account/navbar.php fixes
PostPosted: Fri Nov 03, 2006 10:57 am Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




The navbar.php file found in the modules/Your_Account has quite a few bugs that are completely corrupting compliance of forums/PM modules.

Please find the below fixed navbar.php that I have recoded to 100% W3C Compliance.

modules/Your_Account/navbar.php
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2006 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (!defined('MODULE_FILE')) {
    die("You can't access this file directly...");
}

if (!is_user($user)) {
  exit("Access Denied");
}

   require_once("mainfile.php");
   get_lang("Your_Account");
   
   function menuimg($gfile) {
       $ThemeSel = get_theme();
       if (file_exists("themes/$ThemeSel/images/menu/$gfile")) {
         $menuimg = "themes/$ThemeSel/images/menu/$gfile";
       } else {
         $menuimg = "modules/Your_Account/images/$gfile";
       }
       return($menuimg);
   }
   
   function nav($main_up=0) {
       global $module_name, $articlecomm;
   $thmcount = 0;
       $handle=opendir('themes');
       while ($file = readdir($handle)) {
         if ( (!ereg("[.]",$file)) ) {
            $thmcount++;
         }
       }
       closedir($handle);
       echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">";

       $menuimg = menuimg("info.gif");
       echo "<center><font class=\"content\">"
      ."<a href=\"modules.php?name=Your_Account&amp;op=edituser\"><img src=\"$menuimg\" border=\"0\" alt=\""._CHANGEYOURINFO."\" title=\""._CHANGEYOURINFO."\"></a><br>"
      ."<a href=\"modules.php?name=Your_Account&amp;op=edituser\">"._CHANGEYOURINFO."</a>"
      ."</font></center></td>";

       $menuimg = menuimg("home.gif");
       echo "<td width=\"10%\"><center><font class=\"content\">"
      ."<a href=\"modules.php?name=Your_Account&amp;op=edithome\"><img src=\"$menuimg\" border=\"0\" alt=\""._CHANGEHOME."\" title=\""._CHANGEHOME."\"></a><br>"
      ."<a href=\"modules.php?name=Your_Account&amp;op=edithome\">"._CHANGEHOME."</a>"
      ."</font></center></td>";
   
       if ($articlecomm == 1) {
         $menuimg = menuimg("comments.gif");
         echo "<td width=\"10%\"><center><font class=\"content\">"
             ."<a href=\"modules.php?name=Your_Account&amp;op=editcomm\"><img src=\"$menuimg\" border=\"0\" alt=\""._CONFIGCOMMENTS."\" title=\""._CONFIGCOMMENTS."\"></a><br>"
             ."<a href=\"modules.php?name=Your_Account&amp;op=editcomm\">"._CONFIGCOMMENTS."</a>"
             ."</font></center></td>";
       }
   
       if (is_active("Private_Messages")) {
         $menuimg = menuimg("messages.gif");
         echo "<td width=\"10%\"><center><font class=\"content\">"
             ."<a href=\"modules.php?name=Private_Messages\"><img src=\"$menuimg\" border=\"0\" alt=\""._PRIVATEMESSAGES."\" title=\""._PRIVATEMESSAGES."\"></a><br>"
             ."<a href=\"modules.php?name=Private_Messages\">"._MESSAGES."</a>"
             ."</font></center></td>";
       }
   
       if (is_active("Journal")) {
      $menuimg = menuimg("journal.gif");
      echo "<td width=\"10%\"><center><font class=\"content\">"
          ."<a href=\"modules.php?name=Journal&amp;file=edit\"><img src=\"$menuimg\" border=\"0\" alt=\""._JOURNAL."\" title=\""._JOURNAL."\"></a><br>"
          ."<a href=\"modules.php?name=Journal&amp;file=edit\">"._JOURNAL."</a>"
          ."</font></center></td>";
       }
   
       if ($thmcount > 1) {
         $menuimg = menuimg("themes.gif");
         echo "<td width=\"10%\"><center><font class=\"content\">"
             ."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
             ."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\">"._SELECTTHETHEME."</a>"
             ."</font></center></td>";
          }
   
       $menuimg = menuimg("exit.gif");
       echo "<td width=\"10%\"><center><font class=\"content\">"
      ."<a href=\"modules.php?name=Your_Account&amp;op=logout\"><img src=\"$menuimg\" border=\"0\" alt=\""._LOGOUTEXIT."\" title=\""._LOGOUTEXIT."\"></a><br>"
      ."<a href=\"modules.php?name=Your_Account&amp;op=logout\">"._LOGOUTEXIT."</a>"
      ."</font></center>";
   
       echo "</td></tr></table>";
       if ($main_up != 1) {
      echo "<br><center><font class=\"content\">[ <a href=\"modules.php?name=Your_Account\">"._RETURNACCOUNT."</a> ]</font></center>\n";
       }
}

?>

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
Nuke 8.0 Patched 3.3 - Your_Account/navbar.php fixes
 NukeResources Forum Index -> Bug Fixes
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 139 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.69 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::