| Author |
Message |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Wed Sep 21, 2005 12:09 pm |
  |
|
     |
 |
ben1
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26
|
Posted:
Sat Sep 24, 2005 6:23 pm |
  |
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 |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Sat Sep 24, 2005 8:14 pm |
  |
|
     |
 |
ben1
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26
|
Posted:
Sun Sep 25, 2005 4:46 am |
  |
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? |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Sun Sep 25, 2005 6:34 pm |
  |
|
     |
 |
ben1
Nuke Soldier


Joined: Aug 04, 2005
Posts: 26
|
Posted:
Tue Sep 27, 2005 11:01 am |
  |
Evaders99,
Thanks again for all your help, it works like a charm.
Ben |
|
|
   |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Tue Sep 27, 2005 1:23 pm |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Tue Sep 27, 2005 5:34 pm |
  |
|
     |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Wed Sep 28, 2005 1:58 pm |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Wed Sep 28, 2005 4:16 pm |
  |
|
     |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Fri Sep 30, 2005 10:43 am |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Fri Sep 30, 2005 11:41 am |
  |
|
     |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Fri Sep 30, 2005 11:45 am |
  |
| 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 |
|
    |
 |
mixman
Nuke Soldier


Joined: Sep 26, 2005
Posts: 10
|
Posted:
Sat Oct 01, 2005 7:31 am |
  |
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 |
|
|
   |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Sat Oct 01, 2005 7:41 am |
  |
|
    |
 |
|
|