|
Social Connection Panel
|
| Vyper69 |
Posted on 28-06-2012 17:30
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
Is there a panel that has facebook, linked in and google +1 on it. I am looking for one that includes these. |
| |
|
|
| Craig |
Posted on 28-06-2012 18:35
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Yeah it's called Share This.....
http://www.fangre...load_id=60
|
| |
|
|
| Vyper69 |
Posted on 28-06-2012 19:21
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
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
|
| |
|
|
| Craig |
Posted on 28-06-2012 19:22
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
what?
|
| |
|
|
| Vyper69 |
Posted on 28-06-2012 19:41
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
here is what i am talking about. http://www.linked... |
| |
|
|
| Craig |
Posted on 28-06-2012 19:53
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Paste this into a new side panel in Admin >>> System >>> Panels and enable it....
Codeopenside("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();
|
| |
|
|
| Vyper69 |
Posted on 28-06-2012 20:53
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
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 |
| |
|
|
| Gillette |
Posted on 28-06-2012 22:21
|

Admin

Posts: 291
Joined: 09/04/2012
|
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. |
| |
|
|
| Vyper69 |
Posted on 28-06-2012 22:24
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
ya craig helped with the linkedin one, just need the proper code format for the others to add them to the panel |
| |
|
|
| Craig |
Posted on 28-06-2012 23:08
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Facebook Like...
Code<iframe src='http://www.facebook.com/plugins/like.php?href=".$settings['siteurl']."
&layout=standard&show_faces=true&width=200&action=like&font=tahoma&colorscheme=light'
scrolling='no' height='60' frameborder='0' allowTransparency='true' id='facebook-like'></iframe>
Google Plus 1...
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....
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"";
|
| |
|
|
| Vyper69 |
Posted on 29-06-2012 00:07
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
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. |
| |
|
|
| Craig |
Posted on 29-06-2012 08:54
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Yeah it will need styled. 
What's the error?
|
| |
|
|
| Vyper69 |
Posted on 29-06-2012 22:22
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
Ok, I was able to get the google button working. Here is what I did.
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& and changing it to layout=button_count&
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:
Codeopenside("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']."
&layout=button_count&show_faces=false&width=200&action=like&font=tahoma&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
|
| |
|
|
| Gillette |
Posted on 05-07-2012 01:25
|

Admin

Posts: 291
Joined: 09/04/2012
|
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  |
| |
|
|
| smokeman |
Posted on 17-12-2012 22:58
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
@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..
|
| |
|
|
| Craig |
Posted on 17-12-2012 23:00
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
It's likes for your pages on your site not for your sites facebook page.
|
| |
|
|
| smokeman |
Posted on 17-12-2012 23:08
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
LOOOL then I better understand haa ha.. Boing boing boing.. 
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 ?
|
| |
|
|
| Craig |
Posted on 17-12-2012 23:10
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
It's in Arise theme....
http://www.php-fu...don_id=414
|
| |
|
|
| smokeman |
Posted on 17-12-2012 23:14
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
Ok I'll try that - Thx very much you excellent codemaster! 
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.
|
| |
|
|
| Craig |
Posted on 17-12-2012 23:17
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
You do good man and have done for while now and your phpfusion-tips.dk site is a big site been around for years.
|
| |
|