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

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question Display Post Count?

More
15 years 7 months ago - 15 years 7 months ago #61601 by WinuxFF
Replied by WinuxFF on topic Re: Display Post Count?
Hi people
I thought i should post this :)
Since i didnt found any documentation about new API yet, i had to do some reverse engineering and find out how to do this.
It is very simple, and if you use K16 i suggest you to use this, rather than SQL based hack
Again: Make sure you pass the $userid properly
Code:
<?php require_once JPATH_ROOT.DS."administrator".DS."components".DS."com_kunena".DS."api.php"; $posts = KunenaUserAPI::getPosts($userid); echo $posts->total; ?>


BTW, i would really love to see some API docs ASAP. Reverse eng. sucks, and you know that
Last edit: 15 years 7 months ago by WinuxFF.
The following user(s) said Thank You: fxstein, mstephan

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

More
15 years 7 months ago #61604 by fxstein
Replied by fxstein on topic Re: Display Post Count?
Thanks for posting this!

You would'nt have any time to help with the API documentation by any chance? B)

We could need someone that drives that....

We love stars on the Joomla Extension Directory . :-)

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

More
15 years 7 months ago #61720 by WinuxFF
Replied by WinuxFF on topic Re: Display Post Count?
I would love to contribute as much as i can, but unfortunately, as much as silly this can sound, mine coding skills are very basic and limited.
I do learn fast, can understand the code when i see it, but trust me, im not the person you would pick to explain how Kunena's API work (if you know what i mean)

Anyway, i feel honored with this proposal and i thank you, but really, someone with more PHP knowledge should do it.

My Best
Sinisa

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

More
15 years 7 months ago #62319 by mstephan
Replied by mstephan on topic Re: Display Post Count?

WinuxFF wrote: Hi people
I thought i should post this :)
Since i didnt found any documentation about new API yet, i had to do some reverse engineering and find out how to do this.
It is very simple, and if you use K16 i suggest you to use this, rather than SQL based hack
Again: Make sure you pass the $userid properly

Code:
<?php require_once JPATH_ROOT.DS."administrator".DS."components".DS."com_kunena".DS."api.php"; $posts = KunenaUserAPI::getPosts($userid); echo $posts->total; ?>


BTW, i would really love to see some API docs ASAP. Reverse eng. sucks, and you know that



I am a massive noob when it comes to all things coding, but I'm trying to learn.

Where exactly and in what file would I put this code in order to make this fix?

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

More
15 years 7 months ago #62608 by WinuxFF
Replied by WinuxFF on topic Re: Display Post Count?
Well, in template files of 3pd components, wherever you want post count to be shown.
Specifically in Jomsocial, you can either use profile.index.php or profile.header.php

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

More
15 years 6 months ago #64608 by mstephan
Replied by mstephan on topic Re: Display Post Count?
Before users view the forum, they see an error saying:
Code:
Kunena COM_KUNENA_INTERNAL_ERROR

Is there a way to fix this?

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

Time to create page: 1.479 seconds