Current time: 07-30-2014, 07:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share button with popup
04-05-2012, 09:23 PM (This post was last modified: 04-05-2012 09:24 PM by GalaxyFreak.)
Post: #1
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago Share button with popup
Hello,

I'm searching for a option or plugin that make a share button in posts and if you click on it you see a little popup window with the text "share this on:" and you can choose to share it on Facebook or Twitter.

I have seen this on a forum on Vbulletin and I like this option


Is this possible ??
Visit this user's website Find all posts by this user
Quote this message in a reply
04-05-2012, 09:31 PM
Post: #2
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
http://community.mybb.com/thread-82696.html

Take the JavaScript popup menu and put both Facebook and Twitter links there.
Find all posts by this user
Quote this message in a reply
04-06-2012, 08:55 AM (This post was last modified: 04-06-2012 10:50 AM by GalaxyFreak.)
Post: #3
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Thanks!

oke, the codes works but is it also possible to fix it that the popup menu shows up when you go over the option with you mouse?? Now you need to klik on it and then jou go over it and the menu shows up

is this possible?
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2012, 08:37 PM
Post: #4
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
(04-06-2012 08:55 AM)GalaxyFreak Wrote:  Thanks!

oke, the codes works but is it also possible to fix it that the popup menu shows up when you go over the option with you mouse?? Now you need to klik on it and then jou go over it and the menu shows up

is this possible?

Someone that knows how to fix this ????
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2012, 08:40 PM (This post was last modified: 04-08-2012 08:41 PM by Jovan J..)
Post: #5
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Add JavaScript onmouse over event on that button:

http://www.w3schools.com/jsref/event_onmouseover.asp

Jovan J.
MyBB Support Technician


Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2012, 07:11 PM
Post: #6
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Not Working here!!!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-12-2012, 11:14 PM
Post: #7
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Someone with a WORKING sollution for this???
Visit this user's website Find all posts by this user
Quote this message in a reply
04-12-2012, 11:16 PM
Post: #8
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Give us here code of that button, and with that code which i sayed you to put in (onmouseover javascript).

Jovan J.
MyBB Support Technician


Visit this user's website Find all posts by this user
Quote this message in a reply
04-13-2012, 10:58 AM (This post was last modified: 04-13-2012 12:15 PM by GalaxyFreak.)
Post: #9
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Oke here is my code where I want to fix the mouseover:

PHP Code:
<a href="#" id="example_menu2" title="Berichten opties" /><img src="http://www.galaxyfreaks.nl/images/toplinks/berichten.png" alt="" title="Berichten opties" /> Berichten</a

<
div id="example_menu2_popup" class="popup_menu" style="display: none;">

<
div class="popup_item_container"><a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}class="popup_item">Eigen berichten</a></div>

    <
div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getnew" class="popup_item">Nieuwe berichten</a></div>

    <
div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=unreads" class="popup_item">Ongelezen berichten</a></div>

   <
div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getdaily" class="popup_item">Berichten van vandaag</a></div>

   <
div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getuap" class="popup_item">Onbeantwoorde berichten</a></div>


</
div>

<
script type="text/javascript">

// <!--

    
if(use_xmlhttprequest == "1")

    {

        new 
PopupMenu("example_menu2");

    }

// -->

</script> 

And I hacve no code where I tryed the mouseover because I don't understand the link you given and I tryed a 3 a 4 places and nothing works.
I hope you can edit the code so it works!!

[Image: 5dMOCPt.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
04-13-2012, 02:06 PM (This post was last modified: 04-13-2012 02:07 PM by Jovan J..)
Post: #10
Solved: 2 Years, 2 Months, 1 Week, 6 Days, 22 Hours, 15 Minutes, 44 Seconds ago RE: Share button with popup
Is that a html page or?

Find where your <script> tag begin and add that in begin of tag:

function open(){
window.open ("http://www.yourlinkhere.com","mywindow");
}

And when you do that replace your code with this:

Code:
<a href="#" id="example_menu2" onMouseOver="open()" title="Berichten opties" /><img src="http://www.galaxyfreaks.nl/images/toplinks/berichten.png" alt="" title="Berichten opties" /> Berichten</a>

<div id="example_menu2_popup" class="popup_menu" style="display: none;">

<div class="popup_item_container"><a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="popup_item">Eigen berichten</a></div>

    <div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getnew" class="popup_item">Nieuwe berichten</a></div>

    <div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=unreads" class="popup_item">Ongelezen berichten</a></div>

   <div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getdaily" class="popup_item">Berichten van vandaag</a></div>

   <div class="popup_item_container"><a href="http://www.galaxyfreaks.nl/search.php?action=getuap" class="popup_item">Onbeantwoorde berichten</a></div>


</div>

<script type="text/javascript">

// <!--

    if(use_xmlhttprequest == "1")

    {

        new PopupMenu("example_menu2");

    }

// -->

</script>

Jovan J.
MyBB Support Technician


Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication