0

Need some help with WPFusion since I am pretty new to it.

Currently, I am transitioning from using iMember360 as a CRM to Infusionsoft. As a middle man between Wordpress and Infusionsoft, I am using WPFusion.

Previous developer had this code for iMember360:

<?php
IF (isset($_REQUEST['ID'])) :
  $pwd = strtolower(rawurldecode(trim($_REQUEST['ID'])));
  IF (is_password($pwd)) :
    IF ($contact = $GLOBALS['i4w']->myApp->dsQuery('Contact',1,0, ['
iMember360Password' => $pwd], $GLOBALS['i4w']->dbsFIELDS)) ;
    ENDIF;
  ENDIF;
ENDIF;
die('NO');

add_action('i4w_loaded', 'cws_authenticate', 0);
function cws_authenticate() {
IF (isset($_REQUEST['cws_authenticate'])) :

IF (isset($_REQUEST['NAME'])) :
  $email = strtolower(rawurldecode(trim($_REQUEST['NAME'])));
  IF (is_email($email)) :
    IF ($contact = $GLOBALS['i4w']->myApp->dsQuery('Contact',1,0, ['Email' => $email], $GLOBALS['i4w']->dbsFIELDS)) :
      $tags = array_filter(explode(',', $contact[0]['Groups']));
      IF (in_array(139, $tags)) :
        die('YES');
      ENDIF;
    ENDIF;
  ENDIF;
ENDIF;
IF (isset($_REQUEST['ID'])) :
  die('YES');

  IF (is_password($pwd)) :
    IF ($contact = $GLOBALS['i4w']->myApp->dsQuery('Contact',1,0, ['iMember360Password' => $pwd], $GLOBALS['i4w']->dbsFIELDS)) :
      $tags = array_filter(explode(',', $contact[0]['Groups']));
      IF (in_array(139, $tags)) :
        die('YES');
      ENDIF;
    ENDIF;
  ENDIF;
  */
ENDIF; 
die('NO');
ENDIF; //cws_authenticate endif 
}

So I want to switch it so it accommodates for wordpress, infusionsoft, and wpfusion.

Need to re-create a plugin that validates a membership via a third-party job board website.

Essentially, when somebody is signing up for the first time in the job board website, they will be filling out a form with their membership credentials that were created on our Wordpress site. What this plugin actually did for iMember360 was to take that information and query our membership database in Wordpress to see if a match exists. If it did, it will end the loop with a YES. If not, with a NO. In order to set this up, the job board site will require a URL to send the membership information to.

This URL should connect to the membership database for the verification. Job board website can supply the data to the member validation url with POST and GET request methods.

The variables that they matter the most is NAME and ID. Also, cws_authenticate was the access key for iMember360 so for WPFusion, it would be accesskey.

Would appreciate any help with this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.