I'm gettiong ready for a complete overhaul under the hood of my boards, and taking her up to 3.0.1, but I wanted to check in with this mod, and verify this situation.Jackanape wrote:The sort option doesn't seem to work in my memberlist. Is this an error on my part, or is this a larger problem?
Code: Select all
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_id = 4634' at line 6 [1064]
SQL
UPDATE phpbb_users SET user_flag = '' WHERE group_id = 6434 AND user_flag <> '' AND user_flag = AND user_id = 4634
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: includes/functions_user.php
LINE: 2905
CALL: dbal_mysqli->sql_query()
FILE: includes/functions_user.php
LINE: 2796
CALL: remove_default_flag()
FILE: includes/functions_user.php
LINE: 2569
CALL: group_user_del()
FILE: includes/acp/acp_groups.php
LINE: 192
CALL: group_delete()
FILE: includes/functions_module.php
LINE: 471
CALL: acp_groups->main()
FILE: adm/index.php
LINE: 77
CALL: p_master->load_active()
Many thanks, it works now greatGremlinn wrote:OPEN:
includes/functions_user.php
FIND:REPLACE WITH:Code: Select all
if ((strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0 || strpos($attribute, 'group_flag') === '') && !$group_attributes[$attribute])
Code: Select all
if ((strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0 || strpos($attribute, 'group_flag') == '') && !$group_attributes[$attribute])
Thanks, Gremlinn!Gremlinn wrote:Jacknape: No 1.0.1 yet. I am going through the update on one of my sights now. The edits look to work nicely. I don't think the sorting is working properly for the flags. But, I will have to look a little harder at it.
andOPEN:
includes/functions_user.php
FIND:REPLACE WITH:Code: Select all
if ((strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0 || strpos($attribute, 'group_flag') === '') && !$group_attributes[$attribute])
Code: Select all
if ((strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0 || strpos($attribute, 'group_flag') == '') && !$group_attributes[$attribute])
I'm reasonably certain this is everything. Am I correct?OPEN includes/functions_user.php
FINDand comment it out :Code: Select all
remove_default_flag($group_id, $sql_where_ary[$gid]);
Code: Select all
// remove_default_flag($group_id, $sql_where_ary[$gid]);
I am having the same problem.Nicole86 wrote:I have a problem with this mod at the register formular! The user can select the flag, but after the register formular is sent, the flag will NOT saved.
When the users select the flag in the ucp profile then will the flag correct saved.
I have done the edits in "ucp_register.php and ucp_register.html" a second time, but the flag will still not saved - it display only "---" after the register and not the selected flag.
What's the problem? The flag field is in my forum a required field...