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

Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Solved K 3.0.3: Share topics with Facebook (found in K 3.0.6)

More
10 years 5 months ago - 9 years 7 months ago #1 by olimpo88
This is a modification that I made to share topics on facebook, I am using kunena 3.03, theme blue_eagle

Edit /components/com_kunena/template/blue_eagle/html/topic/default.php

Before:

Code:
<div class="kblock"> <div class="kheader"> <h2><span><?php echo JText::_('COM_KUNENA_TOPIC') ?> <?php echo $this->escape($this->topic->subject) ?></span></h2>


After:
Code:
<div class="kblock"> <div class="kheader"> <h2><span><?php echo JText::_('COM_KUNENA_TOPIC') ?> <?php echo $this->escape($this->topic->subject) ?></span><div id="facebook_share"> <!-- Agregado para facebook --> <?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> <a onclick="window.open('http://www.facebook.com/share.php?u=<?php echo curPageURL(); ?>', '_blank', 'height=365,width=660'); return false;"href="http://www.facebook.com/share.php?u=<?php echo curPageURL(); ?>” target="_blank" style="float: right; margin-top: -25px;"><img src="http://www.rcnmundo.com/img/comparte.jpg" title="Compartir"></a> <div></h2>


first a PHP function to get the page (URL) of the message and then a javascript function that opens a popup window that leads to facebook and automatically passes the URL to share.






Attachments:
Last edit: 9 years 7 months ago by olimpo88.

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

More
9 years 7 months ago #2 by olimpo88
I recommend this adaptation is very useful for the SMO and SMM.

Do not know if will be able to include it in future versions, I understand that is not pioridad in the development of kunena, but it would be nice to incorporate it as a free plugin.

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

More
9 years 4 months ago - 9 years 4 months ago #3 by specialworld
CodeLinSoft forum, of which I am a member of the team there are buttons to twitter and facebook. see screen:

Attachments:
Last edit: 9 years 4 months ago by specialworld.

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

More
9 years 2 months ago #4 by Gyatso
Good afternoon, how could add some buttons like that?

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

Time to create page: 0.361 seconds