Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 2.0, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question How to check the subject of a thread inside users profile?

More
11 years 3 days ago - 11 years 3 days ago #1 by paraflyer
Howdy,

unfortunately I haven't found any solution for my "problem". :blush:

This file...
/components/com_kunena/template/$template/html/user/default_social.php
...currently has a custom change (by me) to check the database for an entry I made. If there is (for example) a number inside the database, this number comes up inside the php-file. If not nothing will happen. Great! It works!

Now I'd like to changed this. Which are the variables I could use inside this php-file to check the users posts (of the shown profile) for a thread/subject he wrote. Imagine user 'xyz' has written a subject called 'xyz (test)' inside a defined category-id of the forum and I'd like to check this.

If he HAS written I'd like to get a TRUE or '1', if not a FALSE or '0'.

I know I have to check the table '_kunena_messages->subject' but don't know how to access this. Normally I use pre-defined variables, but I don't know where to get this information now.

Would be happy if you help me! :-)
Last edit: 11 years 3 days ago by paraflyer.

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

Time to create page: 0.384 seconds