logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Members' Only section on newposts
also available to guests

Version: 4.1.27
Example URL: http://www.papillonclub.co.uk/newposts.php


Members' Only section on newposts
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/21/08 - 02:00 AM:
quote post
#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?"
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/22/08 - 05:43 PM:
quote post
#2
You didn't close the template variable. <IF {CATISBENEATH[8]} and {THISMEMBERISGUEST}>
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/22/08 - 06:44 PM:
quote post
#3
OOPS! Thanks for spotting that, sometimes the longer you look the less you see.

Still can't get it to work, presumably because there are subcategories I wish included in this so it doesn't work with those.

Any ideas how I can hide all sub-cats from guests?
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.