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] Here's an odd bug...

Login / Search

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

Community saint

Some things you just can't make up.

Ok, this falls under the "show pics, or it didn't happen" category…  

After finally getting around to changing my database over to the utf8 character set, I click the login button for my closed site. This is what I see…



Entered my credentials and hit enter. Now my site is being presented as an overlay. This is not what I was expecting to see.  :o



Clicking the site's logo expands the overlay presenting my whole front page.  :lol:



I'm sure this has something to do with the character set change since it was working correctly just the day before, prior to the db change.

I find it more humorous than annoying and couldn't decide whether to post it here as a bug, or in "General" as entertainment.  :lol:



Steve
Back to the top
 
Posted
Rating:
#96589
Avatar

Hi,

This is a nasty little bug with the overlays and SSL. The login page is SSL, most of your site is not, and Javascript is not allowed to communicate between SSL and non-SSL frames.

Please try this change in themes/default/templates/JAVASCRIPT_MODALWINDOW.tpl:

Code

         href: url
to:

Code

         href: url.replace(/^http:/,window.location.protocol)

This should force anything in an overlay to use the same protocol as the page you're currently on. It should not affect security, as the overlay will continue to submit with SSL, which is where it's actually needed.

(I will post a separate hotfix, but you're running the new overlay code, hence the manual instructions)


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:
#96592
Avatar

Community saint

No change.

Steve
Back to the top
 
Posted
Rating:
#96593
Avatar

I'll take a look again soon, but quickly, did you empty the template cache? In v9, this template change can't be automatically picked up because it's pre-compiled into JAVASCRIPT.tpl rather than loaded independently.


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:
#96594
Avatar

Community saint

Yes.

I cleared it several times just to make sure since I've just finished my 21st day working without a day off and may have missed it from not thinking clearly.

No problem Chris, take your time as I'm probably the only other person on v9 with the new overlays.

Steve
Back to the top
 
Posted
Rating:
#96595
Avatar

Whoops, please try:

Code

href: url.replace(/^https?:/,window.location.protocol)


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:
#96596
Avatar

I cleared it several times just to make sure since I've just finished my 21st day working without a day off and may have missed it from not thinking clearly.

Getting a day off soon?


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:
#96597
Avatar

Community saint

Chris Graham said

I cleared it several times just to make sure since I've just finished my 21st day working without a day off and may have missed it from not thinking clearly.

Getting a day off soon?

:shake:

Maybe next month. O_o

Steve
Back to the top
 
Posted
Rating:
#96598
Avatar

Community saint

Chris Graham said

Whoops, please try:

Code

href: url.replace(/^https?:/,window.location.protocol)


 :thumbs: That worked!

Steve
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: