4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 14, 2018, 04:15:29 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7.4] BUG in userqroups.php & solution
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7.4] BUG in userqroups.php & solution  (Read 17532 times)
vanish
Jr. Member
**
Offline Offline

Posts: 60

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« on: November 17, 2006, 11:59:49 AM »

BUG in 1.7,4 when you add latest updates ("checkbox" selector type)
Description: When "checkbox" is selected (default setting now) you don't change category permission to "No"

file:
admin/usergroups.php

find:
1
2
3
4
5
  foreach ($auth as $key => $val) {
    $sql = "DELETE FROM ".GROUP_ACCESS_TABLE."
            WHERE cat_id = $key AND group_id = $group_id";
    $site_db->query($sql);


replace with:
1
2
3
4
5
  $sql = "DELETE FROM ".GROUP_ACCESS_TABLE."
          WHERE group_id = $group_id";
  $site_db->query($sql);
  foreach ($auth as $key => $val) {


Also I recommend this changes for correct look:
find:
1
    echo "<td class=\"tableseparator\" width=\"".$col_width."%\" align=\"center\"><input name=\"allbox[".$val."]\" type=\"checkbox\" onClick=\"CheckAllCats(this, '".$val."');\" />".$lang[$val]."</td>\n";

replace with:
1
    echo "<td class=\"tableseparator\" width=\"".$col_width."%\" align=\"center\">".($permission_select_type == "checkbox" ? "<input name=\"allbox[".$val."]\" type=\"checkbox\" onClick=\"CheckAllCats(this, '".$val."');\" />":"").$lang[$val]."</td>\n";
« Last Edit: November 17, 2006, 01:58:14 PM by Jan » Logged
ripejuice
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #1 on: December 08, 2008, 10:10:49 PM »

jeevani esthar bur! don't get it
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 19 queries.