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] v9.0.4 Sign up security image

Login / Search

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

Community saint

I just noticed the malfunctioning sign up security image on Google Chrome version 23.0.1271.64 (Linux). Works okay on Firefox.


Steve
Back to the top
 
Posted
Rating:
#94309
Avatar

I couldn't reproduce this. I don't have a normal Linux desktop available, but I did try on a Cr OS VM, and on Chrome OS, which are both Linux based. I wonder if there is some kind of font problem on this system.

In sources/captcha.php try changing:

Code

overflow: hidden; font-size: 0px; display: inline-block;
to:

Code

overflow: hidden; font-size: 0.001px; display: inline-block; -webkit-text-size-adjust: none; text-size-adjust: none;


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

Community saint

No changes.

Not sure if this gives you any ideas… When I zoom in 300% on that page, the image starts to become readable.


Since most of my members use Linux, I've ask them to look at that page and report their findings and I'll report back what I find out.

Steve
Back to the top
 
Posted
Rating:
#94315
Avatar

I can now reproduce by increasing the 'minimum font size' in the advanced chrome settings (buried under customize fonts).


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

Community saint

Chris Graham said

I can now reproduce by increasing the 'minimum font size' in the advanced chrome settings (buried under customize fonts).
hmmm… Only if I set my minimum font size to 6 or 7, I see an improvement…




Steve
Back to the top
 
Posted
Rating:
#94318
Avatar

Community saint

Chris Graham said

… increasing the 'minimum font size' in the advanced chrome settings (buried under customize fonts).


 :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
Item has a rating of 5 (Liked by sholzy)  
Rating:
#94319
Avatar

What a confusing problem!

This chunk of code seems to fix it:

Code

      echo '<div style="width: '.strval($width).'px; font-size: 0; line-height: 0">';
      for ($j=0;$j<$height;$j++)
      {
         for ($i=0;$i<$width;$i++)
         {
            $colour=imagecolorsforindex($img,imagecolorat($img,$i,$j));
            echo '<span style="vertical-align: bottom; overflow: hidden; display: inline-block; -webkit-text-size-adjust: none; text-size-adjust: none; background: rgb('.strval($colour['red']).','.strval($colour['green']).','.strval($colour['blue']).'); width: 1px; height: 1px"></span>';
         }
      }

(it sits on top of the very similar code which you were editing before)

It seems that Chrome and Opera both had slightly different but related problems.

Techie explanation:

Basically they were both trying to position the little pixel boxes according to the text base line (that's the line that chops off the bottom of 'g' and 'p' etc, like on lined paper). They computed that based line based on minimum font size (overriding our specified negligible text size), even though they were rendering based on a zero line height that effectively would truncate any difference in the text base line.


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

Community saint

A picture is worth a thousand words!  :thumbs:


Don't worry, Chris. If there are more of these oddball bugs, I'll find them!  :lol:  :thumbs:

Steve
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: