Adding Twitter / Facebook button to the website

We will try and answer Questions in this forum. If you are having any issues with iScore Baseball, this is probably the best place to start. You can also search historical posts here.
Post Reply
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 6:14 am

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.
Last edited by wplattner on Fri Sep 02, 2011 12:13 pm, edited 1 time in total.
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Adding Twitter / Facebook button to the website

Post by FTMSupport » Fri Sep 02, 2011 7:14 am

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.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Re: Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 8:17 am

This is Great! Thank you so much.

Now I can hope for Iscore Basketball on Android. Thanks Again.
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Re: Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 8:36 am

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.
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Re: Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 8:46 am

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.
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Adding Twitter / Facebook button to the website

Post by FTMSupport » Fri Sep 02, 2011 8:52 am

OK, this one should work now as well.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Adding Twitter / Facebook button to the website

Post by FTMSupport » Fri Sep 02, 2011 8:54 am

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;
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Re: Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 9:01 am

FTMSupport wrote:OK, this one should work now as well.
Looks Great Thank you.
Last edited by wplattner on Fri Sep 02, 2011 9:44 am, edited 1 time in total.
wplattner
Posts: 7
Joined: Tue Aug 23, 2011 6:52 am

Re: Adding Twitter / Facebook button to the website

Post by wplattner » Fri Sep 02, 2011 9:02 am

FTMSupport wrote: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;

Thanks. I didn't realize we had the "softball" option in the URL. This is very helpful.
Post Reply