Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
perfect-games
Regular
Regular



Joined: Oct 28, 2004
Posts: 84

PostPosted: Sun Jul 24, 2005 9:31 am Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Jul 24, 2005 10:07 am Reply with quote

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.
 
View user's profile Send private message
perfect-games







PostPosted: Sun Jul 24, 2005 10:11 am Reply with quote

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







PostPosted: Sun Jul 24, 2005 10:18 am Reply with quote

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







PostPosted: Sun Jul 24, 2005 10:27 am Reply with quote

I just tested it here and it worked so i don't know what else you might have installed that is interferring.
 
perfect-games







PostPosted: Sun Jul 24, 2005 10:38 am Reply with quote

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







PostPosted: Sun Jul 24, 2005 10:42 am Reply with quote

Should work, but you could try moving it after this line:
include($phpbb_root_path . 'common.'.$phpEx);
 
perfect-games







PostPosted: Sun Jul 24, 2005 11:39 am Reply with quote

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
Regular



Joined: Jan 24, 2004
Posts: 81
Location: Sweden

PostPosted: Sun Jul 24, 2005 6:21 pm Reply with quote

Hello!

Try this:
open modules/Forums/nukebb.php
add:
Code:
$index = 1;

after:
Code:
get_lang($module_name);

_________________
/spcdata 
View user's profile Send private message Send e-mail Visit poster's website
bio64
New Member
New Member



Joined: Jul 24, 2006
Posts: 2

PostPosted: Mon Jul 24, 2006 5:46 pm Reply with quote

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
 
View user's profile Send private message
Raven







PostPosted: Mon Jul 24, 2006 9:59 pm Reply with quote

Blocks are activated through the nuke administration panel.
 
bio64







PostPosted: Tue Jul 25, 2006 6:14 am Reply with quote

i figured it out, yea it was in the news module for the main page.

Thanks!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

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 ©