Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum ranks not working
Avatar
Marcel
Member
sp_UserOfflineSmall Offline
Aug 13, 2016 - 5:35 pm

Hi there,

It's not possible anymore to add users to ( custom created ) forum ranks.

I can select the users and move to the selected list and click on add members, but nothing happens.

Regards,

Marcel

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 13, 2016 - 6:02 pm

looks like I can confirm this behavior via a quick test...  something must have gotten knocked with the js overhaul... will open a ticket for research and a solution...  thanks for the heads up...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2016 - 2:41 am

okay, have figured out what is going on...  our form action query argument is conflicting with the wp ajax action query argument...

below is the handful of changes needed to be made...

in file simple-press/admin/panel-components/ajax/spa-ajax-components..php, around line 58, change

switch ($_GET['action']) {

to

switch ($_GET['targetaction']) {

and the in file simple-press/admin/panel-components/forms/spa-components-special-ranks-add-form.php, change

$ajaxURL = wp_nonce_url(SPAJAXURL."components-loader&saveform=specialranks&action=addmember&id=$rank_id", 'components-loader');

to

$ajaxURL = wp_nonce_url(SPAJAXURL."components-loader&saveform=specialranks&targetaction=addmember&id=$rank_id", 'components-loader');

and the in file simple-press/admin/panel-components/forms/spa-components-special-ranks-del-form.php, change

$ajaxURL = wp_nonce_url(SPAJAXURL."components-loader&saveform=specialranks&action=delmember&id=$rank_id", 'components-loader');

to

$ajaxURL = wp_nonce_url(SPAJAXURL."components-loader&saveform=specialranks&targetaction=delmember&id=$rank_id", 'components-loader');

and the in file simple-press/admin/panel-components/forms/spa-components-special-ranks-form.php, change

$ajaxURL = wp_nonce_url(SPAJAXURL.'components-loader&saveform=specialranks&action=newrank', 'components-loader');

to

$ajaxURL = wp_nonce_url(SPAJAXURL.'components-loader&saveform=specialranks&targetaction=newrank', 'components-loader');

and change

$ajaxURL = wp_nonce_url(SPAJAXURL.'components-loader&saveform=specialranks&action=updaterank&id='.$rank['meta_id'], 'components-loader');

to

$ajaxURL = wp_nonce_url(SPAJAXURL.'components-loader&saveform=specialranks&targetaction=updaterank&id='.$rank['meta_id'], 'components-loader');

basically, that changes 'action' to 'targetaction' in those changes...

Avatar
Marcel
Member
sp_UserOfflineSmall Offline
Aug 14, 2016 - 4:40 am

That's the solution, it's working again.

Thanks for the quick response 

Kind Regards,

Marcel

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2016 - 1:03 pm

thanks for confirming the fix!  And sorry for the issue...

Avatar
Jessica Gregory_1
Rookie
sp_UserOfflineSmall Offline
Aug 16, 2016 - 1:48 am

Will there be a new bug fix release that will fix the issue, or should we just go ahead with the code? 

 

Also, I must admit I am very confused as to where these codes are located. Any way you could offer a step by step on where to get to simple-press/admin/panel-components ? What exactly to click on my dashboard? 

 

Sorry, big newbie here! 

 

Thanks

Avatar
Hulk1977
Member
sp_UserOfflineSmall Offline
Aug 16, 2016 - 3:15 am

Jessica Gregory_1 said
Will there be a new bug fix release that will fix the issue, or should we just go ahead with the code?  

Also interested in this

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 16, 2016 - 4:04 am

Jessica: Fully understand. It actually means using an editor (such as Notepad on Windows or Textedit on OSX) to make the changes in the code. It is actually pretty simple to do but I can also understand it can be daunting.

I rather think we will need to issue an update but probably will not be able to do so until this coming weekend at the earliest. And I apologise for that. Discussions on how and when will start today.

As a last resort, I am willing to make edits for any user who is nervous of going for it but I would need their FTP  credentials to their server (which can be sent to me in a PM) - but I realise that is the kind of information you may feel uncomfortable disclosing.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jessica Gregory_1
Rookie
sp_UserOfflineSmall Offline
Aug 16, 2016 - 11:31 am

Thank you very much. Personally, my forum can survive without custom ranks for a little while. Others may need your help! 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 16, 2016 - 2:50 pm

Thanks 🙂

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625