1
jimmyx
How to disable center left & center right blocks in custom page ?
  • 2010/3/10 12:08

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


i use this to hide left, right, and center blocks in custom page


$xoopsTpl->assign('xoops_showrblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock'0); // 1 display right blocks
$xoopsTpl->assign('xoops_showcblock'0); // 1 display center blocks




what about center left and center right ?


tried this..it does not work



$xoopsTpl->assign('xoops_showlcblock'0); 
$xoopsTpl->assign('xoops_showrcblock'0); 

$xoopsTpl->assign('xoops_showclblock'0); 
$xoopsTpl->assign('xoops_showcrblock'0);

2
kris_fr
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/10 13:06

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

use last ghost module -->http://tutos.xoofoo.org/modules/mydownloads/visit.php?cid=2&lid=75
very easy clonable also

@+

3
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/10 13:18

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


I am using the 'ghost' module (trabis version)

it is now i want to customize the block..show or hide it

i can hide all blocks except center left and center right blocks

this is the index page


<?php


include "../../mainfile.php";
include 
"../../header.php";

redirect_header('../../index.php');

$meta_keywords "------------";
$meta_description "------";
$pagetitle "------";

if(isset(
$xoTheme) && is_object($xoTheme)) {
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);
    
$xoTheme->addMeta'meta''description'$meta_description);
} else {    
// Compatibility for old XOOPS versions
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);
}

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);

//this will only work if your theme is using this smarty variables
$xoopsTpl->assign'xoops_showlblock'1); //set to 0 to hide left blocks
$xoopsTpl->assign'xoops_showrblock'1); //set to 0 to hide right blocks
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks


?>





<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

4
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/11 11:57

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


bump

5
bjuti
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/11 12:46

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Blocks or columns?

Blocks - admin/blocks/custom block and select where it's gonna be shown.

6
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/12 14:24

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


columns of blocks

7
bjuti
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/12 16:46

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


$xoopsTpl->assign'xoops_showlblock'1); //set to 0 to hide left blocks
$xoopsTpl->assign'xoops_showrblock'1); //set to 0 to hide right blocks
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks


set to 0 to hide center blocks (column).

In case that you still have column without blocks, check you theme.html.

8
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/15 10:06

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


ermmm see my original post...


9
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/15 10:26

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


also tried adding

<{if $xoops_showlcblock or $xoops_showrcblock}>


in theme.html

no result

10
jimmyx
Re: How to disable center left & center right blocks in custom page ?
  • 2010/3/15 10:28

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18



same problem here look at comments

http://xoops-tips.com/modules/news/article.php?storyid=68

Login

Who's Online

143 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 143


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