Topic Forum Tag
-
I had assumed that the tag available in the email body “[topic-forum]” would be the URL for the overall forum but it seems to be just the forum name preceded by “http:”. I assume this is incorrect? Is it possible to fix this?
-
Hi @bobjgarrett ,
[topic-forum] returns the forum title. There’s no “http:” involved. Please check your topic template under bbPress Notify (No-Spam) > Settings > Topics tab to see if you’re adding the http string there.
There is currently no tag that provides the URL for the overall forum.
Cheers,
VinnyOh, you are right, it is because we assumed it was a URL so set it being a link which added the http.
We would like a link back to the relevant overall particular forum. Is there any easy way to achieve this?
Hi @bobjgarrett,
I’ve released the support for [topic-forum-url] and [reply-forum-url] tags in version 2.19.2.
Cheers,
VinnyYou are a star! A further addition to a super Plugin.
It seems I spoke too soon. I was awaiting the first notification to check it worked rather than creating a new topic myself which would have emailed too many members.
Just got the first notification and there is no link in the email. I inserted the URL in the same way I inserted the links for the actual thread.
Apologies, there was a bug in the code where it only worked for replies. I’ve fixed it in version 2.19.3.
still not working as a colon missing after https
Something’s off. Please ensure that you’re using [topic-forum-url] or [reply-forum-url] tags. There’s no need to add anything to it, like https string. The code calls the bbpress function
bbp_get_forum_permalinkand replaces the tags with the returned value.My test environment shows the correctly formatted URL. Please double check the tags that you are using. If the tags look correct and you don’t have any extra http string prepending the tags, then I suggest you run the following in wp-cli:
wp eval 'echo bbp_get_forum_permalink( $forum_id );'
Where $forum_id is the ID to one of your forums. You should see exactly what is returned in the tags.Keep me posted.
Cheers,
VinnyWell this is strange.
I am definitely using the right tag. I am not sure how to install wp-cli but you can see what is in my topic notification and it link using the tag via the following image:
https://www.dufour.org.uk/wp-content/uploads/2025/05/tagtest.jpg
wp-cli is a command-line tool that your host should provide, but requires that you log in via SSH.
Thanks for the screenshot. Can you please provide the screenshot of the text view so I can see the actual HTML?
The link in the email is actually sent as http://https//www.dufour.org.uk/forum/members-forum/ but the other link has only one http in it despite both being added in the same way.
Aha, I had not spotted I could also see the code view and now I can see the extra http has been added but how it got there I can only guess when using what I thought was the correct link and then modifying it to the new tag.
Hopefully now fixed.
Excellent. Glad it’s figured out.
The topic ‘Topic Forum Tag’ is closed to new replies.