1
pulapol
XOOPS Check Boxes
  • 2009/12/26 13:36

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


Look at your site

http://xxxxxxx/search.php

http://xxxxx/modules/system/admin.php?fct=groups


depends on how many modules and how many blocks/custom blocks you have

you will see there are too many check boxes

and there is no select all or unselect all button

this is so unfriendly especially during creating new groups...you have to select one by one of the checkboxes

Hope too see a better XOOPS solution for this...

2
Mamba
Re: XOOPS Check Boxes
  • 2009/12/28 2:18

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


Good point.

Filed in requests as # 2922073

3
pulapol
Re: XOOPS Check Boxes
  • 2010/3/7 0:34

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


any quick hack to have select all/unselectall checkboxes in system groups ?


4
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/10 12:04

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


+1

5
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/11 11:52

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


ok i try to add check all/uncheckall in groups

based on this code
http://www.hscripts.com/scripts/JavaScript/select-all-checkbox.php

in include/xoops.js, add this at end of the file

checked=false;
function 
checkedAll (groupform) {
    var 
aadocument.getElementById('groupform');
     if (
checked == false)
          {
           
checked true
          
}
        else
          {
          
checked false
          
}
    for (var 
=0aa.elements.lengthi++) 
    {
     
aa.elements[i].checked checked;
    }
      }




in class/xoopsform/formcheckboxes.php


somewhere in line 237

replace this
$ret .= '';



with
$ret .= 'Check/Uncheck All';


result: it is working.....but when i select the check all checkbox in group setting all the checkboxes are selected...

supposed only the checkboxes in each row are selected
system admin rights
module admin rights
module access rights

etc and so on

help

this is almost working perfectly

demo:
http://img268.imageshack.us/img268/939/demoaa.png

6
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/12 14:26

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


bump

7
jimmyx
Re: XOOPS Check Boxes
  • 2010/3/15 10:27

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


sorry bumping this again

8
sarahmx
Re: XOOPS Check Boxes
  • 2010/4/27 11:12

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Hi jimmy have you solved this ?

9
jimmyx
Re: XOOPS Check Boxes
  • 2010/5/7 14:34

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


anyone ?

10
ghia
Re: XOOPS Check Boxes
  • 2010/5/7 15:22

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You have to give the checkboxes of one row a different name then the ones from the other rows and let the check all box from this row, set or unset only the ones with this name.

Login

Who's Online

188 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

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

Latest GitHub Commits