- Posts: 9
- Thank you received: 0
Kunena 7.0.7 Released
The Kunena team has announce the arrival of Kunena 7.0.7 [K 7.0.7] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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 Birthday Modul
15 years 10 months ago #57737
by mervyn
Replied by mervyn on topic Re: Birthday Modul
Thank you! Now the error message is gone but there are still no birthdays displayed.
I installed another modul, mod_birthdays for CB, and it works just fine with the same field. But: I'd rather use the Kunena module since I'd love to have a topic for each birthday. What could be another error I made configuring Kunena?
I installed another modul, mod_birthdays for CB, and it works just fine with the same field. But: I'd rather use the Kunena module since I'd love to have a topic for each birthday. What could be another error I made configuring Kunena?
Please Log in or Create an account to join the conversation.
15 years 10 months ago #57744
by svanschu
Kunena Contributor & Language Coordinator
Kunena Birthday Module | Kunena LaTeX Plugin | SchuWeb Sitemap with free Kunena Plugin
Always up to date with Twitter
Replied by svanschu on topic Re: Birthday Modul
Hi, just came back from holiday, I will look into it. Thank you for the report.
Kunena Contributor & Language Coordinator
Kunena Birthday Module | Kunena LaTeX Plugin | SchuWeb Sitemap with free Kunena Plugin
Always up to date with Twitter
Please Log in or Create an account to join the conversation.
15 years 10 months ago - 15 years 10 months ago #58038
by iLucato
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Replied by iLucato on topic Re: Birthday Modul
Hey LDA, thanks for sharing this module!
Here are some feedback:
1st, here goes attached the translation for Brazilian Portuguese (Portuguese-BR - pt-BR)
2nd, here are some comments:
- In the .ini file, we don't get to translate the "Kunena Birthdaybot" text;
- In the .ini file, we don't get to translate the "default" in the template dropdown list;
- At the reference time, in English, the tiptool is showing "SW_KBIRTHDAY_TIMEFROM_DESC" instead of the correct description;
- I'm not native with English too, but I think there is a misspelling at "Fill in the name off", it should be "of" instead "off";
- on the same line there is another grammar error "It have to begin", it should be "It has" (When using 3rd person the verb to be is He/She/It HAS and I/You/They HAVE).
- Another misspelling at "choose theire timezone", it should be "their" instead of "theire".
A suggestion for a new module:
You would create a module to show the latest topics posted in Kunena or also a module to allow to put a link with the filter results from a word, so I would just show post with certain criteria/words.
I think that's all for a while. Well, just a suggestion. ;0)
Cheers.
Here are some feedback:
1st, here goes attached the translation for Brazilian Portuguese (Portuguese-BR - pt-BR)
2nd, here are some comments:
- In the .ini file, we don't get to translate the "Kunena Birthdaybot" text;
- In the .ini file, we don't get to translate the "default" in the template dropdown list;
- At the reference time, in English, the tiptool is showing "SW_KBIRTHDAY_TIMEFROM_DESC" instead of the correct description;
- I'm not native with English too, but I think there is a misspelling at "Fill in the name off", it should be "of" instead "off";
- on the same line there is another grammar error "It have to begin", it should be "It has" (When using 3rd person the verb to be is He/She/It HAS and I/You/They HAVE).
- Another misspelling at "choose theire timezone", it should be "their" instead of "theire".
A suggestion for a new module:
You would create a module to show the latest topics posted in Kunena or also a module to allow to put a link with the filter results from a word, so I would just show post with certain criteria/words.
I think that's all for a while. Well, just a suggestion. ;0)
Cheers.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Last edit: 15 years 10 months ago by iLucato.
Please Log in or Create an account to join the conversation.
15 years 10 months ago - 15 years 10 months ago #58202
by mervyn
Replied by mervyn on topic Re: Birthday Modul
Okay, I located the error that caused the warning:
Somehow your $query is faulty, it produces no result.
Since this passage is just a test if any data is in $cb, I changed it to
It is too long ago that I used to write PHP code so I cant see where the error is right now. But, with my "fix", the module starts producing results.
New Problem: If someone had its birthday yesterday, the module lists the user as "has birthday in one day".
Also the results are not in the right order - the output is listed in the same order as found in the database.
Everything else seems to work fine now.
Code:
...}elseif($k_config->integration_profile === 'communitybuilder'){
if(!empty($cbfield)){
$cb = $db->getEscaped($cbfield);
$query = " FROM #__comprofiler LIKE '{$cb}'";
$db->setQuery($query,0,1);
$cbf = $db->query();
if(empty($cbf)){
JError::raiseWarning('',JText::_('SW_KBIRTHDAY_NOCBFIELD'));
return NULL;
}
}else{...
Somehow your $query is faulty, it produces no result.
Since this passage is just a test if any data is in $cb, I changed it to
Code:
$query = "SELECT * FROM #__comprofiler";
New Problem: If someone had its birthday yesterday, the module lists the user as "has birthday in one day".
Also the results are not in the right order - the output is listed in the same order as found in the database.
Everything else seems to work fine now.
Last edit: 15 years 10 months ago by mervyn.
Please Log in or Create an account to join the conversation.
15 years 10 months ago #58214
by svanschu
This query is truly wrong and not from my files.
What Version of Kunena/CB and the Modul you are using?
Kunena Contributor & Language Coordinator
Kunena Birthday Module | Kunena LaTeX Plugin | SchuWeb Sitemap with free Kunena Plugin
Always up to date with Twitter
Replied by svanschu on topic Re: Birthday Modul
Code:
$query = " FROM #__comprofiler LIKE '{$cb}'";
This query is truly wrong and not from my files.
What Version of Kunena/CB and the Modul you are using?
Kunena Contributor & Language Coordinator
Kunena Birthday Module | Kunena LaTeX Plugin | SchuWeb Sitemap with free Kunena Plugin
Always up to date with Twitter
Please Log in or Create an account to join the conversation.
15 years 10 months ago - 15 years 10 months ago #58226
by mervyn
Replied by mervyn on topic Re: Birthday Modul
Yeah, I was sloppy with crtl+z to return to your original code for pasting it here. It's been
if I remember correctly. Sorry for the faulty paste.
Using the usual debugging methods I found out that $cbf is always empty with that query. Iirc SHOW COLUMNS supports the LIKE statement, but even using '{$cb}' wouldn't help. $cb is passed on correctly, $query is a seemingly okay string, but it wouldnt produce any results whatsoever. And I dont know why. Maybe you should just forget about the whole SHOW COLUMNS part and replace it with a query that you can actually use later on - mySQL will return an error message if the field's name is not valid and you could go with the warning from there.
Code:
$query = "SHOW COLUMNS FROM #__comprofiler LIKE {$cb}";
Using the usual debugging methods I found out that $cbf is always empty with that query. Iirc SHOW COLUMNS supports the LIKE statement, but even using '{$cb}' wouldn't help. $cb is passed on correctly, $query is a seemingly okay string, but it wouldnt produce any results whatsoever. And I dont know why. Maybe you should just forget about the whole SHOW COLUMNS part and replace it with a query that you can actually use later on - mySQL will return an error message if the field's name is not valid and you could go with the warning from there.
Last edit: 15 years 10 months ago by mervyn.
Please Log in or Create an account to join the conversation.
Time to create page: 0.231 seconds