Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
keldo
New Member
New Member



Joined: Feb 25, 2012
Posts: 7

PostPosted: Sun Feb 03, 2013 11:18 pm Reply with quote

I am working on several different modules for an online radio station's site but in order to keep the spam and all of that to an absolute minimum I need to include captcha ( $gfx_check) to a couple of them. I havn;t the slightest clue on how to do this, can anyone help?

Thanks.
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon Feb 04, 2013 11:28 am Reply with quote

Are you using RavenNuke and if so, which version?
The reason I ask is because I believe you are developing your own CMS so need to make sure any response is correct for the software you are using.
 
View user's profile Send private message Send e-mail
keldo







PostPosted: Mon Feb 04, 2013 8:43 pm Reply with quote

Raven_Nuke 2.5.7 and no I am not creating my own CMS. Not that talented.
Am however creating a module suite for this radio station Im building a site for.
 
Guardian2003







PostPosted: Mon Feb 04, 2013 9:52 pm Reply with quote

Sorry, seems I had you confused with a keldo on another site.
I think our last release was v 2.5 so I'll assume that is what you meant.
If you look at the Feedback module, that should help guide you but basically, you need to add the CAPTCHA image to your form with something like
Code:


global $modGFXChk;
echo security_code($modGFXChk[$module_name], 'stacked');


You can test the correctness of the POSTed data with something liike
Code:


global $modGFXChk;
if (isset($_POST['gfx_check'])) $gfx_check = $_POST['gfx_check']; else $gfx_check = '';
if (!security_code_check($gfx_check, $modGFXChk[$module_name])) {
   // display your failed error message here and halt processing
          }


This variable
Code:
$modGFXChk[$module_name]
is an array of module names/values which are set in website_root/rnconfig.php
You'll need to add your module name into that array, which will then allow you to specify whether the CAPTCHA is shown for that module, whether it is shown only to anonymous users etc.
 
keldo







PostPosted: Sat Feb 09, 2013 12:30 pm Reply with quote

done everything said here, looked through the feedback and Recommend_Us modules, every technique has failed so far and yes I added this module to the array in rnconfig.

The idea behind the module I am creating is a recruiting module.
It has way more options than a normal feedback or contact us module.
In a previous version I had no captcha included and the spam was ridiculous.

The idea is that the module sends the email to a mailing list and also sends some data back to the sender; of course the mailing list sends an email to everyone in the stations HR department.
mayhem.twistedevolution.net/jobs.html is the existing module, captcha not yet figured out.

I'm wondering what site you may have seen this nick on and where the idea of another CMS came into this?

Keldo
 
Guardian2003







PostPosted: Sat Feb 09, 2013 2:38 pm Reply with quote

keldo wrote:

I'm wondering what site you may have seen this nick on and where the idea of another CMS came into this?Keldo

I beleive it might have been my own website. I vet all my site applicants and remembered your username being associated with a user whose domain has a CMS being developed called MySite v1.0.2 so I thought I better clarify exactly what the CAPTCHA was needed for.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©