1
Skype-Fr
Add page
  • 2016/1/20 12:07

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


Hi all,

For Xoops 2.5x, ..

I can't use correctly this additional page :

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

include("footer.php");
?>
[/size]

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

Very happy new year

Gilles

2
goffy
Re: Add page
  • 2016/1/20 14:15

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


hi

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

3
Skype-Fr
Re: Add page
  • 2016/1/20 14:48

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


it is a copy error into this post.

My code is :

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

include("footer.php");
?>


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

4
noo-b
Re: Add page
  • 2016/1/20 14:59

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


try

Quote:



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


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

5
Skype-Fr
Re: Add page
  • 2016/1/20 15:48

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


Hi noo-b,

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

Maybe, my theme is too old.


6
Skype-Fr
Re: Add page
  • 2016/1/20 15:57

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27



7
goffy
Re: Add page
  • 2016/1/20 18:06

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


hi

which theme are you using?

8
Skype-Fr
Re: Add page
  • 2016/1/21 15:18

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


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.

9
goffy
Re: Add page
  • 2016/1/21 17:17

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


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

10
Skype-Fr
Re: Add page
  • 2016/1/22 16:24

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


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.

Login

Who's Online

272 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 272


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