function blocks($side) {
global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user;
into
Code:
function blocks($side) {
global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user, $hideleftblocks;
if (strtolower($side[0]) == "l" && $hideleftblocks) return;
Then in any module change
Code:
include("header.php");
into
Code:
global $hideleftblocks;
$hideleftblocks = 1;
include("header.php");
Tested and works open your "modules/Forums/nukebb.php" to hide left blocks in phpBB
The cool thing is, if you have viewers with bad eyes for example they just put "&hideleftblocks=1" in the URL and it's hidden for that page so they can easily view/print it.
Make this standard and all themes still work.
I have done this and it works but... the left blocks aren't there but the space is still there. How can I make that blanck space desappear?
Thanks
kazooki Nuke Cadet
Joined: Feb 01, 2005
Posts: 4
Posted:
Thu Feb 10, 2005 3:38 pm
I have downloaded and tried to use blocksmod2.
I made all the changes but the modmod file just completely baffled me.
Is there a walkthru other than the help file, because that explained everything BUT what to do with the modmod.php file?
evonder Nuke Cadet
Joined: Mar 05, 2005
Posts: 8
Posted:
Sat Mar 05, 2005 3:13 pm
I have managed to get rid of the table after eliminating the left blocks in certian modules by editing my theme/MYTHEME/header.html. Now to make some modules look right with left blocks enabled I have had to make a header2.html and leave it stock. I then had to modify my theme.php to the following:
would be the proper code. But I'm not sure if that's just an error or if there's something else wrong with your script.
Unfortunetly this is not working for me..o well I will just have kind of a bollixed up looken theme.php in that block of code. I kind of baffled as to why it is not working properly though...I will continue to look about for an answer. good thing I dont have many modules that need no left blocks.
_________________
VinDSL Site Admin
Joined: Jul 08, 2003
Posts: 1193
Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs
I tried to use the following code to make the left blocks disappear. (This is the one originally posted in the thread), but the left blocks are disappearing only for gallery and Forums and not member_list and Private_Messages I tried changing the order, but still no use.
Please advise.
_________________ It is not our abilities which decide what we truly are, it is our choices.
florimonte Nuke Cadet
Joined: Jun 03, 2005
Posts: 7
Posted:
Fri Jun 03, 2005 7:22 am
I've installed BlocksMod2 into Nuke 7.7 Everything seems to instaleld correctly- I guess. Reading fourms about BlocksMod2 and seem to have a hold on how it works. Add the code to footer.php header,php modules.php and the themes theme.php, change ModMod.php to liking, drop the dir BlocksMod into affected modules, and it works. Well I counldn't get it to work.
Actually the added code in themes.php:
-------
global $name;
$ch_blockl="modules/$name/BlocksMod/ModBlockL.php";
if (file_exists($ch_blockl)){ include("$ch_blockl");}
else{blocks(left);}
----------
gives me trouble. It seems $name doesn't equal anything. And isn't in the newer php, globals are turned off anyways?
Point me in the right direction. Thanks.
Thomas
That ($module_name) doesn't work either. Where is $name set to anything? I've looked in several .php files and don't seem to see it assigned to anything. The add on code referies to $name, but doesn't set it. What ya think.
Another good question is- Has anybody gotten the BlockMod2 (the current version over at http://www.sengers-au.com/Portal/component/option,com_remository/Itemid,249/func,fileinfo/filecatid,1/parent,folder/) code to work with phpNuke 7.7.0.3.0? I've tried it with fresh install to see if I've already modded it past the point of thie mod working with it. No luck. Thanks for all the info.
Thomas
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12342
Posted:
Mon Jun 06, 2005 6:20 am
$name is assumed to be passed when a module is being called
modules.php?name=Forums for example
As well, $module_name is called inside the modules file itself, in case it is needed. This variable may not be defined globally..
im using platinum and i cant find any of this in the theme.php.
cant anyone help? thans (i just want to remove them when the forum shows)
thanx guys.
sandman229 Sergeant
Joined: Jul 28, 2003
Posts: 102
Location: Victorville, Ca.
Posted:
Thu Dec 29, 2005 10:59 am
florimonte wrote:
That ($module_name) doesn't work either. Where is $name set to anything? I've looked in several .php files and don't seem to see it assigned to anything. The add on code referies to $name, but doesn't set it. What ya think.
Another good question is- Has anybody gotten the BlockMod2 (the current version over at http://www.sengers-au.com/Portal/component/option,com_remository/Itemid,249/func,fileinfo/filecatid,1/parent,folder/) code to work with phpNuke 7.7.0.3.0? I've tried it with fresh install to see if I've already modded it past the point of thie mod working with it. No luck. Thanks for all the info.
Thomas
I got it to work with 78 but it doesn't change the themes at all. Haven't figured it out yet. I guess I'll stay with 75.. It worked on that version. (See below site)
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