/    Sign up×
Community /Pin to ProfileBookmark

Header Problem w/ conditional tags?

Hi I have a problem. I have 8 different headers for 8 different portions of my website. My site is an extreme sports website. Check it out here. There are 8 sports so each header is associated with the sport. I am using a conditional tag for the category id. Here is my code:

<? if($category_id == 1) : ?><td width=”858″ colspan=”10″
style=”background: url(<?=$this->image_url?>/apsurfing_header.jpg) no-repeat top left;
padding-right: 35px; font-weight: bold; font-size: .75em;”
valign=”middle” align=”right”><? endif; ?>

The problem is this: I need to know how to get the peoples profiles to associate with their sport. For example, if they are a surfer, the header image above their profile will say “AP Surfing”.

Can I use a conditional tag for the athlete or do I need to create an array? If I need to do an array, can someone show me how to create it?

Thanks so much!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@brabee1authorJun 01.2007 — Sorry I forgot to include the URL of my site. Click here!
×

Success!

Help @brabee1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...