Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
neodesc
New Member
New Member



Joined: Jun 20, 2005
Posts: 18

PostPosted: Mon Aug 01, 2005 9:15 am Reply with quote

Hi, I'm trying to install GT-NextGen 0.4 on PHP-Nuke 7.6.0.3.1 and I don't know how to edit the modules.php file.

The install readme:

- Open modules.php (Located in main nuke directory)

Find:

if (isset($name)) {



After this and on a new line, add:

$nextgen_name = $name;



Code should now resemble the following:

if (isset($name)) {

$nextgen_name = $name;

global $nukeuser;



Save modules.php and upload

The modules.php file:

Code:
<?php


/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 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.       */
/*                                                                      */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                   */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/

define('MODULE_FILE', true);
require_once("mainfile.php");
//$module = 1;

if (isset($name) && $name == $_REQUEST['name']) {
  $name = addslashes(trim($name));
  $modstring = strtolower($_SERVER['QUERY_STRING']);
  if (stripos_clone($name, "..") OR ((stripos_clone($modstring,"&file=nickpage") || stripos_clone($modstring,"&user=")) AND ($name=="Private_Messages" OR $name=="Forums" OR $name=="Members_List"))) header("Location: index.php");
  global $nukeuser, $db, $prefix, $user;
  if (is_user($user)) {
    $nukeuser = base64_decode($user);
    $nukeuser = addslashes($nukeuser);
  } else {
    $nukeuser = "";
  }
  $result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='$name'");
  list($mod_active, $view) = $db->sql_fetchrow($result);
  $mod_active = intval($mod_active);
...


Could someone edit this with the readme information? I have tried it several times but I think I'm doing something wrong.

Thanks in advance.
 
View user's profile Send private message
VinDSL
Life Cycles Becoming CPU Cycles



Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Mon Aug 01, 2005 10:49 am Reply with quote

I suppose I would try...

Code:
<?php


/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 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.       */
/*                                                                      */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                   */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/

define('MODULE_FILE', true);
require_once("mainfile.php");
//$module = 1;

if (isset($name) && $name == $_REQUEST['name']) {
  $name = addslashes(trim($name));
  $nextgen_name = $name;
  $modstring = strtolower($_SERVER['QUERY_STRING']);
  if (stripos_clone($name, "..") OR ((stripos_clone($modstring,"&file=nickpage") || stripos_clone($modstring,"&user=")) AND ($name=="Private_Messages" OR $name=="Forums" OR $name=="Members_List"))) header("Location: index.php");
  global $nukeuser, $db, $prefix, $user;
  if (is_user($user)) {
    $nukeuser = base64_decode($user);
    $nukeuser = addslashes($nukeuser);
  } else {
    $nukeuser = "";
  }
  $result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='$name'");
  list($mod_active, $view) = $db->sql_fetchrow($result);
  $mod_active = intval($mod_active);
...

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::. 
View user's profile Send private message Visit poster's website ICQ Number
neodesc







PostPosted: Mon Aug 01, 2005 11:41 am Reply with quote

Thanks VinDSL. I think there is a problem with the sourveys module, you can see it on my website: [ Only registered users can see links on this board! Get registered or login! ]

Before I thought it was a GT-NextGen problem but now I don't know... maybe I'm doing something wrong, has someone installed the PHP-Nuke 7.6.0.3.1 without the GT? I will try it tomorrow.
 
neodesc







PostPosted: Tue Aug 02, 2005 8:16 am Reply with quote

I have tried only the PHP-Nuke 7.6.0.3.1 (without GT-NextGen or any other modification) in [ Only registered users can see links on this board! Get registered or login! ] and the problem with the survey module continues.
 
neodesc







PostPosted: Wed Aug 03, 2005 6:01 am Reply with quote

It was a Patched 3.1 problem, It has been solved.
[ Only registered users can see links on this board! Get registered or login! ]
 
NukeBling
New Member
New Member



Joined: Mar 29, 2005
Posts: 7

PostPosted: Thu Aug 18, 2005 2:07 am Reply with quote

Hi neodesc,

Where did you download your googletap for PHP-Nuke 7.6.0.3.1 from ??

The one's I've tried have been riddled with bugs Sad

Please send link ;-p

_________________
kaching! Nuke Bling ££ | Hot Crawl ~ search | 1nfoweb - Free eLearning | BlogSpot 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

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 ©