PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Extirpator
New Member
New Member


Joined: Jul 07, 2006
Posts: 5

PostPosted: Fri Jul 14, 2006 8:52 pm Reply with quote Back to top

Documentation on Edits_For_Core_Files for block-Modules.php and Admin files are different.

Heres the original block-Modules.php:
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2005 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('BLOCK_FILE') ) {
   Header("Location: ../index.php");
   die();
}

global $prefix, $db, $admin, $language, $currentlang;

$content = "";

// Get theme
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/module.php")) {
   include("themes/".$ThemeSel."/module.php");
   if (is_active($default_module) AND file_exists("modules/$default_module/index.php")) {
      $def_module = $default_module;
   } else {
      $def_module = "";
   }
}

// Get main module
$sql = "SELECT main_module FROM ".$prefix."_main";
$query = $db->sql_query($sql);
list($main_module) = $db->sql_fetchrow($query);

/* Now we make the Modules block with the correspondent links */
$content .= "<strong><big>&middot;</big></strong> <a href=\"index.php\">"._HOME."</a><br>";
$sql = "SELECT title, custom_title, view FROM ".$prefix."_modules WHERE active='1' AND inmenu='1' ORDER BY custom_title ASC";
$result = $db->sql_query($sql);

while (list($title, $custom_title, $view) = $db->sql_fetchrow($result)) {
   $m_title = $title;
   $m_view = $view;
   if(file_exists("modules/$m_title/index.php")) {
      if (!empty($custom_title) && $custom_title != $m_title && $language === $currentlang) {
         $m_title2 = $custom_title;
      } else {
         if (!empty($custom_title)) {
            $m_title2 = (defined("_".$m_title."LANG"))? (constant("_".$m_title."LANG")) : $custom_title;
         } else {
            $m_title2 = (defined("_".$m_title."LANG"))? (constant("_".$m_title."LANG")) : ($m_title2 = str_replace("_", " ", $m_title));
         }
      }
      if ($m_title != $main_module) {
         if (file_exists("modules/$m_title/index.php") && ($m_view == 2 OR $m_view != 2)) {
            $content .= "<strong><big>&middot;</big></strong> <a href=\"modules.php?name=".$m_title."\">$m_title2</a><br>";
         }
      }
   }
}

/* If you're Admin you and only you can see Inactive modules and test it */
/* If you copied a new module is the /modules/ directory, it will be added to the database */
if (is_admin($admin)) {
   $content .= "<br><center><strong>"._INVISIBLEMODULES."</strong><br>";
   $content .= "<span class=\"tiny\">"._ACTIVEBUTNOTSEE."</span></center><br>";
   $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='1' AND inmenu='0' ORDER BY title ASC";
   $result = $db->sql_query($sql);
   $dummy = 1;
   while (list($title, $custom_title) = $db->sql_fetchrow($result)) {
      $mn_title = $title;
      $mn_title2 = str_replace("_", " ", $mn_title);
      if (!empty($custom_title)) {
         $mn_title2 = $custom_title;
      }
      if (!empty($mn_title2) && file_exists("modules/$mn_title/index.php")) {
         $content .= "<strong><big>&middot;</big></strong> <a href=\"modules.php?name=".$mn_title."\">$mn_title2</a><br>";
         $dummy = 0;
      }
   }
   if ($dummy) {
      $content .= "<strong><big>&middot;</big></strong> <i>"._NONE."</i><br>";
   }
   $content .= "<br><center><strong>"._NOACTIVEMODULES."</strong><br>";
   $content .= "<span class=\"tiny\">"._FORADMINTESTS."</span></center><br>";
   $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='0' ORDER BY title ASC";
   $result = $db->sql_query($sql);
   $dummy = 1;
   while (list($title, $custom_title) = $db->sql_fetchrow($result)) {
      $mn_title = $title;
      $mn_title2 = str_replace("_", " ", $mn_title);
      if (!empty($custom_title)) {
         $mn_title2 = $custom_title;
      }
      if (!empty($mn_title2) && file_exists("modules/$mn_title/index.php")) {
         $content .= "<strong><big>&middot;</big></strong> <a href=\"modules.php?name=".$mn_title."\">$mn_title2</a><br>";
         $dummy = 0;
      }
   }
   if ($dummy) {
      $content .= "<strong><big>&middot;</big></strong> <i>"._NONE."</i><br>";
   }
}

?>


Attached original admin files:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Fri Jul 14, 2006 9:45 pm Reply with quote Back to top

This is stated in the readme, the edits are also there in the download.

Not every version of nuke will be the same, patch versions included, so you must now follow the instructions on what to edit and where to put it, dont upload the edited files. MAKE the edits one by one and you should be fine.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4887

PostPosted: Sat Jul 15, 2006 5:08 am Reply with quote Back to top

Remember that there were multiple versions of the 3.1 patch - the later versions changed some things that caused confusion in the instructions.

If you search the forums here, you'll find specific instructions for how to edit core files after the later 3.1 patch.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum