1
erzon
Making Module
  • 2005/1/15 3:58

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


i just finish my module..what i want to do is when that module click i dont want my right block be shown..


i just want the left and the center block shown and the right block is hidden


how can i do that?

2
Dave_L
Re: Making Module
  • 2005/1/15 4:56

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


...
[
color=ff0000]$xoopsOption['show_rblock'] = 0;[/color]
...
include_once 
XOOPS_ROOT_PATH '/header.php';
...

3
erzon
Re: Making Module
  • 2005/1/15 13:00

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


well i just try that one but no effect

any other way?

4
Dave_L
Re: Making Module
  • 2005/1/15 20:49

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The code I provided is correct. You'll need to provide more information.

5
erzon
Re: Making Module
  • 2005/1/16 7:39

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


...
$xoopsOption['show_rblock'] = 0;
...
include_once XOOPS_ROOT_PATH . '/header.php';
...

this code is not working i try to mkae it 0 but no change.. i still see the right block in my website..what do you think is the problem?

here my code


include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>

hblah bnlah




include XOOPS_ROOT_PATH."/footer.php";

?>


what do you think is the problem

6
Dave_L
Re: Making Module
  • 2005/1/16 10:40

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


No. You reversed those two expressions.
$xoopsOption['show_rblock'] = 0;

must precede
include_once XOOPS_ROOT_PATH '/header.php';

7
erzon
Re: Making Module
  • 2005/1/17 2:54

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


what do you mean i dont get it?

can you explain more specific

8
menochi
Re: Making Module
  • 2005/1/17 4:11

  • menochi

  • Friend of XOOPS

  • Posts: 259

  • Since: 2003/12/28


Quote:

include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>



It must be:

$xoopsOption['show_rblock'] = 0;
include(XOOPS_ROOT_PATH."/header.php");

9
erzon
Re: Making Module
  • 2005/1/17 10:52

  • erzon

  • Quite a regular

  • Posts: 211

  • Since: 2005/1/1 3


still dont work... i dont know why..

heres the code

include("../../mainfile.php");
$xoopsOption['show_rblock'] = 0;
include(XOOPS_ROOT_PATH."/header.php");
?>

what do you think still the problem?

10
sgshell
Re: Making Module
  • 2005/1/17 17:25

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


I try the code and i think is not working also......

another question....how to remove left block?

Login

Who's Online

297 user(s) are online (252 user(s) are browsing Support Forums)


Members: 0


Guests: 297


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