27 coaches online • Server time: 10:46
Forum Chat
Log in
Recent Forum Topics goto Post Secret League Old Wo...goto Post Creating a custom to...goto Post ramchop takes on the...
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
Kinks



Joined: Feb 28, 2007

Post   Posted: Jul 19, 2008 - 23:07 Reply with quote Back to top

Ok,

I'm having problems writing my team BIO. My HTML has worked fine on all of my team bio's up until now:

http://www.fumbbl.com/FUMBBL.php?page=team&op=view&team_id=451076

I edited my Lizardman team bio today, and it went a little strange. I thought I must have deleted something by mistake or something. Having tried a few different thinks, I found that even if I copy and paste a team Bio that I know works wit wont work on my Lizardman team bio.

For example if I copy:

<div style="background-color:grey;">Test</div>

Then paste it, and press update. When I go into team edit again it just says:

<div >Test</div>

Anybody got any idea what is going wrong?

Thanks in advance Smile
Kinks



Joined: Feb 28, 2007

Post   Posted: Jul 19, 2008 - 23:17 Reply with quote Back to top

Well looking at the title of this subject my problem has something to do with the end quote symbols!

_________________
Better lucky than good
momfreeek



Joined: Jan 23, 2006

Post   Posted: Jul 19, 2008 - 23:21 Reply with quote Back to top

It appears the site upgrade has changed behavior of what input it accepts for edited team bios. Existing bios have not been changed, but updates are filtered. Christer will know whether this is intended behaviour to improve possible security holes or an issue to be fixed.

_________________
[url=http://img50.imageshack.us/img50/2121/buddylistbar4ft4.png]Image[/url]
Kinks



Joined: Feb 28, 2007

Post   Posted: Jul 19, 2008 - 23:24 Reply with quote Back to top

So you are having the same problem?

Well as long as it isn't just me. Thanks Smile

_________________
Better lucky than good
momfreeek



Joined: Jan 23, 2006

Post   Posted: Jul 19, 2008 - 23:26 Reply with quote Back to top

yeah. I've just done a quick test and it seems css/javascript are now filtered out.

_________________
[url=http://img50.imageshack.us/img50/2121/buddylistbar4ft4.png]Image[/url]
momfreeek



Joined: Jan 23, 2006

Post   Posted: Jul 19, 2008 - 23:47 Reply with quote Back to top

try using single quotes instead of double quotes. It appears that works fine. ie:

<div style='background-color:grey;'>Test</div>

_________________
[url=http://img50.imageshack.us/img50/2121/buddylistbar4ft4.png]Image[/url]
Astarael



Joined: Aug 14, 2005

Post   Posted: Jul 20, 2008 - 01:04 Reply with quote Back to top

This was fixed in 2003.

_________________
Oh my.
Kinks



Joined: Feb 28, 2007

Post   Posted: Jul 20, 2008 - 02:02 Reply with quote Back to top

momfreeek wrote:
try using single quotes instead of double quotes. It appears that works fine. ie:

<div style='background-color:grey;'>Test</div>


Cool thanks, gonna take me a while to re-write the whole bio Sad
momfreeek



Joined: Jan 23, 2006

Post   Posted: Jul 20, 2008 - 05:08 Reply with quote Back to top

Astarael wrote:
This was fixed in 2003.

It needs fixing again. The upgrade to php5 is no doubt the cause.

I pointed it out to christer so he's aware of it. Probably a good idea not to edit any bios with css/javascript till its fixed cause you will lose the code. If that happens, hit 'back' and save the html to a file.

_________________
[url=http://img50.imageshack.us/img50/2121/buddylistbar4ft4.png]Image[/url]
SeraphimRed



Joined: Feb 01, 2004

Post   Posted: Jul 20, 2008 - 14:52 Reply with quote Back to top

Good catch guys.
I backup all my fluff anyway, but this is worth a bump!

_________________

Enhance YOUR FUMBBL


Image
Nexus_Six



Joined: Jan 15, 2008

Post   Posted: Jul 20, 2008 - 14:55 Reply with quote Back to top

Yeah I seem to have lost my spinners which is a main concern to me.
The effect is horrid and can be seen here.

Edited Spinners : http://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=434797

Unedited Spinners:
http://fumbbl.com/FUMBBL.php?page=team&op=view&team_id=455313

They will still open and close but once saved they seem to be pre-set to open
pac



Joined: Oct 03, 2005

Post   Posted: Jul 20, 2008 - 15:41 Reply with quote Back to top

I pinned down the problem in the case of this team bio.

In my case, style information, where it was in double quotation marks, had been removed. This removed the format of the buttons (so they went to a default shape) and meant that the text following the buttons was not hidden by default (since the thing that defines this is a style).

Putting the style info back in and switching to single quotes fixed the problem. (Thanks, momfreeeek. Smile)

Since the code I use is the same code that a lot of other people use for bio buttons, I'll post what specifically I had to add back in here:


In the code defining your button, you should see:

value="<yourbuttontext>" onclick= …

Note that there is a double space between these two. This is where the button style information has been removed. To customise your button, add something like:

style='width:150px;font-size:10px;margin:0px;padding:0px;' [include the single quote marks]

between value and onclick.


For the other problem, further down, before the text that is meant to be under the button, you should have a tag looking like this:

<span >

Again, there is a mysterious space where style information has been removed. Change this tag to:

<span style='display: none;'> [again, making sure to use single quote marks]


Your button system may differ enough from mine that doing this will not, in itself, fix the problem. Even so, you are probably looking for mysterious spaces where style information is missing, and you need to reinsert it with single quotes.

Hope this helps someone. Smile
eagle009



Joined: Jul 27, 2006

Post   Posted: Jul 21, 2008 - 06:50 Reply with quote Back to top

Thanks heaps people... Keep up the good work!
xcver



Joined: Mar 10, 2005

Post   Posted: Jul 21, 2008 - 11:50 Reply with quote Back to top

so any news around if this will get "fixed" or if we have to re-edit the Bio's?

_________________
"Power without perception is virtually useless and therefore of no true value!" - Ryouken - Master of the Hokuto no Ken Martial Arts
JanMattys



Joined: Feb 29, 2004

Post   Posted: Jul 21, 2008 - 11:55 Reply with quote Back to top

I asked Christer yesterday.
He told me that it's a security issue: old situation allowed for scripts to be exploited to do harm, while the new situation creates the problem in the bios. And he's not sure he wants to get back to the previous situation.
As soon as he makes a decision, he will state it.

He is aware of the problem.

_________________
Image
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic