Jump to content

A few Questions regarding PhpVMS


Kieran

Recommended Posts

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.

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...