Page 1 of 1
Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 6:14 am
by wplattner
I was hoping anyone might share some HTML expertise with me. My request is actually very simple. We would like to add a Twitter button, Twitter Follow button, and a Facebook button. Seems simple enough, but when I enter the html code that is created for the Twitter button from the Twitter site, it is always truncated.
Our Site is
http://baseball.iscorecentral.com/archiewhirlwinds2011" onclick="window.open(this.href);return false;
Twitter created Twitter button:
Code:
Code: Select all
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://baseball.iscorecentral.com/archiewhirlwinds2011" data-text="#ArchieLadySoftball" data-count="none" data-via="Wade_Plattner">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Iscore Html Editor always adjusts the above code to the following:
Code:
Code: Select all
<p><a class="twitter-share-button" href="http://twitter.com/share">Tweet</a></p>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
Could this be an HTML version issue? Any help would be greatly appreciated. I hope you are still using Iscore.
Thank you in advance for any assistance/expertise.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 7:14 am
by FTMSupport
Our HTML editor validates all HTML, and the "data-url", "data-text", "data-count", and "data-via" are not valid attributes on the <a ...> tag.
We have modified our HTML editor to now allow them even though they are not standard, so you should now be able to put this code in your website.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 8:17 am
by wplattner
This is Great! Thank you so much.
Now I can hope for Iscore Basketball on Android. Thanks Again.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 8:36 am
by wplattner
OK. It looks like there is a similar issue with the Facebook code
Facebook code for the like button entered:
Code: Select all
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=188357474567273&xfbml=1"></script><fb:like href="http://baseball.iscorecentral.com/archiewhirlwinds2011" send="true" width="450" show_faces="true" font=""></fb:like>
Iscore HTML Editor truncates or changes to:
Code: Select all
<script src="http://connect.facebook.net/en_US/all.js#appId=188357474567273&xfbml=1"></script>
I am hoping you might have s similar fix or a possible work around for this one too. Thanks again.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 8:46 am
by wplattner
As an alternative for the Facebook like button I have tried the following code:
Code: Select all
<iframe src="http://www.facebook.com/plugins/like.php?app_id=188357474567273&href=http%3A%2F%2Fbaseball.iscorecentral.com%2Farchiewhirlwinds2011&send=false&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
And Iscored HTML Editor returns/truncates/changes that code to:
Code: Select all
<p><iframe src="http://www.facebook.com/plugins/like.php?app_id=188357474567273&href=http%3A%2F%2Fbaseball.iscorecentral.com%2Farchiewhirlwinds2011&send=false&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font&height=80"></iframe></p>
Please advice on best possible solution.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 8:52 am
by FTMSupport
OK, this one should work now as well.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 8:54 am
by FTMSupport
fyi... for the link to the site, any of these will work (we notice you are actually softball):
http://baseball.iscorecentral.com/archiewhirlwinds2011" onclick="window.open(this.href);return false;
http://iscorebaseball.com/archiewhirlwinds2011" onclick="window.open(this.href);return false;
http://iscoresoftball.com/archiewhirlwinds2011" onclick="window.open(this.href);return false;
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 9:01 am
by wplattner
FTMSupport wrote:OK, this one should work now as well.
Looks Great Thank you.
Re: Adding Twitter / Facebook button to the website
Posted: Fri Sep 02, 2011 9:02 am
by wplattner
Thanks. I didn't realize we had the "softball" option in the URL. This is very helpful.