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.

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
15 years 2 weeks ago #31 by FreeThinker

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

More
15 years 2 weeks ago - 15 years 2 weeks ago #32 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; } } }
Attachments:
Last edit: 15 years 2 weeks ago by JSmith19.

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

More
15 years 2 weeks ago - 15 years 2 weeks ago #33 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: 15 years 2 weeks ago by xillibit.

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

More
15 years 2 weeks ago #34 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
15 years 2 weeks ago #35 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 KB

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

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

More
15 years 2 weeks ago #36 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.

More
15 years 2 weeks ago #37 by xillibit
Like you can see on the first page of this thread, you have the ages of the users :


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
15 years 2 weeks ago #38 by JSmith19
ok strange but on mine no ages shows up only the () In profile I set Yes for Show Ages On the Birthday Module the shows correctly.

For now thanks again.

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

More
15 years 2 weeks ago #39 by FreeThinker
Thanks xillibit ;)

*i was going to ask you for code for 1.5.8 :P

**will try it later on

Thanks once again

cheers

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

More
15 years 2 weeks ago - 15 years 2 weeks ago #40 by FreeThinker
Hi there All...and Xillibit

I've just put this in my website forum.

Already converted the code for my language...Portuguese...and tested it...all's OK ;)



*I'll send the code already translated for Portuguese language
(if some may need / want it) :P
Code:
define('_STAT_NUMBER_BIRTHDAY_TODAY', 'Utilizadores que fazem anos hoje'); define('_STAT_NAME_TODAY_USERS', 'Aniversariante(s) hoje'); define('_STAT_NULL_BIRTHDAY_TODAY', 'Nenhum'); define('_STAT_NULL_USER_BIRTHDAY', 'Nenhum Aniversariante(s)'); define('_KUNENA_BIRTHDAY_GREETINGS', 'Muitos Parabens!!!'); define('_KUNENA_BIRTHDAY_HACKS_SETTINGS', 'Definições de Aniversário'); define('_KUNENA_BIRTHDAY_HACKS_SOURCE', 'Definir qual a fonte a usar para aniversário'); define('_KUNENA_BIRTHDAY_HACKS_SOURCE_DESC', 'Se quiser usar data do CB e não do Kunena, podes alterar esta definição');

As for in English language...I wonder where / how i can change the text *underline in red*



There is one issue, that i found / get...
when accessing kunena thru my joomla Admin control panel...it opens in a full window disappearing my joomla Menu...and it appears in / with other font text, and images are strange...overall it breaks a little the kunena frame...



Thanks in advanced ;)

*P.S. - I am using the default_ex_black Template
Last edit: 15 years 2 weeks ago by FreeThinker.

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

Time to create page: 0.635 seconds