add join form to home page d7.08

PLEASE HELP!! how can I add the join form to my home page?

Quote · 12 Jan 2012

http://www.boonex.com/m/Site_s_Join

 

EDIT: Better check with the author first to make sure it's compatable with your version of dolphin. Just realized this mod replaces files.


https://www.deanbassett.com
Quote · 12 Jan 2012

Yeah I saw this and was going to do it but then noticed that it doesn't say 7.0.8 so that scared me I am surprised you don't have something tho

Quote · 12 Jan 2012

I try not to do mods that others have already done if i am aware of them.

https://www.deanbassett.com
Quote · 12 Jan 2012

If you look at the file included BxBaseIndexPageView.php you you see this at the bottom.

    //--- AQB: Site's Join ---//
    function getBlockCode_JoinForm() {
        bx_import("BxDolJoinProcessor");

        $GLOBALS['oSysTemplate']->addJsTranslation('_Errors in join form');
        $GLOBALS['oSysTemplate']->addJs(array('join.js', 'jquery.form.js'));

        $oJoin = new BxDolJoinProcessor();
        return $oJoin->process();
    }
    //--- AQB: Site's Join ---//


It appears to me that all you have to do is add that to the bottom of your current file instead of replacing your current one with the included one, and complete the rest of the instructions and it should be fine.

https://www.deanbassett.com
Quote · 12 Jan 2012

If you have the ability to add PHP blocks. Some PHP block mod, then this can be placed in a PHP block that should work on any page.

if(!isMember()) {
    bx_import("BxDolJoinProcessor");
    $GLOBALS['oSysTemplate']->addJsTranslation('_Errors in join form');
    $GLOBALS['oSysTemplate']->addJs(array('join.js', 'jquery.form.js'));
    $oJoin = new BxDolJoinProcessor();
    echo $oJoin->process();
}

https://www.deanbassett.com
Quote · 12 Jan 2012

Thanks everything worked you rock!!

Quote · 12 Jan 2012

 

If you have the ability to add PHP blocks. Some PHP block mod, then this can be placed in a PHP block that should work on any page.

if(!isMember()) {
    bx_import("BxDolJoinProcessor");
    $GLOBALS['oSysTemplate']->addJsTranslation('_Errors in join form');
    $GLOBALS['oSysTemplate']->addJs(array('join.js', 'jquery.form.js'));
    $oJoin = new BxDolJoinProcessor();
    echo $oJoin->process();
}

 Does this apply to 7.1.4?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 30 Sep 2013

 

 

If you have the ability to add PHP blocks. Some PHP block mod, then this can be placed in a PHP block that should work on any page.

if(!isMember()) {
    bx_import("BxDolJoinProcessor");
    $GLOBALS['oSysTemplate']->addJsTranslation('_Errors in join form');
    $GLOBALS['oSysTemplate']->addJs(array('join.js', 'jquery.form.js'));
    $oJoin = new BxDolJoinProcessor();
    echo $oJoin->process();
}

 Does this apply to 7.1.4?

 I tested it out real quick, and looks like it works fine for 7.1.4 too :)

Pretty nifty....Thanks Deano

Quote · 1 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.