xoops forums

Skype-Fr

Just popping in
Posted on: 2016/1/20 12:07
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#1

Add page

Hi all,

For Xoops 2.5x, ..

I can't use correctly this additional page :

<?php
include("mainfile.php");
include(
"header.php");
$xoopsOption['show_lblock'] = 0//0 for no right block
?>
My HTML

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


Right column is always visible !!
I don't want to see the right column. How I do it ?

Very happy new year

Gilles

goffy

Quite a regular
Posted on: 2016/1/20 14:15
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#2

Re: Add page

hi

doesn't mean "show_lblock" => show left block?

Skype-Fr

Just popping in
Posted on: 2016/1/20 14:48
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#3

Re: Add page

it is a copy error into this post.

My code is :

<?php
include("mainfile.php");
include(
"header.php");
$xoopsOption['show_rblock'] = 0//0 for no right block
$xoopsOption['show_lblock'] = ;
?>
My HTML

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


with the same probleme : Right column is always visible !!

noo-b

Just can't stay away
Posted on: 2016/1/20 14:59
noo-b
noo-b (Show more)
Just can't stay away
Posts: 456
Since: 2007/10/23
#4

Re: Add page

try

Quote:

<?php


include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");

$meta_keywords = "dummy, page, keywords";
$meta_description = "dummy page description";
$pagetitle = "dummy page title";

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', 0); //set to 0 to hide right blocks
$xoopsTpl->assign( 'xoops_showcblock', 1); //set to 0 to hide center blocks
?>

<!--DUMMY HTML CONTENT-->
test
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

Skype-Fr

Just popping in
Posted on: 2016/1/20 15:48
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#5

Re: Add page

Hi noo-b,

Thank about you code but there is the same problem : right column is always visible.

Maybe, my theme is too old.

Skype-Fr

Just popping in
Posted on: 2016/1/20 15:57
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#6

Re: Add page

Same problem here :

https://xoops.org/modules/newbb/viewtopic.php?topic_id=71089

goffy

Quite a regular
Posted on: 2016/1/20 18:06
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#7

Re: Add page

hi

which theme are you using?

Skype-Fr

Just popping in
Posted on: 2016/1/21 15:18
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#8

Re: Add page

For 5 years ... I don't know because there was too many changes, even directory name, title, all content files and I did add css & js, ...

However, I just found the original changelog file :

Xdt Standard Theme Template Changelog

Documentation on line 
--> http://dev.xoofoo.org/Xdt_Standard/
Videos on line --> http://tv.xoofoo.org

============================
Version 1.2 ( for xoops 2.5.)
============================
remove extras.css now in xoops.css (kris_fr)
remove system blocks override now in system module (kris_fr)
change jQuery call (kris_fr)
change xoops.css call (kris_fr)
update xo_footerstatic.html for xoops 2.5.(kris_fr)
cleaning code for xoops 2.5.(kris_fr)
add new class in body tag for IE fix (kris_fr)
add in meta apple-touch-icon (kris_fr)
add new meta X-UA-Compatible with edge/chrome (kris_fr)
add new meta "viewport" for mobile (kris_fr)

============================
Version 1.1 Beta ( for xoops 2.4.)
============================
rename blockfooter.css in footer.css with css footer (kris_fr)
fix word-wrap in xoopsCode and xoopsQuote (kris_fr)


I see that this theme is v2.5.x compatible !

What do you think about that ?
G.

goffy

Quite a regular
Posted on: 2016/1/21 17:17
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#9

Re: Add page

hi

I downloaded the original theme "xdt_standard"

open xotpl/xo_thm_parameters.html
goto line 29 (in original file)

replace
assign var=theme_view_rightcolumn value=1

by
assign var=theme_view_rightcolumn value=0


in the original theme it works

Skype-Fr

Just popping in
Posted on: 2016/1/22 16:24
Skype-Fr
Skype-Fr (Show more)
Just popping in
Posts: 28
Since: 2006/4/27
#10

Re: Add page

Hi

I could not find 'xo_thm_parameters.html'.
Normal because my theme is not "xdt_standard" (bad changelog, sorry error of me).
I found the original theme : it is kris115

I just found the solution !
Into theme.html, replace this line :

<{if $xoBlocks.canvas_right}>

BY
<{if $xoBlocks.canvas_right and $xoops_showrblock}>


that is perfect.

Regards
G.