Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Kunena URL in PHP?

More
14 years 2 months ago #119112 by DesoWV
Kunena URL in PHP? was created by DesoWV
Hello,

I am in need of retrieving the URL to Kunena via PHP. I have been digging around for a couple days now, perhaps I am just overlooking it.

I have found:
Code:
KUNENA_PATH

Which returns:
Code:
/home/XXXXXXX/public_html/XXXXXXX/components/com_kunena

So I need something like that that would give me the URL to Kunena. By URL I mean something like:
www.mysite.com/forums

Assuming that Kunena is under the "/forums"

I think I could pull it from the MySQL database from the **_menu table, however this certainly is not the preferred method.

Anyone have any ideas?

Thanks!

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

More
14 years 2 months ago - 14 years 2 months ago #119245 by Neocold
Replied by Neocold on topic Re: Kunena URL in PHP?
To get to kunena:
Code:
<?php echo JURI::base()."index.php?option=com_kunena"; ?>

To view a post:
Code:
<?php echo JURI::base()."index.php?option=com_kunena&func=view&catid=1&id=2"; ?>

These will work regardless of if SEO is turned on or off.

Maker of:
JomSocial and Kunena Profile Integration
JomSocial and Kunena Karma Integration
Both are available at my website.
Last edit: 14 years 2 months ago by Neocold.

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

Time to create page: 0.211 seconds