$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); */
/**********************************************************/
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?
...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:
Could someone please take a look at this and help me please
_________________ Thanks,
Alex
awh Lieutenant
Joined: Sep 09, 2003
Posts: 158
Posted:
Tue Nov 04, 2003 2:53 pm
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
shadediva Nuke Soldier
Joined: Oct 14, 2003
Posts: 13
Posted:
Sat Nov 22, 2003 7:24 pm
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
Minne Lieutenant
Joined: Jul 15, 2003
Posts: 150
Location: Small Sports
Posted:
Sat Nov 22, 2003 10:43 pm
Thanks you guys, really helped me out
_________________
MagiCat Nuke Soldier
Joined: Nov 29, 2003
Posts: 11
Posted:
Wed Dec 17, 2003 5:16 pm
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
Andy1984 Corporal
Joined: Dec 24, 2003
Posts: 61
Posted:
Wed Dec 24, 2003 12:13 am
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
djmaze Captain
Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
Posted:
Mon Dec 29, 2003 7:07 pm
WHY IS EVERYONE IS MESSING WITH THEMES
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 http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please
Willy_Wonka Corporal
Joined: Jun 22, 2003
Posts: 69
Location: The Chocolate Factory
Posted:
Sat Jan 10, 2004 9:25 pm
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.
therealbazza Sergeant
Joined: Jul 11, 2003
Posts: 104
Posted:
Sat Jan 31, 2004 3:31 am
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 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 )
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
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