HTML Editing Issue

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
RockRocks787
Posts: 55
Joined: Sun Sep 05, 2010 5:49 am

HTML Editing Issue

Post by RockRocks787 » Mon Mar 11, 2013 4:31 pm

I'm trying to add some content to our homepage, including a Facebook and Twitter button, but when I paste the code into the website and click save, it seems to be altering the code for some reason. Am I doing something wrong?
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: HTML Editing Issue

Post by FTMSupport » Mon Mar 11, 2013 4:50 pm

We use an Editor called TinyMCE to edit the home page (you can see more information here http://www.tinymce.com/" onclick="window.open(this.href);return false;). This editor validates HTML to make sure it is valid and will filter potentially harmful attributes and elements out of the HTML. If you can post what you are trying to put in your home page, we can see if there is something that we can change on TinyMCE to allow it. You can change anything confidential to "XXX" if you want to paste the HTML here, or you can email it to us at support@iscoresports.com.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
RockRocks787
Posts: 55
Joined: Sun Sep 05, 2010 5:49 am

Re: HTML Editing Issue

Post by RockRocks787 » Mon Mar 11, 2013 5:38 pm

This is what I'm putting into the html editor:
<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="pages/xxx/###"></a>
<a class="addthis_button_twitter_follow" addthis:userid="xxx"></a>
<a class="addthis_button_youtube_follow" addthis:userid="xxx"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-513e62ec47cc8d19"></script>
<!-- AddThis Follow END -->

The html editor is changing the code to this:
<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style"><a class="addthis_button_facebook_follow"></a><a class="addthis_button_twitter_follow"></a><a class="addthis_button_youtube_follow"></a></div>
<script src="http://s7.addthis.com/js/300/addthis_wi ... ec47cc8d19" type="text/javascript"></script>
<!-- AddThis Follow END -->

It appears to be taking out the user ids to my facebook and twitter.
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: HTML Editing Issue

Post by FTMSupport » Mon Mar 11, 2013 6:12 pm

Yeah, "addthis:userid" is a very non-standard attribute for the <a...> element We have modified our version of TinyMCE to now allow that attribute. Try again and let us know if it works.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
RockRocks787
Posts: 55
Joined: Sun Sep 05, 2010 5:49 am

Re: HTML Editing Issue

Post by RockRocks787 » Mon Mar 11, 2013 7:23 pm

It's still rearranging things slightly. This is what I'm getting now:

<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style"><a class="addthis_button_facebook_follow" addthis="userid"></a><a class="addthis_button_twitter_follow" addthis="userid"></a><a class="addthis_button_youtube_follow" addthis="userid"></a></div>
<script src="http://s7.addthis.com/js/300/addthis_wi ... ec47cc8d19" type="text/javascript"></script>
<!-- AddThis Follow END -->

I'm going to send an email with exactly what I'm looking to put in.
Post Reply