Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Question JomSocial and Kunena Karma Integration

More
15 years 5 months ago #78597 by Neocold

yaksushi wrote: Neo I also responded to your post in the Jomsocial forums, maybe you can help me with the below topic "pulling state and city from jomsocial into kunena"?

www.kunena.org/forum/170-k-16-templates-...ation-from-jomsocial


This was a very simple thing to do, I have updated my hack to version 2.2

Please note, if you already have version 2.1 installed you only need to upload files forumsettings.php and fsi2.php from version 2.2

Maker of:
JomSocial and Kunena Profile Integration
JomSocial and Kunena Karma Integration
Both are available at my website.
The following user(s) said Thank You: yaksushi

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

More
15 years 5 months ago - 15 years 5 months ago #78636 by yaksushi
Neo it's not working... I see where you have called socialbuttons2.php into kunena but I don't see anything in socialbuttons2.php that references the jomsocial users location "city, state". Am I missing something? Could I just do an edit to

/components/com_kunena/template/default/view/profile.vertical.php
/components/com_kunena/template/default/view/profile.horizontal.php


and change
Code:
<li class="kpost-smallicons"> <?php echo $this->profile->profileIcon('gender'); ?> <?php echo $this->profile->profileIcon('birthdate'); ?> <?php echo $this->profile->profileIcon('location'); ?> <?php echo $this->profile->profileIcon('website'); ?> <?php echo $this->profile->profileIcon('private'); ?> <?php echo $this->profile->profileIcon('email'); ?> </li>

to somehow query and display from my #__community_fields_values ?

All I need is the city state and country displayed under the avatar
Last edit: 15 years 5 months ago by yaksushi.

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

More
15 years 5 months ago - 15 years 5 months ago #78647 by yaksushi
Ok update, all the original things are working and the location is the house icon! Can I update it and replace Personal Text with the users city state country in text?

One issue when you click on your jomsocial profile, there is no forum settings tab you must click on edit profile then it shows up in the sub menu. Might be confusing for users to get to. Can we add the forum settings into the dropdown menu?
Last edit: 15 years 5 months ago by yaksushi.

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

More
15 years 5 months ago - 15 years 5 months ago #78648 by Neocold

yaksushi wrote: Ok update, all the original things are working and the location is the house icon! Can I update it and replace Personal Text with the users city state country in text?

Yes, this is simple, do the following:
in forumsettings.php change
Code:
$personalText = $user->personalText;
to
Code:
//$personalText = $user->personalText;
then change
Code:
<td><input type="text" name="personalText" value="<?php echo $personalText; ?>" /></td>
to
Code:
<td><?php echo $location; ?><input type="hidden" name="personalText" value="<?php echo $location; ?>" /></td>

then in fsi2.php change
Code:
$db->setQuery("UPDATE #__kunena_users set websiteurl='$websiteurl', gender='$gender2', birthdate='$birthdate', location='$location' where userid=$my->id");
to
Code:
$db->setQuery("UPDATE #__kunena_users set websiteurl='$websiteurl', gender='$gender2', birthdate='$birthdate', location='$location', personalText='$location' where userid=$my->id");

yaksushi wrote: One issue when you click on your jomsocial profile, there is no forum settings tab you must click on edit profile then it shows up in the sub menu. Might be confusing for users to get to. Can we add the forum settings into the dropdown menu?

I have not yet gone looking to fix this because there is a way to do it with the plugin "Joomsocial Toolbar Editor" www.jomsocial.com/download/addons/conten...-toolbar-editor.html

I may look into making this part of my hack in the future, but first I need to finish looking into the requests I have received from people that have donated to my hack.

Maker of:
JomSocial and Kunena Profile Integration
JomSocial and Kunena Karma Integration
Both are available at my website.
Last edit: 15 years 5 months ago by Neocold.

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

More
15 years 5 months ago - 15 years 5 months ago #78653 by yaksushi
I was able to add a new dropdown menu by doing the following. {Joomla Tutorial}

a. copying this file: /components/com_community/templates/default/toolbar.index.php
b. head to: /templates/{yourcurrentjoomlatemplate}/html/
c. create a new directory inside /html named: com_community
d. edit toolbar.index.php with your new menu info
e. paste toolbar.index.php inside the new com_community

to add a new menu to the toolbar.index.php do the following.

after the following code, line 164 for me in toolbar.index.php
Code:
<li id="toolbar-item-inbox" class="<?php echo $toolbarClass[TOOLBAR_INBOX];?>"> <a href="<?php echo $inboxItem->link; ?>" onmouseover="joms.toolbar.open('m4')" onmouseout="joms.toolbar.closetime()"> <?php echo $inboxItem->caption; ?> </a> <div id="m4" onmouseover="joms.toolbar.cancelclosetime()" onmouseout="joms.toolbar.closetime()" style="visibility: hidden;"> <?php echo loadMenuItems($customToolbar ,TOOLBAR_INBOX, 'prepend'); ?> <?php echo loadMenuItems($customToolbar ,TOOLBAR_INBOX, 'append'); ?> </div> </li> <?php } } } ?>

past this after
Code:
<li class="" id="toolbar-item-apps"> <a onmouseout="joms.toolbar.closetime()" onmouseover="joms.toolbar.open('m5')">My Forum Settings</a> <div style="overflow: hidden; visibility: hidden;" onmouseout="joms.toolbar.closetime()" onmouseover="joms.toolbar.cancelclosetime()" id="m5"> <a href="index.php?option=com_community&view=profile&task=forumsettings&Itemid=426">Forum Social Info</a> <a href="index.php?option=com_kunena&view=latest&do=mylatest&Itemid=520">My Forum Topics</a> </div> </li> <?php } } } ?>
Last edit: 15 years 5 months ago by yaksushi.

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

More
15 years 5 months ago #78691 by Neocold

Azure wrote: Well done, Neocold! Great solution!

As you're probably aware after your direct intervention with bedding your other excellent hack in for me, I have changed the Kunena Karma to an 'applaud' system, completely disabling negative karma so that only positive feedback can be given to a poster. I am using Jomsocial to display member profiles but because of the craziness of operating two different karma systems, switched the JS one off.

Could your hack be tweaked to display my 'applaud' (positive karma) count on the JS profile page without having to set up the JS karma system? Further, would it be feasible to be able to include Kunena 'thank you's' received and given on the Jomsocial profile page?

Cheers,

Azure


Azure, your request has been completed and applied to your website, if you have any questions or requests about it feel free to PM or email me.

Maker of:
JomSocial and Kunena Profile Integration
JomSocial and Kunena Karma Integration
Both are available at my website.

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

Time to create page: 0.237 seconds