1
peterpek
Can I change position of blocks on different pages?
  • 2004/11/11 5:10

  • peterpek

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


I am using the left and right positions for my blocks on all pages. However, I would like to give more space to the forums.

What I am trying to achieve in my forums is to turn off some of the blocks on the left hand column, and have all of the right hand column blocks moved so that they appear on the left column. That way, my forums can expand to the right hand column.

Is this possible? I tried different options but the changes seem to be global (I also tried this via editing Groups but I believe this is global).

I have also searched the forums and can't find an answer. Any ideas?

2
Stewdio
Re: Can I change position of blocks on different pages?
  • 2004/11/11 5:23

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


You can ctrl+click on the pages you want in the selection box to achieve this. For instance, highlight them all and ctrl+click the forum module to unhighlight it and save your changes.

I havn't tried this myself, but I do believe it will work.

3
peterpek
Re: Can I change position of blocks on different pages?
  • 2004/11/11 5:58

  • peterpek

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


Thanks for the quick reply.

I have tried this and yes, it works. I can turn off blocks on the forums. But how do I move a block (it is actually a block that displays sponsors banners) from the right column, to the left column?

If I change the settings for where the columns appear in Blocks Admin, the changes are global. Is it possible to set these positions just for one particular page (in my case, the forums)?

4
JasonMR
Re: Can I change position of blocks on different pages?
  • 2004/11/11 6:01

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Unfortunatly, the only way to achieve what you want to do, is to clone the blocks, as you can only set the positon of a block once.

E.g.::User Menu
- take the file /modules/system/templates/blocks/system_block_user.html
- copy and name something like system_block_user_left.html
- open /modules/system/xoops_version.php in you editor
- insert the code, telling XOOPS about the extra template; it should look something like this
$modversion['blocks'][13]['file'] = "system_blocks.php";
$modversion['blocks'][13]['name'] = _MI_SYSTEM_BNAME2;
$modversion['blocks'][13]['description'] = "Shows user block";
$modversion['blocks'][13]['show_func'] = "b_system_user_show";
$modversion['blocks'][13]['template'] = 'system_block_user_left.html';

- go into sys admin -> modules, and update the system module
- if you are not using the default template set, you will need to generate the new template
- now you can set the new user menu to appear within the newbb module, in the leftsidebar

Unfortunatly you will have to do this with every block you want to have appear in different location in your site.

....hope this helps....

5
peterpek
Re: Can I change position of blocks on different pages?
  • 2004/11/11 6:23

  • peterpek

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


Thanks, I'll try this. But it's so much work!

It would be nice if upgrades of XOOPS has an easier way of organising how Blocks display on different pages.

6
JasonMR
Re: Can I change position of blocks on different pages?
  • 2004/11/11 7:06

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


some people are working on this, but it is taking them more time than suspected......

Login

Who's Online

201 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

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

Latest GitHub Commits