Friday, September 4, 2009

Changing the join form in Dolphin 7

Dolphin's join form currently uses 'Profile Fields' that you add and manage in the fields builder admin panel. This makes normal use very simple for the junior webmaster. What if you want to seamlessly integrate the dolphin community with your current membership system and prefer to use your current join process.

This was a bit of a trick to figure out. Although now that I've finished, it's bark was worse than its bite ;)

Open the join.php file and locate :

    function showJoinForm() {
        $aJoinFormParams = array(
            'couple_enabled' => $this->bCoupleEnabled,
            'couple'         => $this->bCouple,
            'page'           => $this->iPage,
            'hiddens'        => $this->genHiddenFieldsArray(),
            'errors'         => $this->aErrors,
            'values'         => $this->aValues,
        );
        //echoDbg($this -> oPF);
        echo $this->oPF->getFormCode($aJoinFormParams);
    }
And change to this:
    function showJoinForm() {
        $aJoinFormParams = array(
            'couple_enabled' => $this->bCoupleEnabled,
            'couple'         => $this->bCouple,
            'page'           => $this->iPage,
            'hiddens'        => $this->genHiddenFieldsArray(),
            'errors'         => $this->aErrors,
            'values'         => $this->aValues,
        );
        //echoDbg($this -> oPF);
ob_start();

include("../folder/old_registration.php");
$ret = ob_get_clean();
        echo $ret; //$this->oPF->getFormCode($aJoinFormParams);
    }
Now look at the above pasted text: there is a line:
include("../folder/old_registration.php");
Change this to use the registration form from your current site or application.
Then open your join.php in the browser (to view) and modify the old registration form's CSS or internal style to fit within the dolphin 7 join page and look like it belongs.
You will also need to open the form processing function within your old registration form and add the function to insert the user into the 'Profiles' table of the Dolphin 7 database.
Contact me for help for a custom integration of Dolphin 7 with your current web site.
I will cover integrating the login process so its a single login to dolphin and your current site application, upon request, or comments.

3 comments:

  1. Very nice blog. It's really useful for me. Web Design simply refers to the manner in which a website is designed.
    Thanks for this beautiful sharing.
    Daniel

    ReplyDelete
  2. Hi..
    I have used dolphin social community.
    How can i change the profile type of registration?
    and also change the field that depend on that type.

    Thanks

    ReplyDelete
  3. Hello I want to add some lines in dolpin 7 join page. There is all the country name in join page but I want to add us states at the join page under US. How I will do that. please tell me. I am waiting for you.

    ReplyDelete