1
angaran
Question for programmers ( limited block visibility )
  • 2004/6/8 16:05

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Hi, I need some help from good programmers, please.

I want to make a block invisible ( not showed ) when the user access a certain module while I want it visible in pages not directly related to a module like the search page.

Is it possible to do this directly from the show function of the block?? How???

Reply me with any solution or advice. Thanks

2
ajaxbr
Re: Question for programmers ( limited block visibility )
  • 2004/6/8 21:11

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Go to Blocks admin and click Edit for the block you want. There you can set where the module is visible.
Happy XOOPSing.

3
Dave_L
Re: Question for programmers ( limited block visibility )
  • 2004/6/8 23:29

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


ajaxbr:

That's not what he's talking about. This was discusssed in his earlier post: https://xoops.org/modules/newbb/viewtopic.php?topic_id=20147&forum=20

4
ajaxbr
Re: Question for programmers ( limited block visibility )
  • 2004/6/9 2:56

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

Dave_L wrote:
ajaxbr:

That's not what he's talking about. This was discusssed in his earlier post: https://xoops.org/modules/newbb/viewtopic.php?topic_id=20147&forum=20

Oops! Sorry about that Dave.

angaran, you actually had top developers answering this before, so I'd guess you'll need a bit of patience. As Dave L said, hacking each module's showblock function seems to the the safest way, but still pretty hard and laborious. Something easier but not as probable to work would be creating a dummy empty module to pretend to be System.

Perhaps this is something to solve at core level... it'd be nice to have a 'System' entry on 'modules to display this block in', but it'd be super very nice to be able to create new groups for showing blocks (like having many different Top pages).

Anyway, it will take lots of effort and probably time to do it.

Edit: actually a dummy module allows you to have many Top pages (Contact us seems the easiest to strip down), but wouldn't solve this 'Any non module' problem.

5
angaran
Re: Question for programmers ( limited block visibility )
  • 2004/6/12 18:13

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


So, that's not so easy as I thought. Well, Thank you for your help.

Login

Who's Online

336 user(s) are online (267 user(s) are browsing Support Forums)


Members: 0


Guests: 336


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