bazchas
Forum Replies Created
-
Forum: Plugins
In reply to: [CMS Tree Page View] custom post childrenI have this issue to. I want to be able to organise custom posts under a tree. I can only add new custom posts inside another, I cannot drag existing custom posts to be a child of another.
Please advise. Thanks.
Hi Jason,
Just wanted to say a big thank you for getting this issue fixed so quickly.
Have just tested and all working brilliantly.
Many thanks for all the hard work!
Brilliant, thanks very much Jason.
I’ve bookmarked the support link now so will be sure to use that in future.
Will update if I have anymore relevant information.
Thanks again!
Hi Guys,
Sorry to bump but can I get a response on this please as we need this functionality to go live and as things stand we have no way to implement the multi form functionality.
Many Thanks.
I’ve also had problems with this one. The devs tell me that the ‘user_register’ hook should always be fired. However, during my testing I couldn’t for the life of me get it to fire during a pro-form registration.
My solution (as I needed a custom redirect anyway) was to attach a filter to ‘ws_plugin__s2member_login_redirect’ that calls the WP-Affiliate functions accordingly. I won’t list my code here as it does a lot more and is probably overly complex. However for reference the functions you will need to call are:
handle_wp_user_login – For logging the user into the affiliate platform (assuming the id’s match)
wp_aff_handle_wp_user_registration – for registering the user as an affiliate.Not saying this is the best way, but it works.
Hope it helps!Hey Christian,
Just a bit of further info. I’ve been doing a bit more testing and have discovered that the ‘wp_login’ hook doesn’t appear to get fired either for non admin logins.
Again, I’ve attached a logging function to both the ‘wp_login’ and wp_logout’ hooks. With an admin user both hooks get fired as I would expect. However, with a non-admin user only the ‘wp-logout’ hook is fired.
Is this by design or a potential issue?
Again, I’ve identified a possible work around that I can use to implement the functionality I require. That said I’d just like to understand why these hooks aren’t being fired?
Best wishes,
Nigel.
Response from Jason via the support center.
Closing as resolved.
I’m now closing this as resolved.
For any that are interested I managed to achieve it without modifying the core plugin code by using jQuery to remove the script from the page on document ready and the reinject it after the modal is populated with the form.
Works a charm now!
Hi Christian,
Thanks very much for your response.
I’ve been reading over the forum and can see as you say that I could probably achieve this by using custom code and some of the API functionality you mention.
I’m happy to do this, or indeed raise an issue over on GitHub. However, before I do I just wanted to understand the reason why the ‘user_register’ hook isn’t being fired when a user registers from the ProForm. From reading the WP-Affiliate forum they have worked with you guys to integrate the two plugins and I have seen posts from Jason saying that the hook is fired from S2. I’ve also spotted it in your functions in the code, it just doesn’t seem to get fired when I need it!
If this is working as intended then I’ll implement with my own code, just wanted to make sure before I start down that route.
Many thanks in advance!
Hey guys,
Sorry to bounce but is there any chance of an update on this. It’s fairly time critical as we’re pushing towards the site launch and this is a bit of a show stopper.
Any assistance would be very much appreciated.
Best wishes.
Hi Alvalyn,
You might want to try simply using the slug rather than the whole URL, I am using this method with the authorize.net pro form and it works a charm.
I would use
success="/thank-you/"
and see if that gets you where you need to be.Best wishes.
Hi Cristian,
Apologies for the delay in getting back to you I’ve been frantically coding away on a solution. Have managed to achieve the desired result now through some curl calls and using some of the menu page logic.
Thanks very much for the pointers, got there in the end!