Заманчиво иметь на форуме Kunena - всеми признанном знаковом расширении joomla - - кнопки социальных сетей, позволяющие добавить ссылку на пост в twitter... или facebook.
Одно из решений, предложенное пользователями форума kunena.org, выглядит следующим образом:
В файле
components\com_kunena\template\[YOUR CHOSEN TEMPLATE]\view\view.php
Находим линию 39 и вставляем следующий код:
<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="940" font="verdana"></fb:like>
</div>
См. также
здесь.
Развитие темы
Если мы хотим иметь подобную кнопку для каждого поста (а не всего топика сразу), то в файле
/components/com_kunena/template/default/view/messages.php
(примерно 96 строчка) вставляем следующий код:
<span>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="<?php echo "http://".$_SERVER["SERVER_NAME"]."/forum/".$this->catid."/".$this->thread."#".$this->id?>" layout="button_count" show_faces="false" width="100" font="tahoma"></fb:like>
</span>
, получаем:
Далее. Возможно, многим покажется более удобным использование
ITPShare:
It is an extension for Joomla! that adds social buttons on your web page. This plugin puts in your content widgets of top social networks. Thanks to it your articles will reach quickly to users of Facebook, Twitter, LinkedIn, StumbleUpon, Buzz, Digg, ReTweetMeMe, Yahoo Buzz ... Thus, your posts will reach more readers.
The extension has got many options. You are able to hide and show all buttons. You can set specific settings for each once. You are able to set them as small or large, to show or hide the counter of republishing.
There is a list of places where you want to display your buttons. You can choose from view of the categories, articles or front page.
You can also specify the sections, categories or individual articles to be excluded. The extension will not be rendering to them.
There are native versions for Joomla! 1.5 and Joomla! 1.6.
Полученный результат выглядит примерно вот так (публикуем модуль в соответствующей позиции - Configure and publish this to the kunena_msg_1 position):
Либо - использование
Flodjishare Plugin: