
Admin
Well-Known Member
Staff member
Administrator
This template modification will make user easier to share your page to the social network like facebook, twitter & google+
first, go to admincp -> style & template -> style manager than choose edit templates find widget templates at the bottom of templates's list. next find widget_conversationdisplay template. klik edit and add the following code at the top of the template.
note
remember to find and edit the following line, before you use this template modification
enjoy it
, this is my 1st post in template modification in vb.org :up:
demo
http://www.sukagwe.com
klik any thread, blog post you want
first, go to admincp -> style & template -> style manager than choose edit templates find widget templates at the bottom of templates's list. next find widget_conversationdisplay template. klik edit and add the following code at the top of the template.
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like send="false" width="450" show_faces="false"></fb:like>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="{vb:raw conversationStarter.htmltitle}" data-via="your twitter account" data-lang="id" data-hashtags="your twitter account">Tweet</a>
<script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script>
<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share"></div>
<!-- Place this tag after the last share tag. -->
<script type="text/javascript">
(function () {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
note
remember to find and edit the following line, before you use this template modification
Code:
data-via="your twitter account" data-lang="id" data-hashtags="your twitter account"
enjoy it

demo
http://www.sukagwe.com
klik any thread, blog post you want
