Promo Block Disappeared

Hi,

I've been editing the promo block on my site and I now have it how I want it but the problem is it's disappeared across every page but the index.

I've been through all the files I thought I had edited and put them back to how they were but I must have missed one out that I can't remember.

I know this is a long shot but I was wondering if anyone else has experienced similar and managed to resolve the issue.

Quote · 2 Jul 2009

For some reason I thought it went across the entire website. Just looked on boonex.us and it's only on the front page.

Please ignore.

Quote · 2 Jul 2009

You can put it on every page, it's pretty simple to do actually.

 

Go into your files and you will note templates/base/page_1.html and note it is as follows:

 

__include _header.html__
 __promo_code__
 __page_main_code__
__include _footer.html__

 

Now comes the fun part you, notice that little line that says __promo_code__ ?

 

Good, you will want to become familiar with it, as it is your promo box that you love so dearly.

 

Now, you need to go into your php files to get the answer as to how to use this knowledge to place the promo box inside all the other pages.  In this instance we will use the events page as our example.  You ready?  Great, open events.php from your Dolphin root directory.

 

Locate the following, it's near the beginning of the file:

 

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'sdating.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );


require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolEvents.php' );

// --------------- page variables and login

$_page['name_index'] = 55;
$_page['css_name'] = 'sdating.css';
$_page['extra_css'] = $oTemplConfig -> sCalendarCss;
$_page['extra_js'] = $oTemplConfig -> sTinyMceEditorJS;

 

 

The imporant line in all of that has been turned to red, the page name index is 55, thus you are looking for page_55.html, now go find the file at templates/tmpl_uni/page_55.html  Here's the code from it.

 

__include _header.html__
   __page_main_code__
__include _footer.html__

 

Moving forward to make a promo box appear at the top of the events page, you simply need to add __promo_code__ to this file above the main code & below the __include_header.html__ so it looks like this:

 

__include _header.html__

    __promo_code__
   __page_main_code__
__include _footer.html__

 

 

You are now all done.  With the events page that is, you will need to do this for every page that you would like the promo box to appear on.  Have fun, enjoy and we will see you back here to help out as soon as you've figured out a new question.

 

Quote · 2 Jul 2009
 
 
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.