×
Kunena 5.2.4 and Blue eagle 1.6.4 released (04 Apr 2021)

The Kunena team has announce the arrival of Kunena 5.2.4 [K 5.2.4] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of K 5.2.4

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with, this template isn't designed to works with Bootstrap 3 and Bootstrap 4.

× 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
9 years 7 months ago - 9 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
<div style="margin: 10px">
	<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo "https://".$_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: 9 years 7 months ago by customizecommerce.

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

More
9 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
9 years 7 months ago - 9 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
"<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>"

and replace with
<fb:like href="<?php echo "https://".$_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:
<!-- 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 "https://".$_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="https://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:
<!-- 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 "https://".$_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="https://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: 9 years 7 months ago by customizecommerce.

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

More
9 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
<!-- 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 "https://".$_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="https://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
9 years 2 months ago #15 by lostmail


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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.064 seconds