Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[NEW] and [UPDATED] Plugins by RGB World

Quote Reply
[NEW] and [UPDATED] Plugins by RGB World
I have released 1 new plugin, and have updated all other RGB World plugins.

NEW Plugin - CAPTCHA
CAPTCHA is an image verification plugin used to help prevent robot-submitted forms throughout your website.

Features:
- A unique encryption key per site
- Optional verification for registered users
- Admin specified list of allowed characters and captcha length.
- Supported Forms: User Signup, Add Link, Modify Link, Add Review and Rate Link.
- CAPTCHA verification can be enabled/disabled on a per-form basis.

CAPTCHA is include FREE with the ContactForm and Guestbook plugins,
or it can be purchased separately to be used with the standard forms.

A live demonstration can be seen on the Luna Templates demo below.

UPDATED Plugins
These 3 plugins have been updated to be compatible with mod_perl, and
to take advantage of the new includes available with 3.2.0 luna templates.

- ContactForm includes CAPTCHA
- Guestbook includes CAPTCHA
- ZipCodeSearch

All plugins have LOWER PRICES, and there are special discounts
when purchasing multiple plugins.

Cheers,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] [NEW] and [UPDATED] Plugins by RGB World In reply to
The form verification is good and I would like to buy it but one problem with most of these image verification systems is that the images are not legible (especially to non-compter savvy users like my users). With the dark and funky background sometimes it is hard to say the difference between 1 or I or l (for example) and people don't like using them (neither do I). Can they be made plain and simple without dark background and easy to read? If so, it will be a great mod.

Thanks
Quote Reply
Re: [socrates] [NEW] and [UPDATED] Plugins by RGB World In reply to
There are separate options for opacity, number of circles, number of polygons,
lines, contrast and the like. You can also force uppercase or not, and specify
a list of allowed characters (omitting O and 0, 2 and Z, etc...)

It would only take a minute to adjust the settings to your liking.
Unfortunately some of the settings have to be edited directly in a php source file
because I was having problems integrating perl with php. Php is used only to
create the image, so your server does NOT require Image::Magick or GD::Image.
I was planning on adding additional image creation modes if there is an interest.

Hope that helps,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] [NEW] and [UPDATED] Plugins by RGB World In reply to
Hello

Here are small bugs (I think) in the contact form and Captcha plug ins..

1- When the CAPTCHA plug in hooks are enabled the add form is returing an error (User must select a category first)
2- The CAPTCHA is not showing up using the directions provided when inserted in include_form but will when added directly to the add.html page.
3- when the user_required_admin in Contact_form plug in is checked for No, the users are getting a "Malformed CAPTCHA Cookie" error.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] [NEW] and [UPDATED] Plugins by RGB World In reply to
I am looking into these possible bugs...

In Reply To:
1- When the CAPTCHA plug in hooks are enabled the add form is returing an error (User must select a category first)[/quote]
Is the actual error this?:

Quote:

Oops, we had the following problem:
Please first visit the category you wish to add or move your link to, then click on Add/Modify a Link.
I get that error when db_gen_category_list is set to No. You must navigate to a category, then select add link.
Still looking though... Are you using AJAX for db_gen_category_list?

-----------------------------------

In Reply To:
2- The CAPTCHA is not showing up using the directions provided when inserted in include_form but will when added directly to the add.html page.[/quote]Is
user_verify in CAPTCHA setup set to 'No" ? If it is, then logged-in users are not shown the CAPTCHA image. Try setting it to yes. Additionally, you would have to turn off the user_add_link hook.

It should work with the code added to include_form... I don't override add.html at all, I am using default template and have only modified the include_form in my live demo.

The template code that comes into play ( added to include_form) is:
<%if $page_id eq 'add' and Plugins::CAPTCHA::Enabled('user_add_link')%>
...
<%endif%>

You could try deleting the if and endif lines and see if it displays the CAPTCHA image via the include_form

------------------------------

Regarding item 3...

I need more info on your settings to test this...
Specifically what is '
user_verify' set to in the CAPTCHA plugin setup?
Is the error generated when submiting the form or when displaying it?

I can't seem to reproduce this on my dev site either. I'll keep trying.
I wasn't able to test at your site without creating an account.

----------------------------

I'll keep looking, those are just my first run through comments/questions.

Chris


RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] [NEW] and [UPDATED] Plugins by RGB World In reply to
Hello,

I have the same problem and with use_captcha on No.

It is possible to propose a version for Contact_Form without CAPTCHA ?

I use the user_required_admin and user_required_link on Yes.

Thank you.

Oyo

Last edited by:

Oyo: Oct 15, 2006, 3:17 AM
Quote Reply
Re: [rgbworld] [NEW] and [UPDATED] Plugins by RGB World In reply to
Hello

1- We did navigate to the bcategory first, the add page does have a category listed on it but when clicking submit we still get the error:
Oops, we had the following problem:
Please first visit the category you wish to add or move your link to, then click on Add/Modify a Link.

We are not using Ajax

2- The solution did work and it does show it now BUT still getting error 1.
3-

In CAPTCHA:

captcha_chars Convert user input to uppercase? If yes, be certain to enter only uppercase letters in the captcha_chars above captcha_upper No Yes Require registered users to validate forms? user_verify No Yes

IN CONTACT_Form

Require user login to contact the site administrator? user_required_admin No Yes Allow users to email Link Owners? email_link_owners No Yes Require user login to contact Link Owners? user_required_link No Yes Send a copy of all emails to site administrator? cc_admin No Yes Convert line breaks in email message to < br /> tags? convert_br_tags No Yes Display CAPTCHA image verification to send email? use_captcha No Yes

Thank you
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] [NEW] and [UPDATED] Plugins by RGB World In reply to
Still trying to figure this out, it is hard when it works properly on my site...

In Reply To:
2- The solution did work and it does show it now BUT still getting error 1.
[/quote]
There was an update to include_form.html in the 3.2.0 update from GT.
Please confirm that you have updated your include_form.html. See template
changes for 3.1.0 to 3.2.0 include_form.html

I have updated the CAPTCHA plugin to accomodate the additional setting
for db_gen_category_list introduced with 3.2.0 update.

I have thoughougly tested it it here... see pages 2 and 3 for my comments
http://www.supportmusicians.com/cgi-bin/links_dev/page.cgi?g=world%2Findex.html;t=luna;d=1

I will PM you an updated CAPTCHA plugin momentarily.

I have not addressed the Contact Form issue. I am unable to tell from your post what
your settings are. But quite simply, if use_captcha is set to 'no' in ContactForm > Setup, it should not
display or attempt to verify using an image.

Thanks and sorry for the troubles.
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Quote Reply
Re: [Oyo] [NEW] and [UPDATED] Plugins by RGB World In reply to
I haven't had a chance to look into the ContactForm issue, but it really shouldn't be
attempting to do any type of image verification if indeed use_captcha is set to 'No'

You could try changing this line (141 in ContactForm.pm):
Code:
if ($opts->{use_captcha}) {

to

if ($opts->{use_captcha} == 1) {


Code:
my $opts = Links::Plugins->get_plugin_user_cfg('ContactForm');

if ($opts->{use_captcha}) {

# grab the CAPTCHA plugin settings...
my $prefs = Links::Plugins->get_plugin_user_cfg('CAPTCHA');
my $user_exists = ($USER) ? $USER->{Username} : '0';

if ( (! $user_exists) || ($user_exists and $prefs->{user_verify}) ) {

use Plugins::CAPTCHA;

my $user_pass = $IN->param('User_CAPTCHA');
my $results = Plugins::CAPTCHA::captcha_test($user_pass);
if (defined $results->{error}) {
return { error => $results->{error} };
}

}
}



As you can see, the code to test the image should not even execute if use_captcha is 'no' or 0.

Still looking though. As for a separate version without verification, I don't really
want to have to have 2 versions of the plugin. I will fix it so that no verification
code executes when CAPTCHA is turned off in ContactForm >Setup.
Really, it should be working that way now :-(

Thanks and give me another day or 2.
If you don't mind giving me admin access via PM, I can look closer.

Chris

RGB World, Inc. - Software &amp; Web Development.
rgbworld.com

Last edited by:

rgbworld: Oct 15, 2006, 7:05 PM
Quote Reply
Re: [rgbworld] [NEW] and [UPDATED] Plugins by RGB World In reply to
Just an obvservation:

is the actual value of $opts->{use_captcha} a literal yes/no or numerical 1/0 ? If it's actually yes/no than
Code:
if ($opts->{use_captcha}) {
is always true.

I don't own a license, but I am interested in purchasing one to save myself the trouble of writing my own version.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] [NEW] and [UPDATED] Plugins by RGB World In reply to
The value is 1/0. It is set as a Setup option for the plugin using this

Code:
$mgr->install_options('ContactForm', [['use_captcha', '1', ' Display CAPTCHA image verification to send email?', 'RADIO', ['Yes','No'], ['1','0'], '']]);

I always get a little confused if I need to quote the value and compare with an 'eq' or with '=='.
I realize it is being compared as a boolean, So I think the code is correct either as...
Code:
if ($opts->{use_captcha}) {

or

if ($opts->{use_captcha} == 1) {

Thanks
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Post deleted by SWDevil.Com In reply to

Last edited by:

SWDevil.Com: Aug 24, 2009, 9:51 PM