Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse adslight AntiHarvesting AntiMalUser AntiSpam API Ban banner Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion database demo docek download Dresses editor evden eve facebook Federated floor free Gateway herre Honeypot Human IP jQuery kantor lamps Legal log logger mobile module modules Monster MyAlbum-p Networks newbb news Notices online PageRank pdf Permissions pink Plugin portal Prevention profile project Protector publisher release Rights rmcommon Room sale security Server site Size Smarty Spam statistics stem Studio tag tags tdmcreate template Theme themes userlog website Whitepaper Winter XML XooLaT xoops Xoopspoll Xortify xthemes Yolande ZendFramework

New Users

Registering user

# 136034

kennabee

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


#1 Posted on: 2010/3/10 6:08 How to disable center left & center right blocks in custom page ?
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);


Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#2 Posted on: 2010/3/10 7:06 Re: How to disable center left & center right blocks in custom page ?
hi,

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

@+

Top

kris_fr
Theme Designer
Theme Designer
Joined:
2005/12/30 18:15
From Bretagne
Group:
Registered Users
Posts: 800
(Show More) (Show Less)


#3 Posted on: 2010/3/10 7:18 Re: How to disable center left & center right blocks in custom page ?
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");
?>


Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#4 Posted on: 2010/3/11 5:57 Re: How to disable center left & center right blocks in custom page ?
bump

Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#5 Posted on: 2010/3/11 6:46 Re: How to disable center left & center right blocks in custom page ?
Blocks or columns?

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

Top

bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 858
(Show More) (Show Less)


#6 Posted on: 2010/3/12 8:24 Re: How to disable center left & center right blocks in custom page ?
columns of blocks

Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#7 Posted on: 2010/3/12 10:46 Re: How to disable center left & center right blocks in custom page ?
$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.

Top

bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 858
(Show More) (Show Less)


#8 Posted on: 2010/3/15 5:06 Re: How to disable center left & center right blocks in custom page ?
ermmm see my original post...



Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#9 Posted on: 2010/3/15 5:26 Re: How to disable center left & center right blocks in custom page ?
also tried adding

<{if $xoops_showlcblock or $xoops_showrcblock}>


in theme.html

no result

Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)


#10 Posted on: 2010/3/15 5:28 Re: How to disable center left & center right blocks in custom page ?

same problem here look at comments

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


Top

jimmyx
Quite a regular
Quite a regular
Joined:
2007/7/17 21:35
Group:
Registered Users
Posts: 337
(Show More) (Show Less)




(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]