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?
-------------------
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?
-------------------
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 <if> uses here? Or is it too deep into the core and theme relation?
-------------------
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 <td> 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 <td> column showing up. Still new to XOOPS so still learning..
-------------------
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>blocks</td> <{/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:

<div id="leftcolumn">
<!-- Display left blocks start-->
<{if $xoops_showlblock == 1}>
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}> <{include file="swc/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->
</div>
</td>
<{/if}>
</td>

<--End Left Blocks EXAMPLE-->

<!-- Display Right blocks start if any-->
<{if $xoops_showrblock == 1}>
<td id="rightcolumn" align="left" style="padding-left:3px;padding-right:8px;width:218px" valign="top" background="<{$xoops_imageurl}>images/block-rt-back.gif">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}><{include file="swc/theme_blockright.html"}><{/foreach}>
<!-- End right blocks loop -->

<{/if}>
</td>

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...
-------------------
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

178 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

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

Latest GitHub Commits