First post here so hi 😀Β
I am busy converting my site to work on WPForo from SMF, so lot's of work ahead lol, but enjoying WPForo so far.
I have added this shortcode to a page : [wpforo item="topic" id="4"]
All is great, the topic shows on the page along with existing replies andΒ the editor to add a reply.
When you reply to the topic you are however returned to the topic on the Forum and now the page you replied on.
Is there a way to return the member back to the original page instead of bumping them back to the forum each time?
Thanks for the advice in advance.
Seems like I am the only one adding a topic to an external page 😪Β
When you reply to the topic you are however returned to the topic on the Forum and now the page you replied on.
Is there a way to return the member back to the original page instead of bumping them back to the forum each time?
Hi @nolan59,
Please read this topic, the shortcode pages are not a standalone forum pages, the shortcodes are only designed to display a certain topic not to create a separate forum: https://wpforo.com/community/postid/43746/
Thank you for the reply Robert. I appreciate the help. 😀Β
That's odd as embed topic shortcode also shows the user a reply box so you would think that the embedded topic would return the user back to the same page after a reply.
Do you think I could achieve that by using the
- 'wpforo_after_add_post' - args: (array)$post, (array)$topic
hook?
actually there is an easy way for it to work like this and all it will take is adding one or two lines of code to do it.
When the reply form is sent, Wordpress adds a hidden field called "_wp_http_referer" which contains the current page url. Wordpress uses this to do security checks.
The WPForo shortcode could also read this hidden field and use it to direct the user back to the page they were on instead of the forum topic as it currently does.
If there is anybody that knows the code and can point me to the file that processes the form, I could add the redirect into my forum's file.