Quote:
I must have tried this 30 different ways.
What I'm looking for is an if, else statement that will delete something ONLY on the profile index page or include something ONLY on non profile index pages.
So within a certain skin I can let's say modify a div of the header template but only for the profile/index, not the other profile pages like profile/audio.
Something like:
{if $current_url == '{$jamroom_URL}/{$profile_index}'}{else}{/if}
Maybe it should be more along the lines of:
{if template="$profile_index.tpl"}{else}{/if}
Your not going to be able to use 1 if statement if it takes you 3 sentences to describe it. Its going to take you more than that.
If/else only checks for 1 thing at a time:
"if this is true (the thing to check), then show this part [ the stuff ] "
So if your English explanation is:
Quote:
...if, else statement that will delete something
What is the something, does it exist on the page or not. That could be the target of your first IF statement.
"if something exists on the page....."
That is ONE if statement there.
Then inside that you can have another.
Quote:
....ONLY on the profile index page...
"if the page is the profile index page....."
(but you would more than likely just include the statement in the profile_index.tpl so you know its the profile index page before you start, so don't need to check that.)
Quote: ...or....
This is a different thing, so handle it differently. Do one thing at a time.
You need to go about it one step at a time. Just slowly and methodically working towards the goal.
updated by @michael: 03/27/15 12:49:47AM