How to remove the Promo

bambie posted 21st of January 2010 in Community Voice. 20 comments.

I would have put this in the market for free, but you have to be a Premium Member and to be truthful I have no need for a Premium account so I am going to place this here instead.

Would you like to remove the Promo box on Dolphin 7?

1) Open index.php


2) Look for code "$_ni = $_page['name_index'];" This can be found a few lines up from the bottom.


3) The line under delete "$_page_cont[$_ni]['promo_code'] = getPromoCode();"


4) Save and re upload.

Simple

 
Recommended by
 
 
Comments
·Oldest
·Top
Please login to post a comment.
houstonlively
//

I wonder how much I could get for the above mod.
bambie
Sell it, it don't bother me. At the end of the day if you have a brain you would search for how to remove before searching promo removal.

Nice to see your still acting like a child.
mydatery
I'm thinking you could get alot. Perhaps you should go post it real fast, that is, if I don't beat ya to it. LOL
houstonlively
I did do a "mod" on my site so that the promo goes away when you log in. I wonder how much I could get for that. It's only one line of code and about 15 characters long. Should I put it in a zip file?
bambie
I am not talking about when you login, I personally don't like the promo at all. I done this so if people do not want it to show at all and want to get rid of it with out changing to much they can use this. It's called giving a tweak or some call it hack. :)
designer2
Hey Houston, any info on ver 7.08 for this mod?
thanks


In the file: /inc/design.inc.php

Find:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;

if( getParam( 'enable_flash_promo' ) != 'on' )


Change to:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;
if(!isMember())
if( getParam( 'enable_flash_promo' ) != 'on' )
prolaznik
make sure you post it as free and you'll get few stars for it :)
CALTRADE
HL - promo disappears on log-in - that is better than this mod - why don't you, or somebody just publish that fix - that is the way the product should have been designed anyway. Someone should also put it is trac as an enhancement. There is no reason for logged in members to to see that promo block.
houstonlively
I put it in track two months ago. AlexT moved it to 7.1 ..... in the mean time

In the file: /inc/design.inc.php

Find:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;

if( getParam( 'enable_flash_promo' ) != 'on' )


Change to:

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;
if(!isMember())
if( getParam( 'enable_flash_promo' ) != 'on' )
houstonlively
I'll post this in the forum also. As you can see, it's an incredibly complex change, so I guess that's why Alex moved it to 7.1
Profesize
Hmmmmmmmm! Yes a very complex change indeed HL. Can you do it for me? I will pay you if you can make the changes. I would have put it in the jobs section but you know.............
bambie
I would not charge you for some thing so simple. If you would like me to do it please massage me at bambiemurphy@g.ho.st.
slim007
Thanks HL for sharing this nice little hack with us.

Jim
buckmcgoo
They are thanking Houston... not you Fagie.
Thanks so much for this code!
sexycatzeyez
Very well done. I've been trying to remove this since my install. However in my current template, it leaves residual text at the top of my right column that says : "__promo_code__". Any ideas? it's not too much a deal, just cosmetic.
How can I remove links like forums, blogs, ads from the home page. I only want members to see those links. I unchecked quests in the navigation menus, but it did not work.
 
 
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.
PET:0.080672025680542