A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
can't get users in the members groups...it says "member add failed"
May 14, 2010
3:04 am
Member
Forum Posts: 9
Member Since:
May 13, 2010
Offline

Yes! Whatever it takes to get it to work. :) Will this be updated in the next version so I don't have to edit the core files again?

May 14, 2010
3:54 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

It's fixed in the next version already. I have just completed those changes and tests. This is really very strange as it clearly is an error – I think an exampe of a bad copy and paste. But… it works as is for us here – which is why we didn't catch it in testing – and this is the only report from a user where it actually falls over. I just hate these kinds of anomalies!

This code actually exists in 4 places and obviously it would be a good idea to correct all 4. Sorry about that! I would suggest doing the first one – the one you have reported the probem with – and then doing a quick test before doibng the other three if that is Ok with you.

The files in question are:

simple-forum/admin/panel-usergroups/forms/sfa-usergroups-add-members-form.php
simple-forum/admin/panel-usergroups/forms/sfa-usergroups-delete-members-form.php

simple-forum/admin/panel-components/forms/sfa-components-special-ranks-add-form.php
simple-forum/admin/panel-components/forms/sfa-components-special-ranks-del-form.php

In each case, the line of code we need is right near the bottom – the 'submit' line starting:

<input type="submit"…

Move across ths line of code to find the 'onclick:javascript' statement.

There are two things that need to be done to this part of the code.

(1) All of the escape characters need to be removed. In case you are unfamiliar with code, the escape characters are the forward slashes. There are 6 of these within the onclick code -remove them all.

(2) After removing the escape characters, find this part of the onclick code -  ' option').each – that first quote also needs to be removed… JUST the quote.

When these changes are done, the line of code should now look like (from the add member file):

<input type="submit" class="sfform-panel-button" id="sfmemberdel<?php echo $usergroup_id; ?>" name="sfmemberdel<?php echo $usergroup_id; ?>" onclick="javascript:jQuery('#dmember_id<?php echo $usergroup_id; ?> option').each(function(i) {jQuery(this).attr('selected', 'selected');});" value="<?php esc_attr_e(__('Delete/Move Members', 'sforum')); ?>" />

I hope this all makes sense. Please let me know if it doesn't. And I'll look forward to hearing whether this sorted the problem for you. And again – apologies for not seeing this.

 

Yellow Swordfish
May 14, 2010
4:09 am
Member
Forum Posts: 9
Member Since:
May 13, 2010
Offline

I think you meant that last example was from the del member file. Anyway, I followed your directions carefully and made the changes on the Add members file and unfortunately it didn't work. I'm still getting the "Member Add Failed" message. However, there is now no error in the error console.

 

-edit- I just edited all four files just in case and it's still not working.

May 14, 2010
5:25 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

Well this is getting more odd every time you post!
When you removed the stray quote mark in front op the work 'option', you didn't remove the space as well did you?

Yellow Swordfish
May 14, 2010
5:27 am
Member
Forum Posts: 9
Member Since:
May 13, 2010
Offline

No, I left the space and just deleted the single quote for all four files. =/

May 14, 2010
4:29 pm
Member
Forum Posts: 9
Member Since:
May 13, 2010
Offline

I've tried deactivating the other plugins to see if maybe there was some other conflict going on but that didn't help either unfortunately. Here is a screenshot of the plugins I'm using if it helps any. I really hope we can figure out how this works. This is the last obstacle I need to overcome before launching this site :D

 

http://img17.imageshack.us/img…..uginsk.jpg

May 15, 2010
8:09 am

SP Master
Forum Posts: 23698
Member Since:
Dec 10, 2006
Offline

now sure what else could be going wrong…  again, this is not an issue for anyone else (even though the original code didint look quite right – odd by itself)…

would be worth double checking the code changes…

at this point, I guess I would suggest, if you are ameniable, that you PM Andy and myself a temp wp admin account with spf admin caps (forum – admins – manage admins) and let us take a closer look…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: wazina
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 504

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7364

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10903

Posts: 79603

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23698)