Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 21 22 23 24 25 26 27 28 29 30 Next > End >>
Re:CB goes Captcha!
Date: 2007/04/08 20:43 By: dartagnan Status: User  
Karma: -1  
Junior Joomlapolitan

Posts: 46
graphgraph
Hello,

I installed captcha with joomla 1.0.12. and CB1.0.2
No major problem except recently, one user can't see the image displayed by captcha and this on 2 computers, at work and at home, apparently using IE6.
As this is the only person with the problem I don't understand what happens. Why only her can't see this image? I'm afraid it could happen with other people... (To note this person is from China but the other users as well and have no problem)
The website is www.asian-addict.com


thanks for any help
Planet Asia Asian tradition culture and community
Click here to see the profile of this user The administrator has disabled public write access.

Re:Invalid Security Code
Date: 2007/04/09 01:53 By: spacewalk Status: User  
Karma: 2  
Fresh Joomlapolitan

Posts: 15
graphgraph
I get the captcha image just fine. But whenever I try to register a new user for the site, I get the error "Invalid Security Code."

If I disable "registration" in the plugin back-end, I still get this error during registration.

The only fix is to unpublish the plug-in.

Do we know anything about this scenario? I'd love to use the captcha plug-in.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Invalid Security Code
Date: 2007/04/09 08:17 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 5981
graph
spacewalk wrote:
I get the captcha image just fine. But whenever I try to register a new user for the site, I get the error "Invalid Security Code."

If I disable "registration" in the plugin back-end, I still get this error during registration.

The only fix is to unpublish the plug-in.

Do we know anything about this scenario? I'd love to use the captcha plug-in.


did you read the rest of this thread ?

it mentions one known case that this happens.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB goes Captcha!
Date: 2007/04/09 18:05 By: simk318 Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 4
graphgraph
i have similar type of configuration still doesn't work

Joomla! Register Globals Emulation: OFF
Register Globals: OFF
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: none
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none


Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC
Apache/1.3.37 (Unix) PHP/5.1.4 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a


please help
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB goes Captcha!
Date: 2007/04/09 19:28 By: spacewalk Status: User  
Karma: 2  
Fresh Joomlapolitan

Posts: 15
graphgraph
Nick A. was correctly chastising me for not reading the entire thread. (I did read a lot of it, Nick. It's just a really long thread!)

Are you using the JSMF bridge for the SMF forum software? If so, you have to go into SMF admin and disable "use database for sessions."

If you're not using JSMF, I have no idea what's wrong.

As a sidenote, this issue (plus being reminded that Joomlapolis itself uses Joomlaboard) finally caused me to abandon JSMF and go with Joomlaboard for a site forum. JSMF is a heroic piece of work, but I've had it with bridges and patching core Joomla files.

I hadn't used Joomlaboard in more than a year. It's not bad at all.



simk318 wrote:
i have similar type of configuration still doesn't work

Joomla! Register Globals Emulation: OFF
Register Globals: OFF
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: none
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none


Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC
Apache/1.3.37 (Unix) PHP/5.1.4 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a


please help
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB goes Captcha!
Date: 2007/04/10 04:07 By: phlux0r Status: User  
Karma: 6  
Fresh Joomlapolitan

Posts: 12
graphgraph
Hack to use the cb Captcha on the Joomla Contact form

This worked for me, your experience may vary.

Joomla version 1.0.12
CB version: 1.0.2
CB Captcha plugin version: 1.0 (14.Feb.2007)

Files to hack:
      /components/com_comprofiler/plugin/user/plug_cbcaptcha/cb.captcha.php

      /components/com_contact/contact.html.php

      /components/com_contact/contact.php



1. cb.captcha.php
Since we're using the plugin code outside of the CB plugin framework we need to put all the $_PLUGINS->registerFunction() calls in an if statement like so:
Code:

 if ($_PLUGINS) {     $_PLUGINS->registerFunction'onBeforeRegisterForm',    'onBeforeRegisterForm',    'getcaptchaTab' );     $_PLUGINS->registerFunction'onBeforeUserRegistration','onBeforeUserRegistration''getcaptchaTab' );     $_PLUGINS->registerFunction'onLostPassForm',         'onLostPassForm',                'getcaptchaTab' );     $_PLUGINS->registerFunction'onLostPassForm',         'onLostPassFormB',                'getcaptchaTab' );     $_PLUGINS->registerFunction'onBeforeNewPassword',    'onBeforeNewPassword',    'getcaptchaTab' );          $_PLUGINS->registerFunction'onAfterEmailUserForm',         'onAfterEmailUserForm',    'getcaptchaTab' );     $_PLUGINS->registerFunction'onBeforeEmailUser',     'onBeforeEmailUser''getcaptchaTab' ); }



2. contact.html.php


Around line 685 (after the contact text textarea) insert this code:
Code:

 // hack - added CB captcha to the contact form require_once($mosConfig_absolute_path.'/administrator/components/com_comprofiler/plugin.class.php'); require_once($mosConfig_absolute_path.'/components/com_comprofiler/plugin/user/plug_cbcaptcha/cb.captcha.php'); $cbCaptcha = new getcaptchaTab; $CaptchaImage $cbCaptcha->_getHTMLcaptcha(); echo "<br />\n" .$CaptchaImage"<br />\n"; echo "    <label for=\"security_code\">" _UE_CAPTCHA_Label ":</label>\n"; echo "    <br /><input class=\"inputbox\" type=\"text\" name=\"".$cbCaptcha->_getPagingParamName("captcha")."\"  id=\"security_code\" value=\"\" size=\"20\" />\n"; // end hack



3. contact.php

At the top of the file, before the switch statement insert:
Code:

 // hack start a session here for the security images if ( ! session_id() ) {     session_start(); } // end hack



Then around line 435 after:
Code:

 if ( !$email || !$text || ( JosIsValidEmail$email ) == false ) ) {     mosErrorAlert_CONTACT_FORM_NC ); }


and before:

Code:

     $prefix sprintf_ENQUIRY_TEXT$mosConfig_live_site );



Insert:
Code:

 // RP hack captcha check if ( ! (($_SESSION['security_code'] == mosGetParam($_REQUEST,"captcha")) && (!empty($_SESSION['security_code'])) ) ) {     mosErrorAlert"Invalid Security Code" ); } // end hack



That's it - enjoy a secure contact form.

Post edited by: phlux0r, at: 2007/04/10 04:08
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 21 22 23 24 25 26 27 28 29 30 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login