Author |
Message |
perfect-games
Regular


Joined: Oct 28, 2004
Posts: 84
|
Posted:
Sun Jul 24, 2005 9:31 am |
|
hi guys,
does anyone know how to show right blocks in forums,
i cant seem to find $index = 0; in the forum index am i overlooking something,
any advice on how the right blocks in nuke are removed please temm me so i can remove this,
its due to my admin tool i working on i need the right blocks to show.
thanks |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Jul 24, 2005 10:07 am |
|
Just add $index=1; to modules/Forums/index.php to show the right blocks.
Add $index=0; to the index.php of any module to hide the right blocks. |
|
|
|
 |
perfect-games

|
Posted:
Sun Jul 24, 2005 10:11 am |
|
well raven i using codewiz forum hide mod just thought it would work better if i can select it in forums like the rest of the modules,
sofar i recoded the forum so all forum admin files now install and load from root/themename/forums/admin/ all the admin files have been moved to includes, i added new template system so all the tpl get precompiled for better loadtimes, all nuke themes are tpl files and use smarty engine and they also get precompiled for better loading.
and i currently finishing up the blocks system to precompile mods or blocks.
going to get beta out this week i send it to you if your intrested.
thanks
steve |
|
|
|
 |
perfect-games

|
Posted:
Sun Jul 24, 2005 10:18 am |
|
well i just tried what you said i added to the forum index and no effect, and the themes have no hide hack in them either. |
|
|
|
 |
Raven

|
Posted:
Sun Jul 24, 2005 10:27 am |
|
I just tested it here and it worked so i don't know what else you might have installed that is interferring. |
|
|
|
 |
perfect-games

|
Posted:
Sun Jul 24, 2005 10:38 am |
|
raven this is what i have is this wrong?
and the file is modules/Forums/index.php
Code:if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
$index=1;
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);
init_userprefs($userdata);
//
// End session management
//
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;
if( isset($HTTP_GET_VARS['mark']) || isset($HTTP_POST_VARS['mark']) )
{
$mark_read = ( isset($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : $HTTP_GET_VARS['mark'];
}
else
{
$mark_read = '';
}
|
|
|
|
|
 |
Raven

|
Posted:
Sun Jul 24, 2005 10:42 am |
|
Should work, but you could try moving it after this line:
include($phpbb_root_path . 'common.'.$phpEx); |
|
|
|
 |
perfect-games

|
Posted:
Sun Jul 24, 2005 11:39 am |
|
still no effect, i even tried define('INDEX_FILE', true); as i using patch 3.1 the only hacks i have in modules is conditional blocks and tellis hide mod, all the other modules are ok except the forum part |
|
|
|
 |
spcdata
Regular


Joined: Jan 24, 2004
Posts: 81
Location: Sweden
|
Posted:
Sun Jul 24, 2005 6:21 pm |
|
Hello!
Try this:
open modules/Forums/nukebb.php
add:
after: Code:get_lang($module_name);
|
|
_________________ /spcdata |
|
|
 |
bio64
New Member


Joined: Jul 24, 2006
Posts: 2
|
Posted:
Mon Jul 24, 2006 5:46 pm |
|
ok, how do ya enable view all blocks on the index page of nuke? i just got a new theme payed for, wondering how ya do it
thanks |
|
|
|
 |
Raven

|
Posted:
Mon Jul 24, 2006 9:59 pm |
|
Blocks are activated through the nuke administration panel. |
|
|
|
 |
bio64

|
Posted:
Tue Jul 25, 2006 6:14 am |
|
i figured it out, yea it was in the news module for the main page.
Thanks! |
|
|
|
 |
|