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.
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.
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.
Solved Possible (hack) to show amount of received "Thank You's" below avatar?
14 years 1 week ago - 14 years 1 week ago #122851
by kj2010
Hello,
i searched the forum for this question but couldn't find any similar one among the 1,300+ results.
Please forgive me if this question was already asked and simply give me a link to the corresponding topic if it exists. Sorry.
Question:
Is it possible (hack?) to show the amount of the received "Thank You's" below the forum avatars?
Thanks for any answer in advance!
Regards,
Martin
i searched the forum for this question but couldn't find any similar one among the 1,300+ results.
Please forgive me if this question was already asked and simply give me a link to the corresponding topic if it exists. Sorry.
Question:
Is it possible (hack?) to show the amount of the received "Thank You's" below the forum avatars?
Thanks for any answer in advance!
Regards,
Martin
Last edit: 14 years 1 week ago by sozzled. Reason: Change topic icon
Please Log in or Create an account to join the conversation.
14 years 1 week ago #122870
by Matias
Replied by Matias on topic Possible (hack) to show amount of received "Thank You's" below avatar?
The template file can be found from
/components/com_kunena/template/default/profile/summary.php
/components/com_kunena/template/default/view/profile.*.php
Remember that if you change these files, they will be overridden during the next Kunena upgrade/installation.
/components/com_kunena/template/default/profile/summary.php
/components/com_kunena/template/default/view/profile.*.php
Remember that if you change these files, they will be overridden during the next Kunena upgrade/installation.
Please Log in or Create an account to join the conversation.
- gimenezadrian
-
- Offline
- Senior Member
-
Less
More
- Posts: 166
- Thank you received: 21
14 years 1 week ago - 14 years 1 week ago #122875
by gimenezadrian
Replied by gimenezadrian on topic Possible (hack) to show amount of received "Thank You's" below avatar?
Search the file: com_kunena/template/default/view/view.php
Search the line:
Add up:
Search the file: com_kunena/template/default/view/profile.vertical.php
Search the line:
Add down:
Result:
EDIT: Fixed dependency if karma enabled. Added language from the .ini
Search the line:
Code:
<?php foreach ( $this->messages as $message ) $this->displayMessage($message) ?>
Add up:
Code:
<?php global $kunena_gracias;
$ids = array();
foreach ($this->messages as $m) {
if (!in_array($m->userid, $ids)) {
$ids[] = $m->userid;
$kunena_gracias[$m->userid] = 0;
}
}
$db =& JFactory::getDBO();
$db->setQuery("SELECT count(*) as total, targetuserid as userid FROM #__kunena_thankyou WHERE targetuserid IN (".implode(',',$ids).") GROUP by targetuserid");
$tmp = $db->loadObjectList();
foreach ($tmp as $obj)
$kunena_gracias[$obj->userid] = $obj->total; ?>
Search the file: com_kunena/template/default/view/profile.vertical.php
Search the line:
Code:
<?php if ( $this->userkarma ) : ?>
<li class="kpost-karma">
<span class="kmsgkarma">
<?php echo $this->userkarma ?>
</span>
</li>
<?php endif ?>
Add down:
Code:
<li class="kpost-gracias-recibidas"><?php echo JText::_('COM_KUNENA_THANKYOU_GOT'); ?>: <?php global $kunena_gracias; echo $kunena_gracias[$this->userid]; ?></li>
Result:
EDIT: Fixed dependency if karma enabled. Added language from the .ini
Last edit: 14 years 1 week ago by gimenezadrian. Reason: Fixed dependency if karma enabled. Added language from the .ini
Please Log in or Create an account to join the conversation.
14 years 1 week ago #122880
by kj2010
Replied by kj2010 on topic Possible (hack) to show amount of received "Thank You's" below avatar?
THANK YOU very much gimenezadrian for the fast and very detailed explanation.
It works perfectly. Wonderful!
It works perfectly. Wonderful!
Please Log in or Create an account to join the conversation.
14 years 1 week ago - 14 years 1 week ago #123005
by DaTOkz
Replied by DaTOkz on topic Possible (hack) to show amount of received "Thank You's" below avatar?
*** Spanish text removed by moderator ***
Last edit: 14 years 1 week ago by sozzled.
Please Log in or Create an account to join the conversation.
14 years 1 week ago #123006
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Possible (hack) to show amount of received "Thank You's" below avatar?
English, please, in this category.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
Time to create page: 0.308 seconds