Kieran Posted January 16, 2010 Report Share Posted January 16, 2010 Helllo all, Ive recently come accross phpVMS and I think it might be of great benefit to the VA that I belong to. In order to integrate it, though, I need to know a few things. I'd be very grateful if anybody could help. (I am a fully proficient php/mysql coder) 1. Regarding Pilot inactivity. Is there some sort of way to suspend users if they are inactive for a certain period of time? 2. Regarding the site structure. I notice that regitsration is located at index.php/registration. As a coder myself, I've never seen this method used. Where is it possible to edit the Registration PHP? 3. Adding a Recaptcha to the Registration form. Is this possible? The current Captcha seems a little insecure. 4. How do I add a forum. Will a php include in a page be the best thing for this? Oh and also, a bug: I cannot add custom textarea fields to the registration, they always come up as text for some reason. I've corrected this by editing the database row, but is anybody else experiencing this problem? Many thanks. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 16, 2010 Administrators Report Share Posted January 16, 2010 Hey, 1 - yes, it's done automatically, you can set the retired time. 2. - http://docs.phpvms.net/development/00_how_addons_work#how_controllers_are_laid_out Everything else is in templates in the core/templates folder, any HTML you see 3. - yes, you can, you'd have to modify the registration function, but that should be straight-forward. 4 - just have a link to it, and you'd have to manually skin your forum to look like your phpvms skin. Though, in the addon board, simpilot does have an integrated forum addon. And I'll look into that last one, can you add a bug to the bug tracker? Thanks Quote Link to comment Share on other sites More sharing options...
Kieran Posted January 16, 2010 Author Report Share Posted January 16, 2010 Thanks for the reply, it seemed to address all of my questions! I have added the bug to the Tracker for further investigation. As for the captcha, I've managed to implement it into the form (it displays correctly) using the code: ---------------------------------------------- ?php require_once('recaptchalib.php'); $publickey = "<<my public key>>"; echo recaptcha_get_html($publickey); ?> ----------------------------------------------- reCaptcha reccommend using this validation script >> ------------------------------------------------ require_once('recaptchalib.php'); $privatekey = "..."; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } -------------------------------------------------- How would I go about adding the validation to the registration process? Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 16, 2010 Administrators Report Share Posted January 16, 2010 You have to see where the form's action is(i forget), and follow that path (itll be in the registration controller), and add the code into there. i think there's a function called verifydata or something like that Quote Link to comment Share on other sites More sharing options...
Kieran Posted January 16, 2010 Author Report Share Posted January 16, 2010 Thanks a million Nabeel, I'll try that out. Perhaps you would consider a more secure Captcha for the future releases? I've just spotted this somewhat apparent bug. On the page 'Financial Reports' Error message 'Deprecated: Function split() is deprecated' likely due to PHP version incompatibility. EDIT: This can be solved by switching to preg_split() and adding % delimeters around the ',' value of $Delimeter. (Line 282). i can submit the bug if you wish. Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 17, 2010 Administrators Report Share Posted January 17, 2010 Yep, that bug is from an external library (pchart) which I'm in the process of removing and replacing with a different library Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.