promo block on every page

hi guys

quickly question

i want the promo block on every page

how can i do this?

regards

Quote · 25 Apr 2012

See this topic.

http://www.boonex.com/forums/topic/how-to-set-promo-images-on-every-pages.htm

https://www.deanbassett.com
Quote · 25 Apr 2012

thank you deano but i tested and its not work by me

any idea?

Quote · 25 Apr 2012

 

thank you deano but i tested and its not work by me

any idea?

 you should clear your caches

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 25 Apr 2012

i do it but no luck

Quote · 25 Apr 2012

Are you running a custom template?

https://www.deanbassett.com
Quote · 25 Apr 2012

I think it will not work in 7.0.9 as the promo block code is inside the BxBaseIndexPageView.php that is only for index page. You can transfer it to design.inc.php file and it should work on any page.

so much to do....
Quote · 25 Apr 2012

yes i use uni template and version 7.0.9

Quote · 25 Apr 2012

 

I think it will not work in 7.0.9 as the promo block code is inside the BxBaseIndexPageView.php that is only for index page. You can transfer it to design.inc.php file and it should work on any page.

 When you do this does the promo block code need to be removed from BxBaseIndexPageView.php  or do you leave the code there? 

Do you copy and paste the code to design.inc.php  or do you move it?


I also tried the topic link that Deano posted

http://www.boonex.com/forums/topic/how-to-set-promo-images-on-every-pages.htm

and this didn't work for more.  I don't know if I insert the __promo_code__ in the wrong place or not. I didn't know exactly where to insert it at.  LOL!  Everywhere I inserted it, it showed up on my website (spelled out) __promo_code__  

So, I figured I was doing something wrong. I don't understand exactly where to insert the __promo_code__  in the sub_header folder. Undecided

Thanks!!

For live support go see Jason at http://www.dolphin-techs.com he is a real big help!
Quote · 28 Jun 2012

i have never done it before. but i can look for a solution if you want.

so much to do....
Quote · 28 Jun 2012

 

i have never done it before. but i can look for a solution if you want.

 Yea sure Prashank!  I appreciate all the help i can get. 

I am learning as I go!

Thanks Bro!

For live support go see Jason at http://www.dolphin-techs.com he is a real big help!
Quote · 28 Jun 2012

Okay here is a solution. But it requires a lot more changes.

1stOpen inc/design.inc.php and go to line 251 and paste this

 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;}

2nd - Open  inc/classes/BxDolTemplate.php at line 726 add this code after "case 'top_menu_breadcrumb':"

case 'promo_code':            $sRet = getPromoCode();            break;

3rd - Open index.php at bottom comment this out

$_page_cont[$_ni]['promo_code'] = $oIPV->getPromoCode();

4th - Open templates/base/_sub_header.html add _promo_code_ in main content div so it will look like this

<div class="main" style="border:0px; width:__main_div_width__;">__promo_code__        <!-- body -->        <bx_injection:injection_content_before />

5th - Open template/base/common.css and add this in bottom

/*------------------*/
#indexPhotoBorder {border: 1px solid #cccccc;margin-bottom:11px;position:relative;/*keep*/}
#indexPhotoBorder div.sys-notifications {top:0px;height:81px;}
#indexPhotoBorder .jl {position:absolute;right:0;top:0px;/*margin-top:22px;*/}
#indexPhotoLabel {height:82px;line-height:82px;position:absolute;bottom:0px;width:100%;z-index:1;background:transparent url(../images/opSplash.png) repeat-x scroll left top;}
#indexPhotoLabel div.sys_title, #indexPhotoLabel div.label_thumb {font-size:24px;color:#333;font-weight:bold;text-shadow:0 1px 0 #FFFFFF;letter-spacing: -0.02em;}#indexPhotoLabel div.label_thumb {padding-left:10px;position:relative;float:left;}#indexPhotoLabel div.label_thumbnail {padding-left:11px;padding-top:7px;position:relative;float:left;}div.sys_title {   height: 82px;   max-width: 680px;
  text-indent: 30px;   overflow: hidden;}div.sys_promo {        bottom: 0px;        right: 0px;
        position: absolute;
        line-height: 0px;}div.sys_promo div.sys_tm_actions {   margin: 0px 30px 20px 0px;   float: none;}
.bodyBlock {padding-top:10px;}
#indexPhoto{border: 1px solid #ffffff;height: 262px;overflow: hidden;cursor: pointer;}
#indexPhoto img {position: absolute;}
/*h2.pageHeader {display: none;}*/
.promo_code_wrapper{border:1px solid #ccc;margin-bottom:10px;padding:10px;}
/*##############################################################*/

6th - Open template/base/page_1.html and remove the line __promo_code__ so it will look like this

<bx_include_auto:_sub_header.html />__info_block____page_main_code__<bx_include_auto:_sub_footer.html />

Also, you can comment out the code in template/base/script/BxBaseIndexPageView.php getPromoCode() function but its not a required step.

You might have to apply some of these changes in your custom template.

Enjoy..:)

so much to do....
Quote · 28 Jun 2012

OK thanks for the help Prashank!

I have to try it later I'm off to work now. 

i will let you know the out come!!

Thanks

For live support go see Jason at http://www.dolphin-techs.com he is a real big help!
Quote · 28 Jun 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.