Page 1 of 1
How I broke the shout box and how it can be fixed 06/09/2014 at 22:32 #64441 | |
arabianights
138 posts |
So, it seems as though the shoutbox doesn't handle long strings without white space, something I accidentally found out today by typing "agggggggggggggggggghhhhhhhhhhhhhhhhhhhhhh" into it. Well it handles them fine but it expands to a huge size which ain't great. The quickest, although not elegant for a couple of reasons I won't bother going into given the thing is using tables for markup, way to fix this is to add these three lines to your style sheet: #KIDE_div{ width: 200px; } Would suggest that this is done as it's something that the site should be able to handle. I'm actually quite surprised that the shout box doesn't handle it cause I'm assuming it's not been written by SimSig but is a module of some kind where surely this sort of thing has happened before... but this is probably irrelevant :D Anyway, until SimSig sort this out, users can fix this in their browser by typing: javascript: document.getElementById('KIDE_div').style.width = "200px"; into their address bar. This won't work if you just copy and paste in most modern browsers because they want to discourage malevolent elements from giving random javascript to people. Last edited: 06/09/2014 at 22:38 by arabianights Log in to reply The following user said thank you: GeoffM |
How I broke the shout box and how it can be fixed 07/09/2014 at 09:40 #64442 | |
y10g9
895 posts |
the other way to fix it from experience is you just need to type in enough information to the shoutbox so that the text with no spaces in falls off the bottom. this will mean that it will return to normal edit to add box should be "fixed" (that is the bad text has been removed, and so can break again) and no longer appear wide screen to anyone. however if people write more than 30 characters with no space then it will cause the box to go into widescreen again. Last edited: 07/09/2014 at 09:45 by y10g9 Reason: edit to add Log in to reply |
How I broke the shout box and how it can be fixed 07/09/2014 at 11:03 #64444 | |
Peter Bennet
5402 posts |
It was working OK this morning when I tested it. Peter I identify as half man half biscuit - crumbs! Log in to reply |
How I broke the shout box and how it can be fixed 07/09/2014 at 11:27 #64445 | |
peterb
452 posts |
Peter, I'd suggest that it isn't in fact working OK. Removing your QQQ message might fix the tables. Log in to reply |
How I broke the shout box and how it can be fixed 07/09/2014 at 11:29 #64446 | |
mfcooper
707 posts |
" said:Peter,I "Forced Refreshed" (CTRL+F5) the webpage and that sorted it out for me. Log in to reply |
How I broke the shout box and how it can be fixed 07/09/2014 at 11:37 #64447 | |
Lardybiker
771 posts |
Parts of the SimSig website may be "cached" by your machine. A forced refresh of the SimSig page should fix it.
Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 09:09 #64471 | |
Danny252
1461 posts |
The fix has broken the mobile version of the site, and it now permanently spills over, blocking a number of buttons.
Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 10:18 #64473 | |
broodje
184 posts |
I can confirm this on both iOS (chrome browser) and on my android (htc) device.
Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 19:04 #64482 | |
Albert
1315 posts |
I assume it would be possible to change the width property into max-width to avoid the shoutbox overflowing other content on mobile devices.
AJP in games Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 20:05 #64483 | |
mfcooper
707 posts |
Yet I managed to fix this on my iPhone by refreshing the page...
Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 20:20 #64486 | |
headshot119
4869 posts |
" said:Yet I managed to fix this on my iPhone by refreshing the page...As did I! I can now scroll left to right on the shout box as well. ( though that may not be new behaviour) "Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer Log in to reply |
How I broke the shout box and how it can be fixed 08/09/2014 at 21:01 #64487 | |
broodje
184 posts |
I had to force chrome to fetch the desktop version (is there even a mobile version of the site?) it is working now. Refreshing didn't do anything useful, except for downloading the information from the site again (it didn't rebuild the site)
Log in to reply |
How I broke the shout box and how it can be fixed 09/09/2014 at 08:54 #64491 | |
sunocske
121 posts |
Ctrl+F5 combo did the job well to me.
Log in to reply |