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 user contributions, (templates, modules, plugins and hacks) 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, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question Hack for display the birthday in frontend of kunena

More
16 years 3 months ago #37446 by FreeThinker

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

More
16 years 3 months ago - 16 years 3 months ago #37469 by JSmith19
When some users birthday Kunena shows the realname of the user how can I change this to username instead of the realname? And what's the meaning of the ()after the realname?

Hope someone can/will help me.

I found this code in "kunena.birthday.php" but don't know what to change:
Code:
//return the name of an user with the given userid passed in parameter function getname($datasd,$userid){ foreach($datasd as $row){ if($row->id == $userid) { return $row->name; } } }
Last edit: 16 years 3 months ago by JSmith19.

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

More
16 years 3 months ago - 16 years 3 months ago #37478 by xillibit
Hello,

I haven't updated this hack for a lot of time, this seems interested some people, so i will provide soon a version for Kunena 1.5.8.

For your problem, open the file kuena.birthday.php and replace the function getname() with this one :
Code:
function getname($datasd,$userid){ foreach($datasd as $row){ if($row->id == $userid) { if($fbConfig->username){ $return = $row->username; }else { $return = $row->name; } return $return; } } }

hope this work

I don't provide support by PM, because this can be useful for someone else.
Last edit: 16 years 3 months ago by xillibit.

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

More
16 years 3 months ago #37504 by JSmith19
Thanks for the answer but sorry same result still get the realname when I replace the &return = &row->name; with &return = &row->username; I get nothing. It was just a try. I use Kunena 1.5.8 indead so is this why it goes wrong?

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

More
16 years 3 months ago #37512 by xillibit
I had not tested my code, so there was some errors. Now it's work, with this new package for kunena 1.5.8 :

File Attachment:

File Name: hack_birth...0119.zip
File Size:52.43 KB

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 3 months ago #37514 by JSmith19
Thanks for the quick fix.
Now it works great :) but what meens the () after the username?
If I can give you points for your help I give you 100 points

:P

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

Time to create page: 0.244 seconds