Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

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.

Question Facebook Like on threads

More
12 years 7 months ago - 12 years 7 months ago #11 by customizecommerce
I managed to get the fb like button on all posts using the fb like code provided by Sunburst WebConsult. I just change the width to 540px.

I guess you may use other social button code such as addThis and etc in order to have other social media such as email, google, twitter and much more. Just paste the code as step below :

components/com_kunena/template/default/view/message.actions.php

paste the code below after line 27
Code:
<div style="margin: 10px"> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];?>" show_faces="true" width="540" font="verdana"></fb:like> </div>

you may view the output at :
mamafc.com/forum/pregnancy-tips/16-want-...aby-boy-or-girl.html

hope this help. ;)
Last edit: 12 years 7 months ago by customizecommerce.

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

More
12 years 7 months ago #12 by sozzled
If this works, and we would appreciate some of those people who voted for this item on our Feedback page to comment, this will probably complete the request that people have asked for.

Whether this will be some option that will be added to a future release of Kunena or not, that remains to be seen.

Thanks for you idea. :)

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

More
12 years 7 months ago - 12 years 7 months ago #13 by customizecommerce
Hello again,

I've updated my previous solution using addthis code and i purposely removed the fb code provided by addthis
Code:
"<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>"

and replace with
Code:
<fb:like href="<?php echo "http://".$_SERVER["SERVER_NAME"]."/forum/".$this->catid."/".$this->thread."#".$this->id?>" layout="button_count" show_faces="true" width="300" font="verdana"></fb:like>

provided by teratyke (post #4).

full code that i use as below:
Code:
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_tweet"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> <a class="addthis_counter addthis_pill_style"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<fb:like href="<?php echo "http://".$_SERVER["SERVER_NAME"]."/forum/".$this->catid."/".$this->thread."#".$this->id?>" layout="button_count" show_faces="true" width="300" font="verdana"></fb:like> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=XXXXXX"></script> <!-- AddThis Button END -->

plz replace XXXXXX with your addthis id if you have an account with addthis.

output can be seen at my previous post (post #11)

and if you dont have addthis account plz use the code below:
Code:
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_tweet"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> <a class="addthis_counter addthis_pill_style"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<fb:like href="<?php echo "http://".$_SERVER["SERVER_NAME"]."/forum/".$this->catid."/".$this->thread."#".$this->id?>" layout="button_count" show_faces="true" width="300" font="verdana"></fb:like> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e56f74f646cd137"></script> <!-- AddThis Button END -->

If someone click the fb like button, and their followers/fans click on the link, it will give result with url something like below:

mamafc.com/forum/12/16#16 instead of the full url.

thanks
Last edit: 12 years 7 months ago by customizecommerce.

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

More
12 years 3 months ago #14 by Baze
Replied by Baze on topic Re: Facebook Like on threads
You can use addthis:url= in the facebook button proveded by addthis
Code:
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style " style="width:400px; float: left;"> <a class="addthis_button_facebook_like" fb:like:layout="button_count" addthis:url="<?php echo "http://".$_SERVER["SERVER_NAME"]."/forum/".$this->catid."/".$this->thread."#".$this->id?>"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-4e56f74f646cd137"></script> <!-- AddThis Button END -->

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

More
12 years 2 months ago #15 by lostmail

TopCop wrote:
With that plugin installed and configured I can now put it into every single post. You just have to add {flodjishare} at the end of a post and you will get all the share buttons.


TopCop


Installed the plugin from flodjis and it works for Joomla Content.

But is ther a way to get the buttons for each kunena post automatically ?
What can i insert in the kunena template that I have the social buttons for each post (no manual inserts) ?

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

Time to create page: 0.371 seconds