You are missing our premiere tool bar navigation system! Register and use it for FREE!


Author: awhPostPosted: Mon Nov 03, 2003 5:12 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: awhPostPosted: Tue Nov 04, 2003 12:57 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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:

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: ReBBeLPostPosted: Thu Oct 30, 2003 7:08 am    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Thanks anyway

Author: VinDSLLocation: Arizona (USA) Site Admin: Lenon.com Admin: Disipal DesignsPostPosted: Fri Oct 31, 2003 10:41 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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, 589 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 Hide left blocks when viewing Forum or ANY module
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  :| |:
Nuke Cops -> Tips And Tricks

Author: dezinaLocation: England PostPosted: Thu Oct 30, 2003 7:05 am    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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);
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);
    }
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

Author: awh PostPosted: Tue Nov 04, 2003 2:53 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: shadediva PostPosted: Sat Nov 22, 2003 7:24 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: MinneLocation: Small Sports PostPosted: Sat Nov 22, 2003 10:43 pm    Post subject:

Thanks you guys, really helped me out

Author: MagiCat PostPosted: Wed Dec 17, 2003 5:16 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: Andy1984 PostPosted: Wed Dec 24, 2003 12:13 am    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: djmazeLocation: Netherlands PostPosted: Mon Dec 29, 2003 7:07 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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.

Author: Willy_WonkaLocation: The Chocolate Factory PostPosted: Sat Jan 10, 2004 9:25 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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.

Author: therealbazza PostPosted: Sat Jan 31, 2004 3:31 am    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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!

Author: aabbcc PostPosted: Sat Feb 21, 2004 1:49 am    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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

Author: Willy_WonkaLocation: The Chocolate Factory PostPosted: Sat Feb 21, 2004 7:38 pm    Post subject: Re: Hide left blocks when viewing Forum or ANY module

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



Nuke Cops -> Tips And Tricks

All times are GMT - 8 Hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  :| |:
Page 5 of 10

Powered by phpBB © 2001,2002 phpBB Group
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.029 Seconds - 141 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::