HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] - 9.0.2 - Chatroom

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#91969 (In Topic #18465)
Avatar

Community saint

mythus' tale of woe about spammers stealing his bandwidth (another thread) encouraged me to look at that area of my virgin 9.0.2 installation.

Horror!



So, "…can't be that much of a problem," thought I, and I happily 'edited' the HTML in Chrome's Developer Tool, removed the 'marquee' reference, and voilą, all was well again in the Chatroom. However, noted the warning about Chrome not rendering marquee's, although I didn't give it any further thought!



EXCEPT

Refreshing the browser (Chrome) sends it back to its original display. Bummer!

Other browsers:
  • IE9 - displays fine
  • Firefox - displays fine
  • Opera - displays fine
Problem is that I can't find the right file to edit to make Chrome play nicely! I've tried CHAT_ROOM_SCREEN.tpl and CHAT_SCREEN.tpl, one at a time, and when that didn't work, both together. Nothing, Nada, no cigar!

Any suggestions, other than "Don't use Chrome!"?

 :o


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#91970
Avatar

Community saint

Its in CHAT_SCREEN.tpl. Look for:

Code

<div class="messages_window"><div{$?,{$VALUE_OPTION,html5}, role="marquee"} id="messages_window">&nbsp;</div></div>

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#91971
Avatar

Community saint

Thanks for the leg-up temp.

I didn't make myself clear earlier. I tried removing the role="marquee" from both templates, but they didn't want to play nice in Chrome.

I continue to get the display I show in the first image. However, if that is NOT the code that needs to be removed, I'd be very grateful for a pointer in the right direction!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#91974
Avatar

Community saint

I see now.

There is COMCODE_TICKER.tpl which will render marquees in chrome with a workaround, although I don't know off the top of my head how best you'd go about integrating it.

My first though is maybe replacing:

Code

<div class="messages_window"><div{$?,{$VALUE_OPTION,html5}, role="marquee"} id="messages_window">&nbsp;</div></div>

with:

Code

{$COMCODE,[ticker="200" speed="1"]<div class="messages_window"><div{$?,{$VALUE_OPTION,html5},} id="messages_window">&nbsp;</div></div>[/ticker]}

which might do the trick.

In any case Chris probably needs to update CHAT_SCREEN.tpl to use ticker instead as it has a non-marquee fall-back.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#91981
Avatar

Nope, nothing to do with marquees but effort appreciated :). role="marquee" is an ARIA thing and semantical, it's not related to what you think of as a marquee.

The latest version of Chrome caused this and I placed a bug fix in the bugs database last night.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91983
Avatar

What this was is…

The chat room sends pre-rendered messages in an XML feed. ocPortal then imports those messages into the XHTML document. Chrome could never do that because when you import them it is unable to apply CSS to it, for some odd reason. But we had a detection for that in the code, detecting when normal XHTML functionality was not working for the imported XML. The latest Chrome broke that – it reported the functionality, but still was broken and not rendering CSS.

Playing with the dev tools led you to believe it was a markup problem, but actually you will have triggered Chrome to rebuild that part of the XHTML and that would have temporarily worked around it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91986
Avatar

Community saint

Interesting…

I've read somewhere before that role could also be used as an enhanced css selector, and the way Fletch was describing things I assumed that thats how it was being used.

Combine that with the "Slower, but chrome does not support marquee's" comment and I was off chasing wild geese :lol:.


Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#91996
Avatar

Community saint

temp1024 said

Interesting … I was off chasing wild geese …

To each his own - you chasing wild geese, me wondering where my rightful place in life really is.

I appear to be successfully distancing myself from those guys, but one never knows if they'll turn around and catch up!



 :o


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#91998
Avatar

Community saint

Chris Graham said

The latest version of Chrome caused this and I placed a bug fix in the bugs database last night.
I guess I'll just have to wait until they respond to your bug report!

However long that takes them …!!

bummer


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#91999
Avatar

in ours


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#92000
Avatar

Community saint

Chris Graham said

in ours
AH!

The future already appears rosier!

 :thumbs:




Update:

Took hotfix #848 and it has 'cured' the problem!

thanks



Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#92087
Avatar

Community saint

One of my members was just telling me about this issue just yesterday. Since I use chromium on linux, I never knew of the issue, and assumed it was something on his end.

So thanks for this! Now I can say that it is fixed!

Points coming your way Fletch!

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#92103
Avatar

Community saint

mythus said

Points coming your way Fletch!
Thanks. Wasn't necessary - especially since you triggered the 'check' by mentioning your Shoutbox problems!

BTW (haven't trawled the Forums completely yet), has your problem been fixed? Hope so, because it will make Brian happy too!

 :o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: