<![CDATA[ Better Veriword Captcha Display - My Forums]]> https://forums.modx.com/thread/?thread=35158 <![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display?page=2#dis-post-192807
I use NuSphere’s PhpED as my primary code editor. It has a whole modx install as one project, and Revo as another. It will do a search of the entire MODx codebase in about 5-10 seconds (a little longer for a regex search). When the search is done, it shows each found line in a list in the Search Results pane and, if you click on one, it loads the file for editing and puts the cursor on that line in less than a second.

As a bonus, in the Pro version, I get code highlighting, code folding, multi-file regex search and replace, a db browser/editor, a code explorer, ftp, a zillion keyboard shortcuts, a built-in php debugger, code autoformatting, and a NuSoap Client. If I right-click on a function call, it will offer to take me to the function declaration -- even if it’s in a different file. If I right-click on an include file name, it will offer to open the include file. If I start typing a variable name, it will show me a list of variables in the current file to select from.

I couldn’t live without it. Someday I’ll do a review of it for Bob’s Guides.

I should mention that many, if not all, of these capabilities are available in PhpEclipse for free. I happen to like the PhpED user interface better (and it’s a one-step install/upgrade) but many people swear by the Eclipse platform.
]]>
BobRay Dec 04, 2008, 05:37 PM https://forums.modx.com/thread/35158/better-veriword-captcha-display?page=2#dis-post-192807
<![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192806

BobRay is becoming quite an encyclopedia of modx code (old and new), I am impressed that he knew all those code bits off the top of his head (I would have been opening files and searching for hours). Looks like another team member who ’eats php for breakfast’ grin grin grin]]>
dev_cw Dec 04, 2008, 05:16 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192806
<![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192805 sinbad Dec 04, 2008, 12:51 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192805 <![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192804 Thank you very much!]]> sinbad Dec 04, 2008, 12:47 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192804 <![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192803 ]]> mrhaw Dec 04, 2008, 12:46 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192803 <![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192802 Quote from: sinbad at Dec 04, 2008, 06:30 AM

. . . however the manager capacha gives an error in the related file. mind trying again that one?

Oops, missing right bracket and right parend. It should be:

elseif (strcasecmp($_SESSION['veriword'],$captcha_code) != 0) {

(fixed in post above also -- I hope).

Thanks for checking.

Bob
]]>
BobRay Dec 04, 2008, 12:37 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192802
<![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192801
if (strcasecmp($fields['vericode'], $code) == 0) {


as tested. it works perfect smiley

however the manager capacha gives an error in the related file. mind trying again that one?]]>
sinbad Dec 04, 2008, 12:30 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192801
<![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192800
If it’s eForm that’s doing the check for example, you’d need to change this line (line 178 in eform.inc.php):

if($fields['vericode']!=$code) {

to
if (strtolower($fields['vericode']) !=  strtolower($code) ) {


or

if (strcasecmp($fields['vericode'], $code) == 0) {

Which might be a little faster.

WebLoginPE, OTOH, has

if ($_SESSION['veriword'] !== $formcode)


which could be changed to

if (strcasecmp($_SESSION['veriword'],formcode) != 0)


The Manager login comparison is in manager/processors/login.processor.php:

elseif ($_SESSION['veriword'] != $captcha_code) {


would change to

elseif (strcasecmp($_SESSION['veriword'],$captcha_code) != 0 )  {



Note that if the captcha words have non-English characters (e.g. é), you might need a more complicated comparison function.
]]>
BobRay Dec 03, 2008, 11:37 PM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192800
<![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192799 I tried just lowercase the letters in the file but that makes the letters sometime* unreadable inside the box as they drop down...]]> sinbad Dec 03, 2008, 10:32 PM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192799 <![CDATA[Re: Better Veriword Captcha Display]]> https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192798 ]]> rethrash May 28, 2007, 09:00 AM https://forums.modx.com/thread/35158/better-veriword-captcha-display#dis-post-192798