Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 16 replies, 2 voices, and was last updated 6 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
05/24/2016 at 4:08 pm #377451
Alison
ParticipantI am using Link along with Form so that users can update their own contact info. When the user goes to the form I would like them to have the option to go back if they clicked to the form by error or out of curiosity. If they fill the form and change their minds I would like them to have the option to cancel and return to the previous or redirect screen. Also, I set the redirect screen but when the user submits the from it come back to the form.
Thank you05/25/2016 at 11:27 am #377530Steven Zahm
Keymaster@ Alison
re: When the user goes to the form I would like them to have the option to go back if they clicked to the form by error or out of curiosity. If they fill the form and change their minds I would like them to have the option to cancel and return to the previous
Maybe something like this???
add_filter( 'cn_form_edit_entry_before', 'alison_form_before' ); function alison_form_before() { $permalink = cnURL::permalink( array( 'data' => 'url', 'type' => 'home', ) ); switch ( cnQuery::getVar('cn-process') ) { case 'edit': $string = 'Cancel'; break; default: $string = 'Back to directory'; break; } echo '<a href="' . $permalink . '">' . $string . '</a>' }
re: I set the redirect screen but when the user submits the from it come back to the form.
You receive the success message, but the form is not redirected? Is that correct? Can you attach a screenshot of the Redirect settings? Can I get access so I can see? A temp admin login can be added a private reply.
05/25/2016 at 2:06 pm #377564Alison
ParticipantThanks Steve. The string about did not work yet. I added the ‘;’ at the end to make it valid. I will come back to it again later.
Thanks for the offer to take a look at settings, the account information should have come through to your hotmail account.
05/25/2016 at 2:32 pm #377570Steven Zahm
Keymaster@ Alison
Here’s a revised code snippet:
add_filter( 'cn_form_edit_entry_before', 'alison_form_before' ); function alison_form_before() { $permalink = cnURL::permalink( array( 'data' => 'url', 'type' => 'home', 'return' => true, ) ); switch ( cnQuery::getVar('cn-process') ) { case 'edit': $string = 'Cancel'; break; default: $string = 'Back to directory'; break; } echo '<a href="' . $permalink . '" style="color: black !important;">' . $string . '</a>'; }
You should post the details here as a private reply. The hotmail account is my spam blackhole … I never see that email.
05/25/2016 at 2:50 pm #377571Alison
ParticipantThis reply has been marked as private.05/25/2016 at 3:27 pm #377586Steven Zahm
Keymaster@ Alison
re: I am quite embarrassed by the number
That’s nothing, I have nearly 92 on this site. All the Connections stuff + the plugins for sales and the forums make the bulk of the plugins.
re: redirect
The redirect seems fine. When submitting a new entry, the redirect goes to the own page. Now this is where the confusion might be coming from when editing and entry, yes, it will in fact refresh to the edit page and does not redirect. This can not be changed right now.
05/25/2016 at 4:10 pm #377593Alison
Participant92? Then I’ve been getting some bad information.
Thanks for the clarification on the redirect. I will direct users to use the ‘cancel’ and wait for an update. I should be all set on this one as well.
05/26/2016 at 10:08 am #377648Steven Zahm
Keymaster@ Alison
re: 92? Then I’ve been getting some bad information.
It’s not necessarily the number it is the quality that matters the most. Many of these are also single purpose/do one thing type of plugin. You definitely can not add 92 any old plugin without vetting its quality. Which honestly is not something easily done.
Hope that give you a bit more info.
05/28/2016 at 5:37 pm #377999Alison
ParticipantIt makes sense. Thanks.
In regards to the redirect. May I ask you to take the user back to the directory instead of ‘home’? Sorry to come back again.
05/31/2016 at 8:34 am #378184Steven Zahm
Keymaster@ Alison
re: May I ask you to take the user back to the directory instead of ‘home’?
That is what the snippet I gave does… ‘home’ is the directory home page which is the same as the main directory page. If you want it to go to some specific page, change the code to the URL you want it to go to.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.