Kunena 7.0.2 Released

The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/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 Hot Thread Icons

More
15 years 8 months ago #50811 by freddiepete
Hot Thread Icons was created by freddiepete
I know we have the choice of topic icons for our threads which I think is great. But a friend I'm building the Kunena forum for is requesting for hot topic icons like the screen shot attached. Has anyone ever done hot topics like this before?

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

More
15 years 8 months ago #50815 by sozzled
Replied by sozzled on topic Re: Hot Thread Icons
Interesting idea. How do you "decide" what is a hot topic?

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

More
15 years 8 months ago #50821 by Cerberus
Replied by Cerberus on topic Re: Hot Thread Icons
hot topics on most forum components is decided by the system using the amount of intrest in the topic, if there is lots of intresst in a topic the system marks it as a hot topic and changes the topic icon acordingly, your " k1.6 a moderators view " would be classed as a hot topic.

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

More
15 years 8 months ago #50822 by sozzled
Replied by sozzled on topic Re: Hot Thread Icons
... in other words, the number of "views". :unsure:

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

More
15 years 8 months ago - 15 years 8 months ago #50825 by Cerberus
Replied by Cerberus on topic Re: Hot Thread Icons
yes but done as an image rather than text so it doesnt just get lost in the masses of threads.

i may work on this one on friday see if it can get it working :)
Last edit: 15 years 8 months ago by Cerberus.

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

More
15 years 8 months ago - 15 years 8 months ago #50827 by sozzled
Replied by sozzled on topic Re: Hot Thread Icons
Cerberus wrote:

yes but done as an image rather than text so it doesnt just get lost in the masses of threads.

Yes, I understand the requirement. I'm just asking what's the basis of when the hot topic visual indicator is generated.

This isn't too difficult to do. I would approach this by creating an array of the ids of, say, the top 10 (?) most-viewed threads. You can be achieve this by storing the results of a query, something like:

SELECT thread, SUM(hits), subject, catid, id FROM #__fb_messages GROUP BY thread ORDER BY total_views DESC LIMIT 0,10;

Then, when you are displaying the topics on the page, see if the id of the topic = the id of one of an element in the array I've just mentioned and, if it is, highlight the topic with a "hot topic" flag. That's the theory and involves extra processing at the host, but it shouldn't slow things down too much.

I'll leave others to work out the specific PHP coding. B)
Last edit: 15 years 8 months ago by sozzled.

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

Time to create page: 0.252 seconds