2018-05-09, 09:46 PM
(2018-04-22, 04:06 PM)shinemo Wrote: [ -> ]But Facebook always recommends using their official code. Check if any changes before using the codes above.
but who tells you these are not official codes ?
(2018-04-22, 04:06 PM)shinemo Wrote: [ -> ]But Facebook always recommends using their official code. Check if any changes before using the codes above.
(2018-09-29, 11:37 PM)yafin Wrote: [ -> ]Thank you for this.
(2019-02-15, 08:51 PM)Eldenroot Wrote: [ -> ]Is possible to somehow add a dropdown menu for share? Click on share icon -> dropdown with Facebook/Twitter/post URL?
<a href="share.php?pid={$post['pid']}" id="share_post_{$post['pid']}" title="Share Post" class="author_buttons postbit_buttons postbit_edit postbit_mirage"><span>Share</span></a>
<div id="share_post_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a class="popup_item" href="https://plus.google.com/share?url={$mybb->settings['bburl']}/{$post['postlink']}" onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-google-plus-square" style="font-size:18px; color:#d34836"></i> Google Plus</a></div>
<div class="popup_item_container"><a class="popup_item" href="https://www.facebook.com/sharer/sharer.php?u={$mybb->settings['bburl']}/{$post['postlink']}" class="fb-share-button" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-facebook-square" style="font-size:18px;color:#3B5998"></i> Facebook </a></div>
<div class="popup_item_container"><a class="popup_item" href="https://twitter.com/intent/tweet?text={$thread['subject']} &url={$mybb->settings['bburl']}/{$post['postlink']}"onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-twitter-square" style="font-size:18px;color:#0084b4"></i> Twitter </a></div>
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
$("#share_post_{$post['pid']}").popupMenu();
}
// -->
</script>