1
krewl
Removing right side and even left blocks...
  • 2006/3/14 19:36

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


When viewing the forum, how can I get rid of the right side blocks?
-------------------
http://www.illinoisbmx.com

2
m0nty
Re: Removing right side and even left blocks...
  • 2006/3/14 19:48

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


turn em off in admin..

loads of info in faq section..

https://xoops.org/modules/smartfaq/faq.php?faqid=77

3
krewl
Re: Removing right side and even left blocks...
  • 2006/3/17 16:14

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


Aight, thanks for the FAQ, partly worked... but to be more clear. I can fine tune what blocks I want where ever, but I don't want the left or right columns to appear... right now I have the left blocks, which is fine and the right column with no blocks is there...

http://www.theswc.net/modules/newbb/

Something in the theme? or the mainfile.php?
-------------------
http://www.illinoisbmx.com

4
krewl
Re: Removing right side and even left blocks...
  • 2006/3/19 3:38

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


:BUMP: Still trying to get rid of the right column only while viewing a certain module? Any uses here? Or is it too deep into the core and theme relation?
-------------------
http://www.illinoisbmx.com

5
AAINC
Re: Removing right side and even left blocks...
  • 2006/3/19 4:38

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Its in your theme.html and probably your css file.

Though you could just change the theme.html, something like delete the td of the rightcolum.

you may have to play around with as it might throw the rest of theme off but it not hard to do.

If i had the theme you wanted changed, I could prolly do it in under half an hour. Easier for me to do than explain.

6
krewl
Re: Removing right side and even left blocks...
  • 2006/3/19 21:21

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


I tried to remove the right to see what it woul look like... I would have to do a some modifications of the themes.html file but my main goal is to have the option to disable the right and later the left blocks shile viewing certain parts of the site without have the columns showing that would have been containing the blocks... Right now if I just apply the settings in admin, I still get the column showing up. Still new to XOOPS so still learning..
-------------------
http://www.illinoisbmx.com

7
ladon
Re: Removing right side and even left blocks...
  • 2006/3/19 21:51

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


this might be what you're looking for:

code from Kubrick theme:

place this above all else in your theme.html:
<{php}>
    
$display_wide "kubrick newbb xoopsmembers";
    
$mod $GLOBALS['xoopsModule'];
    
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
    
$kubrick strpos($display_wide$dirname);
    
$GLOBALS['xoopsTpl']->assign'kubrick_selector'$kubrick );
<{/
php}>

In the line: "display_wide = "kubrick newbb xoopsmembers";" add any module names where you want to disable a certain column/block.

Then you can use this to remove the sideblocks all together:
<{if $kubrick_selector == TRUE}> <{else}> <td>blockstd> <{/if}>

when TRUE leave emty and only add the TD's where between de else/ /if tags (when TRUE).
I am the BEST.......... at overstating things! - Resized Image

8
Quest
Re: Removing right side and even left blocks...
  • 2006/3/19 22:01

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


You appear to have an IF missing for your rightblocks. Add the color coded to your theme from below. However if you display a single block in the right side like you now have it with your Search Block then you will still end up with the third column.

I hope this helps with the right block display problem you
are having:

Ooops- I didn't pay attention and now I see you wanted it for the Left and Right Blocks:



<{if $xoops_showlblock == 1}>

<{foreach item=block from=$xoops_lblocks}> <{include file="swc/theme_blockleft.html"}>
<{/foreach}>



<{/if}>


<--End Left Blocks EXAMPLE-->


<{if $xoops_showrblock == 1}>


<{foreach item=block from=$xoops_rblocks}><{include file="swc/theme_blockright.html"}><{/foreach}>


<{/if}>


Quest

9
krewl
Re: Removing right side and even left blocks...
  • 2006/4/3 20:22

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


Thanks to all that replied, very helpful and its has help with understanding some of the coding involved...

Kubrick coding is outstanding...
-------------------
http://www.illinoisbmx.com

10
nettcom
Re: Removing right side and even left blocks...
  • 2008/10/3 15:22

  • nettcom

  • Just popping in

  • Posts: 8

  • Since: 2002/11/14


Use my hack fo this...
edit file theme.html, before the line:
<{if $xoops_showlblock == 1}>
add this code:
<{php}> 
    
$mod $GLOBALS['xoopsModule']; 
    
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system'); 
    if (
$dirname == 'your_module_dir_name')
    {
     
$GLOBALS['xoopsTpl']->assign'xoops_showlblock'); 
    }
<{/
php}>


regards!

Login

Who's Online

217 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits