change Promo place

hi guys anyone know how can i change the promo place? for example on join.php?

i searched in forum but i dont find a answer.

best regards

Quote · 17 Aug 2011

promo is set to load on index of the site, so you are asking how to get it to load on the join.php 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 17 Aug 2011

yes :-)

how to get it to load the promo on the join.php ? is it possible?

Quote · 18 Aug 2011

Hello leoleon,

 

Here is the way to place promo banner on join page:

1. Copy attached 'page_121.html' file to 'Dolphin root/templates/base/' directory.

2. Find 'join.php' file in Dolphin root. Find the following code near line 49:

$_page['name_index'] = 81;

and change 81 value to 121.

 

find the following code near line 54:

$_page_cont[$_ni]['page_main_code'] = $oJoinView->getCode();

and place the following line before:

$_page_cont[$_ni]['nkpromo_code'] = getPromoCode();

 

find the following code near line 58

$GLOBALS['oSysTemplate']->addCss(array('join.css'));

and replace it with this one:

$GLOBALS['oSysTemplate']->addCss(array('join.css', 'index.css'));

You are done.

 

Best regards, nuknspax.

page_121.html · 112B · 264 downloads
Free and premium Dolphin templates. Custom design services.
Quote · 18 Aug 2011

Wowww its works fine man Thank you

Quote · 18 Aug 2011

hello guys

promo pictures on join site is not work on version 7.0.9

why??? can someone help me please?

 

regards

Quote · 21 Mar 2012

Hello LeoLeon,

 

Dolphin promo function was moved to templates engine in Dolphin-v.7.0.9, so you need to do the following in addition to my previous instructions:

1. Find Dolphin Root/templates/base/scripts/BxBaseIndexPageView.php file.

2.Find getPromoCode() function in this file near line 437:

    function getPromoCode() {
    $sSiteUrl = BX_DOL_URL_ROOT;

    if( getParam( 'enable_flash_promo' ) != 'on' ) {
        $sCustomPromoCode = getParam( 'custom_promo_code' );
        $sCode = $sCustomPromoCode ? '<div class="promo_code_wrapper">' . $sCustomPromoCode . '</div>' : '';
    } else {
        $aImages = getPromoImagesArray();
        $iImages = count($aImages);
       
        $sImagesEls = '';
        foreach ($aImages as $sImg)
            $sImagesEls .= '<img src="'.$GLOBALS['site']['imagesPromo'].$sImg.'" />';

        $sPromoLink = $sSiteUrl;
        $sPromoRelocationVisitor = getParam('promo_relocation_link_visitor');
        $sPromoRelocationMember = getParam('promo_relocation_link_member');

        $sWelcomeElement = '';
        if(!isMember()) {
            $sWelcomeC = _t('_Welcome_to_the_community');
            $sWelcomeElement = '<div class="sys_title">' . $sWelcomeC . '</div>';

            $sPromoLink .= ($sPromoRelocationVisitor!='') ? $sPromoRelocationVisitor : 'join.php';
               
            $sLoginSection = '<div class="sys_promo"><div class="subMenuOvr">';
            $sLoginSection .= $GLOBALS['oSysTemplate']->parseHtmlByName('login_join.html', array());
            $sLoginSection .= '</div></div>';
        }
        else
        {
            $sLoginSection = '';
            $aInfo = getProfileInfo();
            $sWelcomeElement = '<div class="label_thumbnail">' . get_member_thumbnail($aInfo['ID'], "left", false) . '</div><div class="label_thumb">' . _t('_Hello member', $aInfo['NickName']) . '</div><div class="clear_both"></div>';
        }

        $sCode = '';
        if($iImages > 1) {
            $GLOBALS['oSysTemplate']->addJs('jquery.dolPromo.js');
            $sCode .= <<<EOF
                <script type="text/javascript">
                    $(document).ready( function() {
                        $('#indexPhoto').dolPromo(8000, 1500);
                    } );
                </script>
EOF;
        }

        $sCode .= <<<EOF
            <div id="indexPhotoBorder">
                <div id="indexPhotoLabel">
                    {$sWelcomeElement}
                    {$sLoginSection}
                </div>
                <div id="indexPhoto" onclick="location='{$sPromoLink}'">
                    {$sImagesEls}
                </div>
            </div>
EOF;
        }
        return $sCode;
    }

3. Copy it to 'BxBaseJoinPageView.php' file from the same directory after line 32, right after 'getBlockCode_JoinForm()' function closing brace. Note that this function should be within 'BxBaseJoinPageView' class.

 

Thank you,

 

Best regards, nuknspax.

Free and premium Dolphin templates. Custom design services.
Quote · 25 Mar 2012
 
 
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.