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, 164 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 - (how-to) Full page display of Forums (and other modules) [ ]
 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
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat Oct 01, 2005 4:39 pm Reply with quoteBack to top

Replace

Code:

blocks(right);


with

Code:

if (!defined('INDEX_FILE')) {
blocks("right");
}

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Sat Oct 01, 2005 5:07 pm Reply with quoteBack to top

That works great.
Thanks.

But now the right blocks are gone on multiple pages. even on the home - page.

I just want them to be gone on Forum.

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat Oct 01, 2005 5:12 pm Reply with quoteBack to top

The standard is basically that a module must defined INDEX_FILE in order to display right bocks.

If you really want the quick fix,
Code:

global $name;
if ($name != "Forums")
{
  blocks("right");
}


If you have any future problems with the blocks, remember you did this change to the theme

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Sun Oct 02, 2005 12:09 pm Reply with quoteBack to top

Thank you so much.
That works just right for me.

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
BuZZ
Nuke Cadet
Nuke Cadet


Joined: Dec 01, 2005
Posts: 3


PostPosted: Thu Dec 01, 2005 11:55 am Reply with quoteBack to top

I wanted to remove the blocks from the sides on our forum as well. I did and it worked perfectly. Wink However, on the index, only the left blocks show. The right blocks are MIA. I restored my backup files and the right blocks are still gone. Shocked Where'd they go? How do I restore the right blocks on the index and all other pages EXCEPT the forum?

What files would you need to see?

Thank you


PHP NUKE 7.7 w/ patch 3.1


EDIT: The right side blocks do show up on the administration menu, but they are at the very bottom of the page and near the middle. They don't show at all outside of the admin menu.
Find all posts by BuZZView user's profileSend private message
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1939

Location: Behind you

PostPosted: Thu Dec 01, 2005 2:37 pm Reply with quoteBack to top

Simply, the key is to render blocks(left); and block(right);

So, find your blocks(left) and blocks(right) call in your theme.php file. Then, add your condiitons with global decalaration of $module_name variable as evaders99 demonstrates. Then you will remove both side block columns as your front module becomes Forums.

_________________
Home of the Enterprise PHP-NUKE
Find all posts by XyberianView user's profileSend private messageVisit poster's website
BuZZ
Nuke Cadet
Nuke Cadet


Joined: Dec 01, 2005
Posts: 3


PostPosted: Thu Dec 01, 2005 3:51 pm Reply with quoteBack to top

Okay, finally got it! Ended up removing a lot of crap from the theme.php file to make it work. Thanks everyone for the great input on this thread. Thanks a million. Very Happy
Find all posts by BuZZView user's profileSend private message
rsmaverick
Nuke Cadet
Nuke Cadet


Joined: Jan 24, 2006
Posts: 7


PostPosted: Tue Jan 24, 2006 11:25 am Reply with quoteBack to top

Hi There,
Ok I have read all of the above posts and now I shall ... post my question Smile. I have configured my navigation bar in flash on my site to open my forum in a new window. However, I have to configure the forum so it opens completely fullscreen... as you would see a template demo on a forum or something, no header no footer.. just the forum. How would I go about changing the code for this? and also... will this open a new page and work for every singe link to the forums, wether its on the flash bar... the modules forum button and the scrolling list of new forums? my site is www.roguesquadronclan.com so you can take a look at what it is now.

Thank you!
Maverick
Find all posts by rsmaverickView user's profileSend private message
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Thu Oct 18, 2007 1:08 pm Reply with quoteBack to top

I now have a question. I was looking for the exact answer to thsi question. When I found I made the necessary changes to mainfile and modules.php and it worked perfectly.

The problem is I've now uploaded a new template and the forum now looks like this.

http://www.comotorsports.net/PHP-Nuke/modules.php?name=Forums

If I go back to the original files it looks like it would normally with the blocks on the left.

Can someone help me fix this so that the forum is centered like I originally had before uploading this new theme?
Find all posts by jeebusView user's profileSend private messageVisit poster's website
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Thu Oct 18, 2007 2:58 pm Reply with quoteBack to top

Please help.. I've noticed a couple weird things now after making the changes on page one. As stated they worked great until I added a new theme.

I will mention I have all blocks turned off on the right hand side.


So here are the problems:

1 News on homepage only shows in the center. Meaning it doesn't stretch over the rest of the page to where the right blocks would normally be.
http://www.comotorsports.net/PHP-Nuke/index.php

2 If I click something further down say Story Archive that will show stretched across the page.
http://www.comotorsports.net/PHP-Nuke/modules.php?name=Stories_Archive


3. When you click Forums it shows pushed to the right... so center/right with no block to the left. I don't want the blocks to the left when viewing the forum but a space is still taken up even though there's nothing there.
http://www.comotorsports.net/PHP-Nuke/modules.php?name=Forums


I can't find where to make these changes.. please someone help. Crying or Very sad
Find all posts by jeebusView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Thu Oct 18, 2007 4:28 pm Reply with quoteBack to top

Your theme is setting specific widths for those areas. I would start with theme.php and any .html files in there

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Thu Oct 18, 2007 5:30 pm Reply with quoteBack to top

Evaders99 wrote:
Your theme is setting specific widths for those areas. I would start with theme.php and any .html files in there



Sorry but I don't know what to look for... there's no valign commands or anything of that nature.

Please keep in mind.. although I've been runnning php based sites for years now I have very little knowledge... I just dig around and mess with stuff until it works.

Here is my theme.php if you could maybe help me out a little more.

hmmm... I can't seem to post it.. giving me an html error.
Find all posts by jeebusView user's profileSend private messageVisit poster's website
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Thu Oct 18, 2007 6:05 pm Reply with quoteBack to top

Ok the only way I know how to show you the files in my theme is to zip them up. These are the .html, theme.php and tables.php files which are located directly under my theme.

As I mentioned right now I'm running the code additions currently from the beginning of this thread as I'm trying to center my forum.

Here's hoping you can help me out.

http://www.comotorsports.net/img/blocks.zip
Find all posts by jeebusView user's profileSend private messageVisit poster's website
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Sat Oct 20, 2007 9:32 am Reply with quoteBack to top

Crying or Very sad
Find all posts by jeebusView user's profileSend private messageVisit poster's website
jeebus
Sergeant
Sergeant


Joined: Jun 17, 2003
Posts: 107


PostPosted: Sun Oct 21, 2007 3:07 pm Reply with quoteBack to top

can anyone please help me? This is the only place I know where to get answers none of my friends understand this stuff.

Please. Sad
Find all posts by jeebusView user's profileSend private messageVisit poster's website
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.216 Seconds - 268 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::