Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/21/08 - 02:00 AM:
#1
I have a members' only area which works great. One problem though is that any new posts to this area are accessible to all usergroups in newposts.php, so guests can still view the details. How can I make it so that only members can view those details?
It would be good if I could put a conditional in the newpost.php that if guest and beneath [8] then just show the title, otherwise show title with link. But couldn't get that to work.
So I tried putting in the details.php...
<IF {CATISBENEATH[8] and {THISMEMBERISGUEST}> This page is for members only <OTHERWISE>
Details stuff
</IF>
But that just throws a page that states...
"We've iterated more than 2000 times and there's still a {CATISBENEATH[ in your template, so there must be a problem (malformed attempt at a template variable maybe?"