Additional Addons To Consider

Home Forums Feature Suggestions Additional Addons To Consider

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1273

    Ok so so Im being a little selfish here in that I am going to mention possibilities for plugins for PhpMyDirectory and my current issue involving OsClass.

    I will be eventually moving onto phpmydirectory to try and integrate it with IEM but im currently trying to get OsClass integrated.

    I have a php page that works great with iDevAffiliate and IEM and am trying to get it to work with OsClass.

    Heres what Ive got so far but doesnt work like the iDevAffiliate integration. I cant see the iDev Registration Page that calls the mailing_list.php whcih then sends to IEM because iDev have encoded the page.

    If anyone has an idea Id appreciate it. If not its a possibility for a osClass plugin.

    Heres the code.



    function IEM_subscribe($userId) {

    $user = User::newInstance()->findByPrimaryKey($userId);


    if ($MailingListAuth == true) {


    $s_name = check_type(‘$s_name’);

    $s_email = check_type(‘$s_email’);


    $xml = ‘<xmlrequest>


























    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($ch, CURLOPT_POST, 1);

    curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);

    $result = @curl_exec($ch);

    if($result === false) {die(“Error performing request”);}

    //var_dump($result); //for debugging purposes

    //Example of how to display returned data

    $xml_doc = simplexml_load_string($result);

    if ($xml_doc->status == ‘SUCCESS’ && empty($xml_doc->data)) {die(‘Status is success. Empty response.’);}

    if ($xml_doc->status == ‘SUCCESS’) {

    echo ‘Response: <br />’;


    } else {

    echo ‘Error is ‘. $xml_doc->errormessage;





    osc_add_hook(‘user_register_completed’, ‘IEM_subscribe’);



    Any tips would be great.


    By the way forum is great Jacob, thanks.


    This is an interesting issue. Its funny how often we are dependent on the integration of different platforms to make something come together. I’ll try to talk to a few of our developers and let you know if they have an idea out the gate but we don’t do much with Osclass so I’m not sure how helpful we will be.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.