| Author |
Message |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Sat Oct 01, 2005 4:39 pm |
  |
|
     |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Sat Oct 01, 2005 5:07 pm |
  |
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 |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Sat Oct 01, 2005 5:12 pm |
  |
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 |
|
     |
 |
Armon
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33
Location: Germany
|
Posted:
Sun Oct 02, 2005 12:09 pm |
  |
|
    |
 |
BuZZ
Nuke Cadet


Joined: Dec 01, 2005
Posts: 3
|
Posted:
Thu Dec 01, 2005 11:55 am |
  |
I wanted to remove the blocks from the sides on our forum as well. I did and it worked perfectly. 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. 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. |
|
|
   |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
|
Posted:
Thu Dec 01, 2005 2:37 pm |
  |
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. |
_________________ •NukeKorea Dev. Network.
•NukeKorea Laboratories |
|
    |
 |
BuZZ
Nuke Cadet


Joined: Dec 01, 2005
Posts: 3
|
Posted:
Thu Dec 01, 2005 3:51 pm |
  |
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.  |
|
|
   |
 |
rsmaverick
Nuke Cadet


Joined: Jan 24, 2006
Posts: 7
|
Posted:
Tue Jan 24, 2006 11:25 am |
  |
Hi There,
Ok I have read all of the above posts and now I shall ... post my question . 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 |
|
|
   |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Thu Oct 18, 2007 1:08 pm |
  |
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? |
|
|
    |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Thu Oct 18, 2007 2:58 pm |
  |
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.  |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Thu Oct 18, 2007 4:28 pm |
  |
|
     |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Thu Oct 18, 2007 5:30 pm |
  |
| 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. |
|
|
    |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Thu Oct 18, 2007 6:05 pm |
  |
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 |
|
|
    |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Sat Oct 20, 2007 9:32 am |
  |
|
    |
 |
jeebus
Sergeant


Joined: Jun 17, 2003
Posts: 103
|
Posted:
Sun Oct 21, 2007 3:07 pm |
  |
can anyone please help me? This is the only place I know where to get answers none of my friends understand this stuff.
Please.  |
|
|
    |
 |
|
|