I got a question concerning on turning off block (right) I know how to turn off the block (left) here is the code I put it in theme.php to turn off the block (left) :
Code:
if ($name=='Video') {
/* Don't display it. */
}
else {
blocks(left);
}
The block right of module name "Video" is still opened so I want to turn it off . Could anyone help me ?
Thanks
mangeewolf Nuke Soldier
Joined: Sep 29, 2004
Posts: 26
Posted:
Wed Aug 13, 2008 10:02 am
If you have phpnuke 8.0 there is a readme.txt file in the html folder. It talks about this.
Quote:
Important notes relating to Nuke Patched 3.1 and above:
1- If you want right side blocks to appear in third party add-ons change:
In Modules:
Code:
index = 1;
to:
define('INDEX_FILE', true);
In Themes:
Code:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {
spottedhog Captain
Joined: Apr 30, 2004
Posts: 561
Posted:
Wed Aug 13, 2008 10:30 am
mangeewolf... the code you listed will display blocks(right);
You will want to do the opposite...
In the modules/Video/index.php file, find near the top of the file either:
index = 1;
and change to:
//index = 1;
OR
define('INDEX_FILE', true);
and change to:
//define('INDEX_FILE', true);
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
wHiTeHaT Private
Joined: May 31, 2003
Posts: 41
Posted:
Wed Aug 13, 2008 11:35 am
you already did a call into the theme , if skip the 2 posts before me... and goto your theme function where you added your code.... did you checked you also have $name added to the global line... for example:
Code:
global $index,$name, $foot1, $foot2, $foot3, $foot4;
ofcourse you can take also the advice of the other 2 posters...
Grtzzz wHiTeHaT
PS: blocks(right); isprobaly in your footer function.
spottedhog Captain
Joined: Apr 30, 2004
Posts: 561
Posted:
Wed Aug 13, 2008 1:00 pm
If I understand your initial posting, you wish to turn off the Right Blocks for the Video module.
Since Right Blocks are displaying, there is no reason to do anything to the theme.php file or the footer.php file.
To turn off the right blocks, you must comment out or delete whichever of the 2 lines are in the modules/Video/index.php file, like I described in my first posting.
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