1
intel352
possible glitch in block system?
  • 2004/6/28 11:01

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


i'm working on setting up a site for Xoops, everything has gone great so far. we removed all blocks from appearing on the Forums page (to make it use the whole window), but in doing that, now any XOOPS scripts are missing the blocks as well, such as userinfo.php

since there's no listing for the XOOPS scripts in the block 'page' listings, there's no way to add the blocks back unless i add to All Pages, which i *don't* want


anyone have a workaround for this glitch?

2
chapi
Re: possible glitch in block system?
  • 2004/6/28 11:13

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


What happens if you don't select "All Pages" but every module in that list without the forums. You can do this by pressing CTRL when selecting the modules.

3
Mithrandir
Re: possible glitch in block system?

That is correct. It is a shortcoming in XOOPS that pages in the system module only show blocks set to All Pages.

Will no longer be a problem in 2.2/3.0, Skalpa says

4
chapi
Re: possible glitch in block system?
  • 2004/6/28 11:17

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


So you can handle this through your theme.html Put this at the top of this file.

<{php}>
$mod $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$GLOBALS['xoopsTpl']->assign'xoops_cmod'$dirname );
<{/
php}>


Now you have a variable xoops_cmod on which you can react through smarty, e.g. don't display the left or right blocks if the module is newbb.

5
intel352
Re: possible glitch in block system?
  • 2004/6/28 12:04

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


thx for the quick replies fellas.

thanks for the workaround suggestion chapi, i'll try it

fixed as far back as 2.2,3.0? that's a heckuva ways away.
mith, any idea of where i would have to look to fix this bug *now*, so a patch could be submitted to have it corrected in 2.1?

6
ackbarr
Re: possible glitch in block system?

since we are using the linux kernel numbering scheme, 2.1 is the unstable (beta) release for the stable release 2.2.

7
Mithrandir
Re: possible glitch in block system?

You would have to add the system module to the list of selectable modules in the blocks admin.

I won't go into more details now (I mean, I won't FIND OUT and then say it, it's not because I don't want to help) as we will have something totally different in 2.2

Also, it is not a bug, it is a shortcoming in XOOPS (no, not a feature, but not a bug either )

8
intel352
Re: possible glitch in block system?
  • 2004/6/28 13:29

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


thx ackbarr, so is there a working 2.1 out yet (a working beta)? just wondering, i'd like to see some of the features in store for 2.2 (or should i just grab the current CVS?)


mith, thx for the tip


i think you're in denial about the bug
hehe

9
Mithrandir
Re: possible glitch in block system?

I don't feel that (but of course I wouldn't )

A bug to me is a functionality, which is not working as intended.
This is not the case here as the functionality is working exactly as intended - the intentions just fell short of what you want

2.1/2.2 is still on the drawing board, I'm afraid.

Login

Who's Online

412 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 412


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits