Support Forum

Forum ranks not working

MA Marcel
Marcel
Member

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

13 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…

MA Marcel
Marcel
Member

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

Thanks for the quick response 

Kind Regards,

Marcel

MP Mr Papa
Mr Papa
Member

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

JG Jessica Gregory
Jessica Gregory
Member

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

U
Member

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

YS Yellow Swordfish
Yellow Swordfish
Member

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.

JG Jessica Gregory
Jessica Gregory
Member

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

MP Mr Papa
Mr Papa
Member

if all well, we may try to push out a minor update this weekend to fix this…

MP Mr Papa
Mr Papa
Member

we shall see how it goes… hope we can do it…

MP Mr Papa
Mr Papa
Member

version 5.7.1 has been pushed out this morning to address this forum ranks issue…