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, 414 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 - Turn off block right [ ]
 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
boyz008
Private
Private


Joined: Jul 06, 2008
Posts: 48


PostPosted: Wed Aug 13, 2008 2:38 am Reply with quoteBack to top

Hello all,

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
Find all posts by boyz008View user's profileSend private message
mangeewolf
Nuke Soldier
Nuke Soldier


Joined: Sep 29, 2004
Posts: 26


PostPosted: Wed Aug 13, 2008 10:02 am Reply with quoteBack to top

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')) {
Find all posts by mangeewolfView user's profileSend private messageSend e-mailVisit poster's website
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Aug 13, 2008 10:30 am Reply with quoteBack to top

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-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
wHiTeHaT
Private
Private


Joined: May 31, 2003
Posts: 41


PostPosted: Wed Aug 13, 2008 11:35 am Reply with quoteBack to top

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
Wink

PS: blocks(right); isprobaly in your footer function.
Find all posts by wHiTeHaTView user's profileSend private messageVisit poster's website
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Wed Aug 13, 2008 1:00 pm Reply with quoteBack to top

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.

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
boyz008
Private
Private


Joined: Jul 06, 2008
Posts: 48


PostPosted: Thu Aug 14, 2008 1:24 am Reply with quoteBack to top

Hi Spottedhog,

Yes it is done now. Thanks for ur help Smile

Thanks you guys for showing me some tips Wink
Find all posts by boyz008View user's profileSend private message
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.044 Seconds - 313 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::