How to show promo code on all pages?

Hi,

I want to show the promo code on all the inner pages also... can some one please tell me how to do it?

I tried

$_ni = $_page['name_index'];
$_page_cont[$_ni]['promo_code'] = getPromoCode();
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();

//$_page_cont[$_ni]['promo_code'] = getPromoCode(); was not there before I added it hoping it would show the promo code on browse.php but to no avail.

I want to do it on all pages, only if someone can help.

Quote · 24 Jul 2009

You can add the promo code to the html pages you want in your template directory. You may have to tweak them a bit depending on what you are after and exactally what pages you want it on. If all or only certain. This should be fairly easy to accomplish.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 24 Jul 2009

Yes, but the design is getting spoiled, like i told before, I included the code for the same but what should i write in the html files in the template folder? __promo_code__ ? and for pages like browse.php, they call the default.html, so what to do about that?

Can you please explain it in detail?

Thanks in advance

Quote · 24 Jul 2009

He could try just setting the __promo_code__ in the templates/tmpl_uni/_header.html file right below the _banner_top__

 

Not sure how well it will work, and he would need to remove it then from the page_1.html file, but it should work and give a uniform result to all pages.

Quote · 25 Jul 2009

thanx mydatery, i tried what you said but its still spoiling the design... will i have to adjust the <div> on all pages through their individual css? like if its browse.php will i have to adjust the design in browse.css?

Quote · 27 Jul 2009

Your on the right track

Note its in index.php what template file does it use? page1.html

what does about_us.php use

youll need:

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

for the php and:

__promo_code__

for the html that are tied to php


and:

__include _header.html__
__promo_code__
__page_main_code__
__include _footer.html__

for newly created html files

You have to go page by page and see if it has a sister html page if not the top of the file tells you waht it can use:

your first choice: about_us.php has  asister page 11

$_page['name_index']    = 11;

so after:

$_ni = $_page['name_index'];

u put

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

save it then make a page_11.html with the abve 4 lines

now aboutus has the promo hahaha go file by file page by page till you get it....andno theres no easier way

I have video tutorials to help you mrpowless.com
Quote · 28 Jul 2009

thanx guys i finally succeeded in doing it with small tweaks in the design because i had made some modifications in the promo code itself...it works the same way that u'll specified

Quote · 28 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.