Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 45
SyntaxHighlighte... 48
Newsletters v4.03 106
Facebook Like Box 122
Newsletters v4.02 56
Metro 154
Facebook Connect 166
Shoutbox Panel 125
Redactor for PHP... 104
MI Floating Side... 106
Facebook Login/R... 149
Avatar Studio v2.03 177
Relationship Sta... 96
Sexual Orientati... 113
Fisherman 140
Popular Addons
iTheme2 5796
Arise 5783
User Control v1.23 4616
Event Calendar 4045
Photowidget panel 3884
Radio-Theme red2... 3350
Highslide Gallery 3311
CSS/JavaScript D... 3223
Facebook Connect... 2980
Dynamic Menu 2889
Slideshow Lightb... 2719
L-AMANT 2656
Enigma 2629
2Dark 2603
Black 2571
View Thread
Who is here? 1 guest(s)
 Print Thread
Social Connection Panel
Vyper69
Is there a panel that has facebook, linked in and google +1 on it. I am looking for one that includes these.
 
http://elink2biz.com
Craig
Yeah it's called Share This.....

http://www.fangre...load_id=60
 
http://www.fusiontube.co.uk/
Vyper69
Disregard last post. I was looking in the wrong place for it. thanks works fine. Can you possibly add a Linked In to this also.
Edited by Vyper69 on 28-06-2012 19:23
 
http://elink2biz.com
Craig
what?
 
http://www.fusiontube.co.uk/
Vyper69
here is what i am talking about. http://www.linked...
 
http://elink2biz.com
Craig
Paste this into a new side panel in Admin >>> System >>> Panels and enable it....

Download source  Code
openside("Share On Linkedin");

echo "<div style='text-align: center;'><script src='//platform.linkedin.com/in.js' type='text/javascript'></script>\n
<script type='IN/Share' data-url='".$settings['siteurl']."'></script></div>\n";

closeside();



 
http://www.fusiontube.co.uk/
Vyper69
that is actually what i am looking for to use with all my social networks. I just don't know how to add in the codes for google +1, facebook, twitter, and the facebook like
 
http://elink2biz.com
Gillette
You could always check Netrix out,I think he has a addon for what your looking for,http://www.phpfus...
Or ask Use Craigs advice,he is always ontop of everything and creates stuff for people.Smile
 
Vyper69
ya craig helped with the linkedin one, just need the proper code format for the others to add them to the panel
 
http://elink2biz.com
Craig
Facebook Like...

Download source  Code
<iframe src='http://www.facebook.com/plugins/like.php?href=".$settings['siteurl']."
&amp;layout=standard&amp;show_faces=true&amp;width=200&amp;action=like&amp;font=tahoma&amp;colorscheme=light'
scrolling='no' height='60' frameborder='0' allowTransparency='true' id='facebook-like'></iframe>




Google Plus 1...

Download source  Code

<g:plusone annotation='inline'></g:plusone>

add_to_footer("
<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>");




Twitter share Button....

Download source  Code
<a href='https://twitter.com/share' class='twitter-share-button' data-url='".$settings['siteurl']."'>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>




Add them to the panel above in-between the echo"";
 
http://www.fusiontube.co.uk/
Vyper69
Thanks for the help craig, here is what happened. I added them one at a time. Twitter was a little off center, but worked. Facebook like went out of the box, and made all the info on the page disappear. Other than that it worked. The Google+1 gave me an error like I showed earlier. I don't know how to fix the facebook or the google.
 
http://elink2biz.com
Craig
Yeah it will need styled. Smile

What's the error?
 
http://www.fusiontube.co.uk/
Vyper69
Ok, I was able to get the google button working. Here is what I did.
Download source  Code
<g:plusone annotation='inline'></g:plusone>

add_to_footer("
<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>");




I had to remove the add_to_footer(" at the beginning and the end );
This stopped the error. Now even though that was fixed i ended up with the words going out of the box. In order to fix this i changed po.async = true; to po.async = false;

Also I said I was having the issue with the facebook Like having text off the page this was corrected by taking layout=standard&amp; and changing it to layout=button_count&amp;

Everything is now inside the box. But I am still having issues with the alignment for the like button, google, and twitter. And the "div style='text-align: center" won't fix it. Any ideas? Also how do I get a space between the buttons?

Take a look at my page here so you can see what is happening. http://oilregionb...?page_id=3

Here is the full code of the panel:

Download source  Code
openside("Social Connections");

echo "<div style='text-align: center;'><script src='//platform.linkedin.com/in.js' type='text/javascript'></script>\n
<script type='IN/Share' data-url='".$settings['siteurl']."'></script></div>\n";

echo "<g:plusone annotation='bottom'></g:plusone>

<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>";

echo "<a href='https://twitter.com/share' class='twitter-share-button' data-url='".$settings['siteurl']."'>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>";

echo "<iframe src='http://www.facebook.com/plugins/like.php?href=".$settings['siteurl']."
&amp;layout=button_count&amp;show_faces=false&amp;width=200&amp;action=like&amp;font=tahoma&amp;colorscheme=light'
scrolling='no' height='60' frameborder='0' allowTransparency='true' id='facebook-like'></iframe>";

closeside();




Merged on Jul 04 2012 at 18:46:10:
Still having issue with alignment and spacing. Can someone help.
Edited by Vyper69 on 04-07-2012 23:46
 
http://elink2biz.com
Gillette
After reviewing your sites forum,I noticed all your content is to close,You should expand on your theme width.Just a simple heads up.As far as the rest of thread i apologize for going "off topic"
resume at once Wink
 
smokeman
@Craig: I have a problem m8. Your FB Like Button from post #10 show on PHPFusion-Tips.dk that 8 person like it. But on this page:
http://www.facebo...9229666689
- it shows that 1 person like it.

Do you know what's wrong ? Im not on FB anymore so it's hard to test it/do anything.. Smile
 
http://www.phpfusion-tips.dk/
Craig
It's likes for your pages on your site not for your sites facebook page. Wink
 
http://www.fusiontube.co.uk/
smokeman
LOOOL then I better understand haa ha.. Boing boing boing.. Smile

Anyway, do you have a code for the PHP-Fusion homepage that shows like's from FB and that count's likes from the Homepage ?
 
http://www.phpfusion-tips.dk/
Craig
It's in Arise theme....

http://www.php-fu...don_id=414
 
http://www.fusiontube.co.uk/
smokeman
Ok I'll try that - Thx very much you excellent codemaster! Wink

I remembered in the earliere days I (thought & IMO) that I could "code you out man" - hehe these days are way too over now..

Everything you make is just so D*** good and coded very fine.

Well no more a**licking - you know what I mean. Good
 
http://www.phpfusion-tips.dk/
Craig
You do good man and have done for while now and your phpfusion-tips.dk site is a big site been around for years.
 
http://www.fusiontube.co.uk/
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Link panel to another subdomain Content Administration 3 19-05-2013 08:50
Stop Forum Spam Panel Official releases [Panels] 14 12-05-2013 19:51
edit login side panel. Content Administration 3 10-05-2013 18:45
Theme Control Panel Content Administration 2 08-05-2013 13:19
Handling bounced emails in connection with newsletters Content Administration 4 07-05-2013 11:50
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue