1
sailjapan
Blocks admin usabiity: Could do better.

xoops 2.3.x

Blocks admin usabiity:

After submitting a change in blocks preferences, admin>system>blocks keeps defaulting to show me what blocks system module produces and that registered members can see on the top page.

This is highly irritating.

Would it be possible to have blocks admin settings stay where you'd set it before clicking on submit?

I think it would make more sense and save a heap of refreshes.

Anybody agree?
Never let a man who does not believe something can be done, talk to a man that is doing it.

2
Mamba
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 5:32

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I agree with you!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
vietnam
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 8:03

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


I agree with you!

4
nmshah
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 10:08

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


What changes should be made in which files to do the same?

5
Anonymous
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 10:22

  • Anonymous

  • Posts: 0

  • Since:


I'd like to see an option in preferences so users can choose their settings.

However, and as a stop-gap, I think the default settings should be:

Top Page
All Modules
Anonymous
Visible

i.e. what the non-logged in visitor would see when visiting the homepage.

I can't access my installation here at work, so can anyone advise what needs to be changed to make this happen?

6
ghia
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 11:20

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Maybe because i'm used to it, but the block handling in 2.2.x seems easier. In the overview it shows all visible blocks only. Other blocks are selectable by the module and can then be activated. It allows also a finer page display selection.

7
Anonymous
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 11:39

  • Anonymous

  • Posts: 0

  • Since:


I can see that too - I much prefer blocks admin in 2.3.x to 2.0.x (from whence i came!).

However, my prefeernce stems from the fact that I don't often want to alter the blocks that display on my homepage; I do edit their settings quite often, though.

I would prefer to see what I already have displayed rather than everything that I could have

8
nmshah
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 12:19

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


In order to change the default selection for blockadmin in XOOPS admin you need to edit http://yoursite.com/modules/system/admin/blocksadmin/blocksadmin.php around lines 50 to 53. Find the foloowing codes:

Quote:

$selmod = isset($_GET['selmod']) ? intval($_GET['selmod']) : -1;
$selgen = isset($_GET['selgen']) ? intval($_GET['selgen']) : 1;
$selvis = isset($_GET['selvis']) ? intval($_GET['selvis']) : -1;
$selgrp = isset($_GET['selgrp']) ? intval($_GET['selgrp']) : XOOPS_GROUP_USERS;


Now change the entry in red to suit your need


line one with intval($_GET['selmod'] is for blocks visible in, where
Quote:

-2 is for all types
0 for all pages
-1 for top page

line two with intval($_GET['selgen']) is for generated by, where
Quote:

-1 is for all types
0 is for custom modules
1 is for system module

line three with intval($_GET['selvis']) is for visible, where
Quote:

-1 is all types
0 is no
1 is yes

line three with intval($_GET['selgrp']) is for group access, where
Quote:

XOOPS_GROUP_USERS by assumption stands for registered users

but what are the other options for selgrp, I have not been able to figure out. Can someone pls help me in finding what will be the option for anonymous users.

-----------------edited---------------------
temporary solution for selgrp is change XOOPS_GROUP_USERS to 3 for anonymous user.

9
nmshah
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 12:53

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Quote:
I'd like to see an option in preferences so users can choose their settings. However, and as a stop-gap, I think the default settings should be: Top Page All Modules Anonymous Visible i.e. what the non-logged in visitor would see when visiting the homepage. I can't access my installation here at work, so can anyone advise what needs to be changed to make this happen?


The new settings for above will be

$selmod = isset($_GET['selmod']) ? intval($_GET['selmod']) : -2;
$selgen = isset($_GET['selgen']) ? intval($_GET['selgen']) : -1;
$selvis = isset($_GET['selvis']) ? intval($_GET['selvis']) : 1;
$selgrp = isset($_GET['selgrp']) ? intval($_GET['selgrp']) : 3;

10
Anonymous
Re: Blocks admin usabiity: Could do better.
  • 2008/12/9 13:22

  • Anonymous

  • Posts: 0

  • Since:


Excellent - will try this when I get home this evening.

Thanks for taking the trouble to work it out

Login

Who's Online

292 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 292


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