WebmasterSite.net

IF statement being disregarded
on pages other than main

Version: 5.0.46
URL:

PrintPrint


IF statement being disregarded
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #1
Posted 05/11/09 - 11:53 AM:

I have the following code in my sitemap template -

<ul>
<!-- BEGIN MAP LINE -->
<IF {THISMEMBERISADMIN}>
<!-- BEGIN AFFILIATE -->
<li><a href="{CATURL}" class="categoryname">{CATNAME}</a> {CATHASNEW} {CATADMIN}</li>
<!-- END AFFILIATE -->
<ELSE>
</IF>
<!-- BEGIN REGULAR -->
<li><a href="{CATURL}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}</li>
<!-- END REGULAR -->
<!-- END MAP LINE -->
</ul>

I am using the sitemap as an [insertfile] in the wrapper. It works perfectly on the main page, but on any other page of the site it lists all the AFFILIATE categories to guests.
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 05/11/09 - 10:11 PM:

Fixed for next release.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.