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, 723 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 - Hide left blocks when viewing Forum or ANY module [ ]
 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
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Thu Oct 30, 2003 7:05 am Reply with quoteBack to top

Code:
$public_msg = public_message();
$tmpl_file = "themes/V6/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/V6/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/**********************************************************/
/* Function themefooter()                                 */
/* Control the footer for your site. You don't need to    */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right);     */
/**********************************************************/


http://www.maju.info/NC.txt
8th Line down of code above, taken from V6 theme.php reads
blocks(left);

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
ReBBeL
Nuke Soldier
Nuke Soldier


Joined: Jun 25, 2003
Posts: 16


PostPosted: Thu Oct 30, 2003 7:08 am Reply with quoteBack to top

Damn ... used the search option ... must be i'm tired

Thanks anyway
Find all posts by ReBBeLView user's profileSend private message
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Fri Oct 31, 2003 10:41 pm Reply with quoteBack to top

mikem wrote:
...to add more modules to this in order to hide the blocks,
you would make the above code look something like the following:

Code:
    if ($name=='Forums') {
    /* Don't display it. */
   }
   else
    if ($name=='Members_List') {
    /* Don't display it. */
   }
   else
          if ($name=='My_eGallery') {
    /* Don't display it. */
   }
      else
          if ($name=='Private_Messages') {
    /* Don't display it. */
   }
   else {
    blocks(left);
   }


mikem


For the sake of discussion, I use a slightly different twist - saves a little typing. Either way works fine. To each his own... Wink

Code:
    if ($name=='coppermine' ||
        $name=='DisError' ||
        $name=='Forums' ||
        $name=='Members_List' ||
        $name=='Private_Messages') {
    } else {
        blocks(left);
    }

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
awh
Lieutenant
Lieutenant


Joined: Sep 09, 2003
Posts: 158


PostPosted: Mon Nov 03, 2003 5:12 pm Reply with quoteBack to top

I want to have certain right hand side blocks showing when users are in ther forums but I don't really understand the instructions of the blocks_mod. Could one of you guys help me out with this?

http://www.nukecops.com/postt13677.html

_________________
Thanks,

Alex
Find all posts by awhView user's profileSend private message
awh
Lieutenant
Lieutenant


Joined: Sep 09, 2003
Posts: 158


PostPosted: Tue Nov 04, 2003 12:57 pm Reply with quoteBack to top

I have used the Blocks_Mod fine, but when I come to use the Blocks_Mod_Right I am having problems with the titles of the blocks dissapearing.

In the left mod the ModMod.php has this:

Quote:

<?php

$mod_theme="3D-Fantasy";

$mod_lblock1="blocks/block-modules.php";
$mod_lblock2="blocks/block-Amazon.php";
$mod_lblock3="";
$mod_lblock4="";
$mod_lblock5="";
$mod_lblock6="";
$mod_lblock7="";
$mod_lblock8="";
$mod_lblock9="";
$mod_lblock10="";

$title1="Main Menu";
$title2="";
$title3="";
$title4="";
$title5="";
$title6="";
$title7="";
$title8="";
$title9="";
$title10="";

?>


...so you can define each block title.

But when you over right htis file with the ModMod.php from the Blocks_Mod_Right.zip the text changes to this:

Quote:

<?php

$mod_theme = "";
$mod_logo = "";
$mod_lblock1 = "blocks/block-Advertising.php";
$mod_lblock2 = "blocks/block-Site_Visitors.php";
$mod_lblock3 = "blocks/block-Sommaire.php";
$mod_lblock4 = "";
$mod_lblock5 = "";
$mod_lblock6 = "";
$mod_lblock7 = "";
$mod_lblock8 = "";
$mod_lblock9 = "";
$mod_lblock10 = "";
$mod_rblock1 = "";
$mod_rblock2 = "";
$mod_rblock3 = "";
$mod_rblock4 = "";
$mod_rblock5 = "";
$mod_rblock6 = "";
$mod_rblock7 = "";
$mod_rblock8 = "";
$mod_rblock9 = "";
$mod_rblock10 = "";

?>


...so there is no way to define the title of each block.

One thing it could be is the new ModBlockR.php, which has a place that maybe I should enter title. However this is only for the right hand blocks so I am not sure that this is the fix, because my problem is with both left and right:

Quote:
<?php

global $name;
include("modules/$name/ModMod.php");
if($mod_rblock1!=""){
if(file_exists($mod_rblock1)){include($mod_rblock1);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock2!=""){
if(file_exists($mod_rblock2)){include($mod_rblock2);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock3!=""){
if(file_exists($mod_rblock3)){include("$mod_rblock3");
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock4!=""){
if(file_exists($mod_rblock4)){include($mod_rblock4);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock5!=""){
if(file_exists($mod_rblock5)){include($mod_rblock5);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock6!=""){
if(file_exists($mod_rblock6)){include($mod_rblock6);
themesidebox($title, $content);
$title="";
$block="";
}
}

if($mod_rblock7!=""){
if(file_exists($mod_rblock7)){include($mod_rblock7);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock8!=""){
if(file_exists($mod_rblock8)){include($mod_rblock8);
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock9!=""){
if(file_exists($mod_rblock9)){include("$mod_rblock9");
themesidebox($title, $content);
$title="";
$block="";
}
}
if($mod_rblock10!=""){
if(file_exists($mod_rblock10)){include("$mod_rblock10");
themesidebox($title, $content);
$title="";
$block="";
}
}
?>


Could someone please take a look at this and help me please

_________________
Thanks,

Alex
Find all posts by awhView user's profileSend private message
awh
Lieutenant
Lieutenant


Joined: Sep 09, 2003
Posts: 158


PostPosted: Tue Nov 04, 2003 2:53 pm Reply with quoteBack to top

basically I have got the "Blocks_Mod_RIGHT" to work as far as placing blocks on the left and right handside of a module, but the blocks no longer have their titles and I see no way of giving title. Please help

_________________
Thanks,

Alex
Find all posts by awhView user's profileSend private message
shadediva
Nuke Soldier
Nuke Soldier


Joined: Oct 14, 2003
Posts: 13


PostPosted: Sat Nov 22, 2003 7:24 pm Reply with quoteBack to top

I've read and reread this thread, but this seems to either get lost in all the discussion, or, I simply seem to lose it, lol.

Can someone please answer *just* this part so it's a bit more obvious for me?:

Once the left blocks are hidden, how does one center the forums again?

Thanks!


Last edited by shadediva on Mon Nov 24, 2003 10:48 pm; edited 1 time in total
Find all posts by shadedivaView user's profileSend private message
Minne
Lieutenant
Lieutenant


Joined: Jul 15, 2003
Posts: 150

Location: Small Sports

PostPosted: Sat Nov 22, 2003 10:43 pm Reply with quoteBack to top

Thanks you guys, really helped me out

_________________
Image
Find all posts by MinneView user's profileSend private messageVisit poster's websiteAIM Address
MagiCat
Nuke Soldier
Nuke Soldier


Joined: Nov 29, 2003
Posts: 11


PostPosted: Wed Dec 17, 2003 5:16 pm Reply with quoteBack to top

gravityarc wrote:
Blocks_Mod is very cool!

What I'm trying to do is find a way to allow a user to toggle the left blocks on and off. Is there a way to use Blocks_Mod to do this?

Thanks!
-Ben


*Bumping* to see if anyone has an answer to this question
Find all posts by MagiCatView user's profileSend private messageVisit poster's website
Andy1984
Corporal
Corporal


Joined: Dec 24, 2003
Posts: 61


PostPosted: Wed Dec 24, 2003 12:13 am Reply with quoteBack to top

i have tried all of these methods but dont get what i need. what i need is to display the forums in a new window "Just The Forums" nothing else
no titles no blocks no footers just plain old phpbb in a new window and using as much space as possible. i feel its easier to navigate & read the forums when they aint all cramed up between top banner area and blocks

(i dont like crowded places)

p.s i tried mikem's method but it not only makes the blocks disapear on forums page it makes them disapear in every page Rolling Eyes
Find all posts by Andy1984View user's profileSend private message
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Mon Dec 29, 2003 7:07 pm Reply with quoteBack to top

WHY IS EVERYONE IS MESSING WITH THEMES Confused

Just do it the easy way:

Open mainfile.php and change
Code:
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.

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
Willy_Wonka
Corporal
Corporal


Joined: Jun 22, 2003
Posts: 69

Location: The Chocolate Factory

PostPosted: Sat Jan 10, 2004 9:25 pm Reply with quoteBack to top

Not having left blocks at all with the $hideblocks variable is OK.
And yes, that could be so if you want that, but,

the Blocks_Mod does more than that.

1)
You can leave out any references to blocks and no blocks will show.
2)
You can also change the theme and/or the logo and/or have different blocks for different modules.

So, more options for a lot of things.
I have heard of somebody who made one site, and set it up with the Blocks_Mod to make it look like and behave like multiple sites.
Find all posts by Willy_WonkaView user's profileSend private message
therealbazza
Sergeant
Sergeant


Joined: Jul 11, 2003
Posts: 104


PostPosted: Sat Jan 31, 2004 3:31 am Reply with quoteBack to top

Hi, i kind of want to get rid of everything in the forums page( header, footer, left/right blocks, tables etc ) except the forum itself.

I just need it to be like THIS

I want it so that the actuall phpBB forum is on a normal html page or looks as if it is. I want it so when u click on forums on my site it opens in a seperate window showing only the forum with everything else not there.

Anyone know how to do this? ( i was gonna just install it to root directory but remembered that everyone wuld have to register again, that will be too much hassle )

Thank You!
Find all posts by therealbazzaView user's profileSend private message
aabbcc
Corporal
Corporal


Joined: Feb 20, 2004
Posts: 60


PostPosted: Sat Feb 21, 2004 1:49 am Reply with quoteBack to top

Ahh nice, this is what I was looking for. Thanks!

_________________
World of Warcraft Nation
Find all posts by aabbccView user's profileSend private messageVisit poster's website
Willy_Wonka
Corporal
Corporal


Joined: Jun 22, 2003
Posts: 69

Location: The Chocolate Factory

PostPosted: Sat Feb 21, 2004 7:38 pm Reply with quoteBack to top

Quote:

Hi, i kind of want to get rid of everything in the forums page( header, footer, left/right blocks, tables etc ) except the forum itself.

I just need it to be like THIS

I want it so that the actuall phpBB forum is on a normal html page or looks as if it is. I want it so when u click on forums on my site it opens in a seperate window showing only the forum with everything else not there.

Anyone know how to do this? ( i was gonna just install it to root directory but remembered that everyone wuld have to register again, that will be too much hassle )

Thank You!


If you use the Blocks_mod add-on (or work-around or whatever you like to call it) that can be done.

Just make a theme that does not show the headers and the footers and put that in as a variable in the file with variables of the Blocks_mod
Find all posts by Willy_WonkaView 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.048 Seconds - 417 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::