MyBB Community Forums

Full Version: Share button with popup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Someone with a idee, still no sollution and i'm waiting Sad Sad
Open your theme template set and go to headerinclude and find

<meta http-equiv="Content-Script-Type" content="text/javascript" />

under that paste

<!-- AddThis Button BEGIN -->
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<!-- AddThis Button END -->

and save it(you can paste addthis widget in showthread template in head tag if you have plans only to include it in showthread and not globally).

Go to postbit templates and open postbit (or postbit_classic,depends on what layout you are using/forcing)

and find

{$post['button_delete_pm']}

and paste (under that)

<!--AddThis post sharing-->
<a id="forum_post_{$post['pid']}" class="button">Share</a>
<script type="text/javascript">
addthis.button('#forum_post_{$post['pid']}', {}, {url: "{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}&pid={$post['pid']}#pid{$post['pid']}", title: "{$post['subject']} {$post['subject_extra']}"});
</script>
<!--AddThis post sharing-->

and save it.

If you want your own image instead of addthis then add img tag in
<a id="forum_post_{$post['pid']}" class="button"></a>

to look something like this

<a id="forum_post_{$post['pid']}" class="button"><img src="<path to your img file>" alt="" title="post share" /></a>

You will have addthis popup with facebook and twitter share.

When you share posts you will get post link and post title.
Thanks for this, but I don't want to have a menu with social networks in it..

I try to get working the mouseover menu on my own menu the code is above here....

Can u help me with that??
if you mean something like this http://www.vbseo.com/f3/suggestion-share-post-48702/ (share link in posts but with twitter and fb only) i can make that ,gimme few minutes to code all that.
I have made a link/option if you click on it there will be a menu showed with "new messages" "Todays Massages" etc etc and you can click on the options.

But now befor the menu with options is showing u need to click on the text to get the menu with the options

Now I want to set it if u go with the mouse over it you see the menu automatich.

If you go to http://www.galaxyfreaks.nl u see a button called "Berichten" if u click on it u see that I mean

That menu I need to see automatic

I hope now that u know what I mean!
Do you mean something like this http://i.imgur.com/yKSmF.png ?

When you hover share (that black text) that menu will popup (on hover) under that text and you have options to share post on twitter or facebook.
Yes like that, only I don't want to have it for hare on facebook or twitter but I want to have it for new post, today post etc etc.

But the idee is what I mean
and some time to create working code???
Hai,

4 days ago JovanJ. says to me to PM the sollution but still no PM and no answer to get a mouseover popup menu. I PM JovanJ. to ask how it is but still after one day no answer

So is there someone that knows the working code or will gonna try to help me??

Thanks allot !
Someone please need realy help Sad
Pages: 1 2 3 4 5