HTML with CSS

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.
User avatar
Jaskegreen
Posts: 88
Joined: Thu May 06, 2010 3:32 pm
Location: San Diego North

Re: HTML with CSS

Post by Jaskegreen » Mon Mar 07, 2011 11:01 pm

FTM,
Would you consider moving to CKEditor?
http://ckeditor.com/" onclick="window.open(this.href);return false;

I found a discussion on how to restrict/allow certain tags.
http://stackoverflow.com/questions/2912 ... n-ckeditor" onclick="window.open(this.href);return false;

Here is the developers site:
http://docs.cksource.com/CKEditor_3.x/Developers_Guide" onclick="window.open(this.href);return false;
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: HTML with CSS

Post by FTMSupport » Mon Mar 07, 2011 11:29 pm

It looks like CKEditor has license fees involved for using it. The "cbrte" editor does not. If we can not find a solution with cbrte, we may look into alternatives, but we are hoping there is an option in cbrte to enable STYLE editing as well.

Thank you for pointing to an alternative.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
BlueClawDad
Posts: 42
Joined: Fri Mar 04, 2011 8:48 am

Re: HTML with CSS

Post by BlueClawDad » Tue Mar 08, 2011 6:48 am

I was able to use an inline cascading style tag to allow for custom bullets in a list. I simply entered the parameter into the style attribute like this
<ul style="list-style-image: url(myimageurl)"

You can see it on my site at http://baseball.iscorecentral.com/baltimoreblueclaws

Thanks for providing the name to the plug in, when I have a chance I'll poke around and see if I can get the styles to work
Last edited by BlueClawDad on Tue Mar 08, 2011 10:06 am, edited 1 time in total.
User avatar
BlueClawDad
Posts: 42
Joined: Fri Mar 04, 2011 8:48 am

Re: HTML with CSS

Post by BlueClawDad » Tue Mar 08, 2011 9:15 am

OK, since putting <STYLE> tag in the <BODY> is considered bad form, they are clearly being stripped by the validator. Other WYSIWIG editors like, TinyMCE allow you to override this functionality with a statement during initialization or an entry in a configuration file. To allow <STYLE> tags in TinyMCE you need to tell the plugin that the tags are valid during initialization...something like this

tinyMCE.init({
valid_elements : '*[*]',
valid_children:'+body[style]'
});

My guess is that the Kevin Roth editior ( I think that is what's being used) will do the same thing, we just need to find the right Syntax and then get our friends at FTM to implement the solution. I'll keep looking
User avatar
brentwalker
Posts: 242
Joined: Thu Jul 30, 2009 7:13 pm
Location: Houston Area

Re: HTML with CSS

Post by brentwalker » Tue Mar 08, 2011 12:17 pm

BlueClawDad, I was not able to get it to work. What I did was to go back into my file and format each element.

I also found out that the plugin mentioned above also strips out any formatting for <th> and I had to go back in and fix those as well.

FTM, I have an idea...what if you allowed each team site owner the ability to use the existing editor OR
allow us to upload our own file that would then be called for this part of the frameset? This would allow us to build our own inline CSS which is better than NOT having CSS at all. Plus for those of us who have Dreamweaver or other HTML editors we can use that opposed to having to copy all the HTML code into your editor.

It would also allow us the capability to identify our own hyperlink colors which is also a problem right now using what you have provided.

Would this work for you guys? The file sizes should actually be smaller given we can re-use our formatting elements via CSS thus making the files smaller in general.

Just an idea.

Brent
User avatar
BlueClawDad
Posts: 42
Joined: Fri Mar 04, 2011 8:48 am

Re: HTML with CSS

Post by BlueClawDad » Tue Mar 08, 2011 12:51 pm

If I'm not mistaken every site has its own CSS page...SO theoretically we could be allowed to modify the existing CSS or upload a new one to replace it. Replacing might actually be easier (and safer), because then you could always revert to the original style sheet if you screw things up. This would be similar to the image uploads, where you can see all the images that you have uploaded and can choose the one you want to apply.

My guess is that the styles in the drop down are populated by reading the CSS.
User avatar
OhioTex
Posts: 5501
Joined: Sun May 10, 2009 6:48 am
Location: Columbus OH

Re: HTML with CSS

Post by OhioTex » Tue Mar 08, 2011 12:52 pm

You all web heads rock.. And are way over my head...

....But while on the subject of web enhancements..reminds me to resurface an idea from last summer ... Add some more customizable pages either a custom menu tab, or some editable canvas on top half of stats, and gam pages..
Post Reply