Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Question Join Comprofiler Table and Display CB Fields in Post

More
15 years 8 months ago #89672 by beyond
Hello,

I was able to hack the source code of Kunena 1.5 to display user's phone number in the forum using the signature function. However, I do not know how to modify the source code of Kunena 1.6 to have the same effect.

I understand the functions are now at /funcs/view.php and the database is now #__kunena

But code modification is really difficult now. I can pay for this hack if necessary.


Can anybody help? Below is my reference source code for Kunena 1.5.

a) components/com_kunena/template/default_ex/view.php - Line 502:

// Modified code to link kunena user to cb profile. Join comprofiler table with fb table -

$kunena_db->setQuery("SELECT a.*, b.id, c.phone, b.name, b.username, b.gid ".
"FROM #__fb_users AS a " .
"JOIN `#__comprofiler` AS c ON a.userid = c.id " .
"LEFT JOIN #__users AS b ON b.id=a.userid WHERE a.userid='{$fmessage->userid}'");

b) components/com_kunena/template/default_ex/message.php - Line 420:

// Replace with signature function -

<?php
// Modified code to display phone [using the forum signature function]
$phone = $userinfo->phone;
echo $phone;
?>

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

Time to create page: 0.090 seconds