Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x
Author Message
shakur2004
New Member
New Member


Joined: Nov 21, 2005
Posts: 4

PostPosted: Mon Nov 21, 2005 7:22 am Reply with quote

hello
I have installed nukesentinel 2.4 successfully and left YOUR_ACCOUNT module nuchanged Because i use YAY_NA modified module of YOUR_ACCOUNT which i didnt want to change . But what occured is that the all the right blocks disappeared from the main page. Topic images do not work anymore. I have not used the Edites_for_core yet. so mi wondering is that normal what just happened ? Then it comes to edting Some of codes look completely different than what i have for example in EDITE_FOR_CORE folder in
Mainfile.79 its said find
Code:
#-----[ FIND ]------------------------------------------

#
if (defined('FORUM_ADMIN')) {
   @require_once("../../../config.php");
   @require_once("../../../db/db.php");
   @require_once("../../../includes/sql_layer.php");
   if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); }
   @require_once("../../../includes/ipban.php");
   if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
   if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.php"); }
} elseif (defined('INSIDE_MOD')) {
   @require_once("../../config.php");
   @require_once("../../db/db.php");
   @require_once("../../includes/sql_layer.php");
   if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); }
   @require_once("../../includes/ipban.php");
   if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
   if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.php"); }
} else {
   @require_once("config.php");
   @require_once("db/db.php");
   @require_once("includes/sql_layer.php");
   if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); }
   @require_once("includes/ipban.php");
   if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
   if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}


And what found was this in current mainfile of phpnuke 7.9 so im completely confused

Code:
// define the INCLUDE PATH

if(defined('FORUM_ADMIN')) {
  define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
  define('INCLUDE_PATH', '../../');
} else {
  define('INCLUDE_PATH', './');
}

// Include the required files
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
  @include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}

if (!defined('FORUM_ADMIN')) {
  if(empty($admin_file)) {
    die ("You must set a value for admin_file in config.php");
  } elseif (!empty($admin_file) && !file_exists($admin_file.".php")) {
    die ("The admin_file you defined in config.php does not exist");
  }
}

// Error reporting, to be set in config.php
if($display_errors) {
  ini_set('display_errors', 1);
  error_reporting(E_ALL^E_NOTICE);
} else {
  ini_set('display_errors', 0);
  error_reporting(0);
}

define('NUKE_FILE', true);
$dbi = $db->db_connect_id;
$result = $db->sql_query("SELECT * FROM ".$prefix."_config");
$row = $db->sql_fetchrow($result);
$sitename = $row['sitename'];
$nukeurl = $row['nukeurl'];
$site_logo = $row['site_logo'];
$slogan = $row['slogan'];
$startdate = $row['startdate'];
$adminmail = stripslashes($row['adminmail']);
$anonpost = $row['anonpost'];
$Default_Theme = $row['Default_Theme'];
$foot1 = $row['foot1'];
$foot2 = $row['foot2'];
$foot3 = $row['foot3'];
$commentlimit = intval($row['commentlimit']);
$anonymous = $row['anonymous'];
$minpass = intval($row['minpass']);
$pollcomm = intval($row['pollcomm']);
$articlecomm = intval($row['articlecomm']);
$broadcast_msg = intval($row['broadcast_msg']);
$my_headlines = intval($row['my_headlines']);
$top = intval($row['top']);
$storyhome = intval($row['storyhome']);
$user_news = intval($row['user_news']);
$oldnum = intval($row['oldnum']);
$ultramode = intval($row['ultramode']);
$banners = intval($row['banners']);
$backend_title = $row['backend_title'];
$backend_language = $row['backend_language'];
$language = $row['language'];
$locale = $row['locale'];
$multilingual = intval($row['multilingual']);
$useflags = intval($row['useflags']);
$notify = intval($row['notify']);
$notify_email = $row['notify_email'];
$notify_subject = $row['notify_subject'];
$notify_message = $row['notify_message'];
$notify_from = $row['notify_from'];
$moderate = intval($row['moderate']);
$admingraphic = intval($row['admingraphic']);
......etc

and for mainfile of YOUR_ACCOUNT the following codes
Code:
global $sitename, $adminmail, $nukeurl, $user_prefix, $db, $module_name;


i just couldnt find it so really i dont know what im suppose to do.
I tried deinstalling the whole nukesentinel but it does deinstall for some reason.
I would really appreciate if someone could help me out
Thanks
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Mon Nov 21, 2005 5:18 pm Reply with quote

These questions are all answered in the forum if you would search for them Smile

After this line
@require_once(INCLUDE_PATH."includes/ipban.php");
add this
@require_once(INCLUDE_PATH."includes/nukesentinel.php");

If you are using CNBYA then the YOUR_ACCOUNT changes would not be applicable.
 
View user's profile Send private message
shakur2004
PostPosted: Wed Nov 23, 2005 7:45 am Reply with quote

Raven wrote:
These questions are all answered in the forum if you would search for them Smile

After this line
@require_once(INCLUDE_PATH."includes/ipban.php");
add this
@require_once(INCLUDE_PATH."includes/nukesentinel.php");

If you are using CNBYA then the YOUR_ACCOUNT changes would not be applicable.

thnx alot mate site is working fine now. I just got 1 last question do you have any idea how to fix the topic images because now they appear in X sign.
Thnx alot
 
Raven
PostPosted: Wed Nov 23, 2005 9:33 am Reply with quote

Do a right mouse over the X. Check the path and then make sure that it is the path to the images.
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Nov 23, 2005 2:42 pm Reply with quote

Only registered users can see links on this board! Get registered or login!
The change I posted or chatserv's change, doesn't matter

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
shakur2004
PostPosted: Thu Nov 24, 2005 6:26 am Reply with quote

thnx very much for the help guys Smile.
EDITED:
sorry but the code did not work
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©