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 -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
xGSTQ
Involved
Involved


Joined: Feb 03, 2006
Posts: 267
Location: UK

PostPosted: Tue Sep 26, 2006 3:34 pm Reply with quote

ok sorry for this, but ive tried all the things suggested and i cant seem to hit it on the head !

im trying to remove the RIGHT blocks from the downloads module

ive added the

$index = 0;

to the modules/downloads/index.php and ive also looked in the config file and nothing is jumping out at me ! lol



any suggestions are more than welcome thx
 
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Sep 26, 2006 4:53 pm Reply with quote

you have it like this ?

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$index = 0;
include("header.php");


Last edited by hitwalker on Wed Sep 27, 2006 3:51 am; edited 1 time in total 
View user's profile Send private message
xGSTQ
PostPosted: Tue Sep 26, 2006 5:01 pm Reply with quote

Hey hitwalker thx for replying so soon

it actually looks like this

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._UDOWNLOADS."";
require_once("modules/$module_name/d_config.php");
define('INDEX_FILE', true);
$index = 0;


the include("header.php"); is called in the function index() {

ive tried adding $index = 0; to the function index() { and that didnt work either.
 
hitwalker
PostPosted: Tue Sep 26, 2006 5:20 pm Reply with quote

mmm, try reading this...
Only registered users can see links on this board! Get registered or login!
and.. Only registered users can see links on this board! Get registered or login!
 
xGSTQ
PostPosted: Tue Sep 26, 2006 5:30 pm Reply with quote

Yeah i read those first before posting, this is normally so easy to do... i read those again and ive tried them but still no luck.

Its not a problem, but it would have been nice to remove the right blocks ... Thx hitwalker
 
hitwalker
PostPosted: Tue Sep 26, 2006 5:31 pm Reply with quote

man this is weird...
yeah i tried it on ravennuke testsite,and same thing..
ill ask raven to reply here.
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9456
Location: Arizona

PostPosted: Tue Sep 26, 2006 6:45 pm Reply with quote

Well, this works just fine for me:

Code:


require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._UDOWNLOADS."";
require_once("modules/$module_name/d_config.php");
//define('INDEX_FILE', true);


Make sure you do not still have the $index line in there.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Sep 26, 2006 8:12 pm Reply with quote

Have you tried define('INDEX_FILE', false);?
 
View user's profile Send private message
montego
PostPosted: Tue Sep 26, 2006 8:44 pm Reply with quote

Yeah, I guess it could depend on the theme (non-RavenNuke76 provided theme). fisubice and the others in this distro, I believe, are using a check like this in it, but if the theme has been "patched" differently:

function themefooter() {
global $foot1, $foot2, $foot3, $copyright, $totaltime, $footer_message;
if (defined('INDEX_FILE')) {
$tmpl_file = "themes/fisubice/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks('right');
}
 
xGSTQ
PostPosted: Wed Sep 27, 2006 1:24 am Reply with quote

This is bizzare ! lol

Well im going to take a closer look at the theme, i still cant get my head around it beacuse if i add $index = 0; to other modules that works okay its just the dowloads module thats not playing.

Ive just tried the fisubice theme too and its not happnin .. so i must be doing some thing wrong somewhere

Ill keep trying and let you know

Thx for all the replies
 
montego
PostPosted: Wed Sep 27, 2006 6:17 am Reply with quote

Quote:

This is bizzare !

I agree!

If you are using RavenNuke76 2.02.02 and a theme which came with it, then $index would not work. So, yes, this does seem to point to you using an older theme that has not been patched to be compatible with Chatserv patches 3.1 (or 3.2 - i cannot recall) or later.

Look for instances of:

If ($index = 1) {

And modify to:

If (defined('INDEX_FILE')) {

I am thinking that should fix you up.
 
xGSTQ
PostPosted: Mon Nov 13, 2006 6:41 am Reply with quote

I still cant do this, ive left it for fews weeks now, but now ive come to the stage where i need to remove the RIGHT blocks from a certain module.

Ive tried this in both my theme and the fisubice theme and it doesnt do anything.

ive added both (not at same time)

define('INDEX_FILE', false);

and

$index = 0;

to the top of my module in question... ive actually looked at the other modules that dont have right blocks like the Search, Your Account and the Forums and i just cant see any code that even looks like it would be usefull.

Any more suggestions ?
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Nov 13, 2006 9:59 am Reply with quote

Delete the 'INDEX_FILE' line

_________________
- 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
xGSTQ
PostPosted: Mon Nov 13, 2006 10:07 am Reply with quote

i just hashed out

//define('INDEX_FILE', false);

doesnt work im affraid
 
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Mon Nov 13, 2006 10:17 am Reply with quote

So to recap then, neither the modules index.php page nor the themes theme.php file have either INDEX_FILE or $index=1 in them?
 
View user's profile Send private message Send e-mail
xGSTQ
PostPosted: Mon Nov 13, 2006 10:19 am Reply with quote

currently the theme.php has INDEX_FILE in it once
 
Guardian2003
PostPosted: Mon Nov 13, 2006 10:39 am Reply with quote

If this is a free theme, can you provide a link so I can try it?
 
xGSTQ
PostPosted: Mon Nov 13, 2006 10:44 am Reply with quote

Montego has Pm me ive sent him all source files, so i think its best if we dont waste everyones time.

Dont get me wrong i appriciate everyones assistance very much, but it would be silly to have both of you trying to work it out.

Ill keep this thread updated
 
Guardian2003
PostPosted: Mon Nov 13, 2006 10:50 am Reply with quote

Not a problem, thanks for the update.
 
montego
PostPosted: Tue Nov 14, 2006 7:28 am Reply with quote

Turns out that the pesky line:

define('INDEX_FILE', true);

was throughout the module's index.php script within each function. Once each of these was commented out, it worked perfectly using the fisubice theme.
 
xGSTQ
PostPosted: Tue Nov 14, 2006 7:37 am Reply with quote

Thanks Montego,

Now ill remember to look at each function when im trying to remove the right blocks for any module !

Your a star
 
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 -> Raven's RavenNuke(tm) v2.02.02 Distro

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 ©