- Posts: 121
- Thank you received: 0
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.
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
- FreeThinker
-
- Offline
- Senior Member
-
Less
More
16 years 3 months ago #37446
by FreeThinker
Replied by FreeThinker on topic Re:Hack for display the birthday in frontend of kunena
Thanks for this
Please Log in or Create an account to join the conversation.
16 years 3 months ago - 16 years 3 months ago #37469
by JSmith19
Replied by JSmith19 on topic Re:Hack for display the birthday in frontend of kunena
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:
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.
16 years 3 months ago - 16 years 3 months ago #37478
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Hack for display the birthday in frontend of kunena
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 :
hope this work
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.
16 years 3 months ago #37504
by JSmith19
Replied by JSmith19 on topic Re:Hack for display the birthday in frontend of kunena
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.
16 years 3 months ago #37512
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Hack for display the birthday in frontend of kunena
I had not tested my code, so there was some errors. Now it's work, with this new package for kunena 1.5.8 :
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.
16 years 3 months ago #37514
by JSmith19
Replied by JSmith19 on topic Re:Hack for display the birthday in frontend of kunena
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
Now it works great
If I can give you points for your help I give you 100 points
Please Log in or Create an account to join the conversation.
Time to create page: 0.244 seconds