×
Kunena 5.1.12.1 Released - Security release (22 Apr 2019)

The Kunena team has announce the arrival of Kunena 5.1.12.1 [K 5.1.12.1] 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. This is a security release.

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

More
1 month 2 weeks 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
1 month 1 week 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
1 month 2 days ago - 1 month 1 day 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: 1 month 1 day 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.062 seconds