×
Kunena 5.1.15 Released (27 Oct 2019)

The Kunena team has announce the arrival of Kunena 5.1.15 [K 5.1.15] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

Solved How do I get a post URL via the post ID?

More
5 months 1 week ago #1 by ItsMichael
Hi,

I'm trying to create a custom plugin that will email the admin the modified posts weekly. The URL of each post would need to be included in this email.

I was able to query the modified posts table successfully but I'm unsure on how I can get the URL of each post. I have the post ID and other useful information though.

Is there a function that Kunena provides for this? If so or not, how can this be done?

I hope there is someone that can help me with this question.

Thanks!

Please Log in or Create an account to join the conversation.

More
5 months 2 days ago #2 by ItsMichael
Apparently not. I tried looking into the documentation with no luck. I'm hoping a developer can respond to help me figure this out. The project this is for is pretty urgent as well.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #3 by ItsMichael
Finally got some help on this from Jelle through email.

For anyone having the same question as me, this is what worked:
$message = KunenaForumMessageHelper::get($messageId);
$category = $message->getCategory();
$url   = $message->getUrl($category);
Last edit: 4 months 3 weeks ago by ItsMichael.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.076 seconds