- Posts: 26
- Thank you received: 3
Kunena 6.3.4 released
The Kunena team has announce the arrival of Kunena 6.3.4 [K 6.3.4] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
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)
Less
More
10 years 10 months ago - 10 years 2 weeks ago #1
by olimpo88
K 3.0.3: Share topics with Facebook (found in K 3.0.6) was created 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:
After:
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.
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.
Last edit: 10 years 2 weeks ago by olimpo88.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 26
- Thank you received: 3
10 years 2 weeks ago #2
by olimpo88
Replied by olimpo88 on topic K 3.0.3: Share topics with Facebook
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.
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.
- specialworld
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
9 years 9 months ago - 9 years 9 months ago #3
by specialworld
Replied by specialworld on topic K 3.0.3: Share topics with Facebook (found in K 3.0.6)
Last edit: 9 years 9 months ago by specialworld.
Please Log in or Create an account to join the conversation.
9 years 7 months ago #4
by Gyatso
Replied by Gyatso on topic K 3.0.3: Share topics with Facebook (found in K 3.0.6)
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.472 seconds