PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old April 12th, 2005, 10:10 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 35
Conditionals

Hi there,

I was wondering, how would one go about writing an if, then statement in a template that looked at the URL of a site?

For example, if it was bb.site.com, I'd want it to show a certain template, but if it was gallery.site.com, I'd want to show a different tempalte (using vbadvanced!)

Thanks for teh help!
DaFonz is offline   Reply With Quote
Old April 12th, 2005, 10:19 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Conditionals

<if condition="$_SERVER['HTTP_HOST'] == 'bb.site.com'">
1st template here
<else />
2nd template here
</if>

Should do the trick.
  Reply With Quote
Old April 12th, 2005, 11:26 PM   #3 (permalink)
Ultimate Member
 
Join Date: Jan 2004
Posts: 2,196
Re: Conditionals

I think you need to do some striping. because rarely if ever will that sting be valid

http://bb.site.com/ < devlidates it.
Zachery is offline   Reply With Quote
Old April 14th, 2005, 02:27 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 35
Re: Conditionals

Striping?
DaFonz is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:52 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0