I'm trying to use two custom templates to display links for members and for not registered/logged users. So far very little success. Here is the condition I came up with:
<IF {THISMEMBERUSERGROUP} is 1> [INSERTFILE=displaylinks_members] <OTHERWISE> [INSERTFILE=displaylinks_visitors] </IF>
I don't know why, but this condition works only if it's true - if it is false it shows [INSERTFILE=displaylinks_visitors] line on the screen. Also, when I use [INSERFILE] function on a file that has another [INSERFILE] in it - it doesn't show the second file content, but the actual function code line in the html output. Any ideas on the implementation?
Comments on condition for different custom templates
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
I'm trying to use two custom templates to display links for members and for not registered/logged users. So far very little success. Here is the condition I came up with:
I don't know why, but this condition works only if it's true - if it is false it shows [INSERTFILE=displaylinks_visitors] line on the screen. Also, when I use [INSERFILE] function on a file that has another [INSERFILE] in it - it doesn't show the second file content, but the actual function code line in the html output. Any ideas on the implementation?
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I may be reading you wrong, but group 1 is guests.
I usually use:
<IF {THISMEMBERISGUEST}>
INSERT VISITORS STUFF
<OTHERWISE>
INSERT MEMBERS STUFF
</IF>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
[INSERTFILE isn't supposed to be recursive.
certainly works though, tested at http://temp.wsnforum.com/wsnlinks
babrees's way of doing it is better though since I'm not sure if yours would work if you integrated the member system.