1
angaran
Advanced blocks administration
  • 2004/5/21 15:07

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Hi, I'm not sure this is the correct forum to post but I'll go on.
Is there a way ( even with core hacks )to make certain blocks not visible in certain modules but still visible in not nodule related pages like the search.php page or the user.php page??

For example I don't want to see the "recent downloads" blockin a module but I want to see it in the search page.

Please halp me, It's very important.

2
Dave_L
Re: Advanced blocks administration
  • 2004/5/21 15:23

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't have time to provide full details, but the approach I would try is to locate the .php file that generates the content for that block, and edit the block's "show" function. Add code to check which module is the current one, and return an empty array if you don't want the block to display.

Maybe someone else can go into more detail.

3
angaran
Re: Advanced blocks administration
  • 2004/5/22 19:25

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Not too smart but useful. Thank you very much.
If anyone had an idea I would appreciate it.

4
angaran
Re: Advanced blocks administration
  • 2004/5/26 16:46

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Ooops, I'm not able to do this. What about the code to use???

5
Herko
Re: Advanced blocks administration
  • 2004/5/26 17:02

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Maybe I'm wrong (have been in the past ) but in the blocks admin you can set the module pages the block is shown on. Select the system module to show in the search page, but don't select the downloads module if you don't want it shown there...

Herko

6
Mithrandir
Re: Advanced blocks administration

You put the finger on the problem right away, Herko

How does one go about selecting a block to be visible in the system module but not downloads? There is Top page, All pages and specific modules - system module is not there, so I guess it only shows blocks set to All pages.

7
Herko
Re: Advanced blocks administration
  • 2004/5/26 17:41

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Ah... how hard is it to add the system module to the list of modules then?

Herko

p.s. see I was wrong again... bad track record lately

8
angaran
Re: Advanced blocks administration
  • 2004/5/27 6:09

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


I have understood the problem, I'm sure the best solution would be the Dave_L's one but I don't know very much modules development so Im not able to write the code to do what Dave_L suggested me. Can you help me???

9
angaran
Re: Advanced blocks administration
  • 2004/5/29 11:38

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Please, It's very important!!!!

10
Mithrandir
Re: Advanced blocks administration

but it is not exactly easy, I am afraid.

Login

Who's Online

308 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 308


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