WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Limiting show images in category

Version:
printPrint


Limiting show images in category
lepus
Beginner

Usergroup: Member
Joined: Jul 04, 2005
Location: Portland, OR
Total Topics: 4
Total Posts: 8
Posted 07/12/05 - 11:53 AM:
quote post
#1
I'm setting up a gallery which will have two types of images. Each user will be allowed to only view type 1 or to view both types.

What do I modify in the "show images in category" template to limit the images displayed to only what the current member is allowed to see? It doesn't seem to be toplist-based.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/12/05 - 03:51 PM:
quote post
#2
You could use conditionals. <IF {THISMEMBERUSERGROUP} is 2> stuff </IF> and the like, see the manual entry.
lepus
Beginner

Usergroup: Member
Joined: Jul 04, 2005
Location: Portland, OR
Total Topics: 4
Total Posts: 8
Posted 07/12/05 - 03:55 PM:
quote post
#3
Paul wrote:
You could use conditionals. <IF 2 is 2> stuff </IF> and the like, see the manual entry.


Thanks for moving this to the right area.

I've got the use of the conditionals down... but where in the template do I put "show only images with code=1"? In a toplist, I'd put it in the condition section, but I'm not sure which area in this particular template handles showing only images based on a certain condition.
lepus
Beginner

Usergroup: Member
Joined: Jul 04, 2005
Location: Portland, OR
Total Topics: 4
Total Posts: 8
Posted 07/14/05 - 03:46 PM:
quote post
#4
Is there a better way to ask this, or is it in the documentation somewhere? Let me restate just to make it clear:

I want to use the standard function to display the images in a category when a user clicks on the name of the category. However, I would like the images shown to be limited to (IMAGECONTENTRATING = 0) if the user is limited (MEMBERCONTENTRATING = 0).

What do I modify in the "display images in a category" template to account for that? If I use conditionals, that's fine, I can do that, but what do I put between the conditionals?

In other words, I add this:

<IF (THISMEMBERCONTENTRATING) is 1>
...standard template code...
<ELSE>
...template code to display only images where IMAGECONTENTRATING = 0...
</IF>

What is that code that displays images in a category that only meet certain criteria?


Edited by lepus on 07/14/05 - 04:12 PM
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.