You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 331 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - (how-to) Full page display of Forums (and other modules) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Wed Sep 21, 2005 12:09 pm Reply with quoteBack to top

You'll need to put it in the beginning of modules/YOURMODULE/index.php if it isn't there

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ben1
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26


PostPosted: Sat Sep 24, 2005 6:23 pm Reply with quoteBack to top

How would I go about keeping the right side block when forums is opened up? Currently the left side blocks stay put but the right goes away. I want to keep both of them when the forums are opened up.

Ben
Find all posts by ben1View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat Sep 24, 2005 8:14 pm Reply with quoteBack to top

You need to put $index=1; or define('INDEX_FILE',1); in the module's index.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ben1
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26


PostPosted: Sun Sep 25, 2005 4:46 am Reply with quoteBack to top

Ok two questions for you Evaders99.

1. Which index.php? I went to modules and there's not a index.php, do I go to the forums module folder or?

2. Where do I add this to: $index=1 anywhere or do I find it and ensure there's a 1 on there or?
Find all posts by ben1View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun Sep 25, 2005 6:34 pm Reply with quoteBack to top

modules/Forums/index.php

Add it to the beginning of the code, after the copyright messages

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ben1
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26


PostPosted: Tue Sep 27, 2005 11:01 am Reply with quoteBack to top

Evaders99,
Thanks again for all your help, it works like a charm.

Ben
Find all posts by ben1View user's profileSend private message
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Tue Sep 27, 2005 1:23 pm Reply with quoteBack to top

I put it in just like that:

Code:
/***************************************************************************
 *
 *   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, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$index = 0;

if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}
if ($popup != "1")
    {
        $module_name = basename(dirname(__FILE__));
        require("modules/".$module_name."/nukebb.php");


But the right block ist still showing.
Anybody know why?[/quote]

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Tue Sep 27, 2005 5:34 pm Reply with quoteBack to top

For the original phpNuke
Code:

$index=1;


For the Patched files
Code:

define('INDEX_FILE',1);

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Wed Sep 28, 2005 1:58 pm Reply with quoteBack to top

Ok, now I got it in there like that:

Code:

<?php

/***************************************************************************
 *                                index.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   Id: index.php,v 1.99.2.3 2004/07/11 16:46:15 acydburn Exp
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
define('INDEX_FILE',0);

if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}
if ($popup != "1")
    {
        $module_name = basename(dirname(__FILE__));
        require("modules/".$module_name."/nukebb.php");
    }
    else
    {
        $phpbb_root_path = 'modules/Forums/';
    }
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);


but its still showing the right block in forum as you can see here:
http://www.kur-clan.de/nuketest/modules.php?name=Forums

Whatelse can I do?

I really want those right blocks be gone in the forum.

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Wed Sep 28, 2005 4:16 pm Reply with quoteBack to top

Wrong - what you want is not have INDEX_FILE defined at all.

Meaning delete the line

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Fri Sep 30, 2005 10:43 am Reply with quoteBack to top

I didnt have the INDEX_FILE line in there at all.
I just put it in there after I read your post.

When I delete it again I doesnt hide the right blocks.

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Sep 30, 2005 11:41 am Reply with quoteBack to top

It is possible that your theme is doing something else.

Go to your themefooter() inside theme.php and post that code

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Fri Sep 30, 2005 11:45 am Reply with quoteBack to top

Code:
function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;
   
   $tmpl_file = "themes/Volllast/center_right.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
   blocks(right);
   
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/Volllast/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
mixman
Nuke Soldier
Nuke Soldier


Joined: Sep 26, 2005
Posts: 10


PostPosted: Sat Oct 01, 2005 7:31 am Reply with quoteBack to top

Is it possible to do this with the admin menu?

Tried this without any success:

Code:
$mad_hide_left_blocks = array('Forums', 'Private_Messages', 'Journal', 'Members_List', 'Admin');



/M
Find all posts by mixmanView user's profileSend private message
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Sat Oct 01, 2005 7:41 am Reply with quoteBack to top

where do I put this line in?

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.135 Seconds - 423 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::