Author |
Message |
xGSTQ
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 03, 2006
Posts: 269
|
Posted:
Tue Sep 26, 2006 3:34 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Tue Sep 26, 2006 4:53 pm |
|
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 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 5:01 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 5:20 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 5:30 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 5:31 pm |
|
man this is weird...
yeah i tried it on ravennuke testsite,and same thing..
ill ask raven to reply here. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Sep 26, 2006 6:45 pm |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Sep 26, 2006 8:12 pm |
|
Have you tried define('INDEX_FILE', false);? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 8:44 pm |
|
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');
} |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 27, 2006 1:24 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 27, 2006 6:17 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 6:41 am |
|
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 ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Nov 13, 2006 9:59 am |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 10:07 am |
|
i just hashed out
//define('INDEX_FILE', false);
doesnt work im affraid |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Nov 13, 2006 10:17 am |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 10:19 am |
|
currently the theme.php has INDEX_FILE in it once |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 10:39 am |
|
If this is a free theme, can you provide a link so I can try it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 10:44 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 13, 2006 10:50 am |
|
Not a problem, thanks for the update. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 14, 2006 7:28 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 14, 2006 7:37 am |
|
Thanks Montego,
Now ill remember to look at each function when im trying to remove the right blocks for any module !
Your a star |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|