PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 9th, 2005, 03:37 AM   #1 (permalink)
Senior Member
Verified Customer
 
Join Date: May 2004
Posts: 531
Gallery Conditional....

Hi

I am trying to get the random image module on my CMPS page not to show images from a certain gallery category, and I believe I can do this via a template conditional if I knew what the variable name was.

Does anyone know what the syntax of this might be please..?

EDIT: Sorry - I guess I should have posted this request in the actual Random Gallery Image thread... I will copy this to it... MODS can you delete this one please... thanks.
imported_theMusicMan is offline   Reply With Quote
Old March 9th, 2005, 11:54 AM   #2 (permalink)
Member
 
Join Date: Aug 2003
Posts: 98
Re: Gallery Conditional....

I'd be interesting in knowing this as well. If you figure it out, please let me know.
PhoenixDown21 is offline   Reply With Quote
Old March 9th, 2005, 11:55 AM   #3 (permalink)
Brian
Guest
 
Posts: n/a
Re: Gallery Conditional....

I posted in the module thread for this.
  Reply With Quote
Old March 9th, 2005, 02:56 PM   #4 (permalink)
Senior Member
Verified Customer
 
Join Date: May 2004
Posts: 531
Re: Gallery Conditional....

Indeed Brian you did... just so this thread can be completed, this is what I did according to Brians instructions...

In gallery_random.php find
Code:
Content visible to verified customers only.
and replace with ...
Code:
Content visible to verified customers only.
... where in my case the 29 is the category I excluded. If you want more, seperate the CategoryID's with ", N" - comma space ID
imported_theMusicMan is offline   Reply With Quote
Old March 28th, 2005, 09:02 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 65
Re: Gallery Conditional....

oh
What if I dont want images from that catagory to show in new images?
regards

Hani
hani is offline   Reply With Quote
Old March 28th, 2005, 09:11 AM   #6 (permalink)
Brian
Guest
 
Posts: n/a
Re: Gallery Conditional....

That's exactly what the code does.
  Reply With Quote
Old March 28th, 2005, 09:28 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 65
Re: Gallery Conditional....

oh good
Thanx brian, again and again

Hani
hani is offline   Reply With Quote
Old March 28th, 2005, 09:49 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 65
Re: Gallery Conditional....

well
it still shows in new images
hani is offline   Reply With Quote
Old March 28th, 2005, 09:54 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 65
Re: Gallery Conditional....

OOPS
I was talking about new images in gallery index page, not the CMPS page :?

please help
hani is offline   Reply With Quote
Old March 28th, 2005, 10:01 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 41
Re: Gallery Conditional....

Hiding certain categories from being shown on the Gallery index page is a different set of code.
feldon23 is offline   Reply With Quote
Old March 28th, 2005, 10:06 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 65
Re: Gallery Conditional....

I dont want to hide it, but dont want images from it to show on new/random images.
My site is a photo site, and I have a cataory for lessons and tests, so people can post to it and copy the link on the forum to discuss it

Showing test images on main index has no meaning, as sometimes you have same image with different setting, so I dont want to fill the index with these images

regards

Hani
hani is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
image owner conditional? imported_rrr How Do I? - vBulletin 3.0.X 5 March 29th, 2005 11:21 AM
template conditional questions Happy Camper How Do I? - vBulletin 3.0.X 8 March 24th, 2005 05:58 PM
Enclose "Images in category" and "display options" in a conditional tag? rbl How Do I? - vBulletin 3.0.X 2 January 15th, 2005 10:50 AM
My Suff conditional Fiber How Do I? - vBulletin 3.0.X 1 January 10th, 2005 10:16 AM


All times are GMT -5. The time now is 06:14 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0