Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 10-02-2012 22:23:00

tatianafl@netscape.net
Members
Registered: 13-01-2012
Posts: 7

Flash Header settings

Hi, me again.. I am trying to understand where the statement would go to be able to change how the flash header would not be shown on a particular page.

I see the txt you wrote in the header.tpl.php:

You can also display different things for different pages using if statements or a switch statement.
   The $this->IS_CMD value holds the current page. ie, for the homepage:
   
   if ($this->IS_CMD=='home') {
   }
   
   or
   
   switch ($this->IS_CMD) {
     case 'home':
     do something..
     break;
     case 'add-recipe':
     do something..
     break;
   }

I guess I am not smart enough to know where to put the IF or Switch statements to display the different things for different pages.
What I was hoping to do is keep the flashheader from showing up (dont want it) on my about us page.

Thank so much!

Offline

#2 11-02-2012 06:23:22

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Flash Header settings

Just enclose the flash code with the following:

if ($this->IS_CMD!='about-us') {
}


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 13-02-2012 13:54:48

tatianafl@netscape.net
Members
Registered: 13-01-2012
Posts: 7

Re: Flash Header settings

Thanks David, I appreciate your help.

Offline

#4 13-02-2012 14:50:28

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Flash Header settings

Anytime. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy