Kunena 6.3.8 Released

The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

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 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question "Last Post" User versus User Name lookup

More
13 years 9 months ago #1 by hardwaremonkey
I am running Kunena 1.6.1 on Joomla Version 1.5.22. My question is about a hack.

When viewing the list of topics or forums, the "Last Post" uses the name stored in the table `kunena_messages`. When viewing a thread, there is a lookup of the userid to determine the name to display. I am searching through the code trying to find the code that does the lookup. I would actually like to replace the lookup name with the name stored in the `kunena_messages` table. Can someone please direct me to the right place and/or assist with the hack to the code?

Thank you in advance.

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

More
13 years 9 months ago #2 by hardwaremonkey
Anyone? Anyone? Bueller? Bueller?

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

More
13 years 9 months ago #3 by hardwaremonkey
Located in /components/com_kunena/funcs/view.php
within the function display()
at approximately line 160, you will find:
Code:
// Choose username $this->userid = $this->profile->userid; $this->username = $this->config->username ? $this->profile->username : $this->profile->name; if ((!$this->username || !$message->userid || $this->config->changename) && $message->name) { $this->username = $message->name; }
After this, I added a simple hack:
Code:
//*********************************************************************** $this->username = $message->name; //***********************************************************************

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

Time to create page: 0.327 seconds