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.