PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   Gallery Conditional.... (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/117830-gallery-conditional.html)

imported_theMusicMan March 9th, 2005 03:37 AM

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.

PhoenixDown21 March 9th, 2005 11:54 AM

Re: Gallery Conditional....
 
I'd be interesting in knowing this as well. If you figure it out, please let me know.

Brian March 9th, 2005 11:55 AM

Re: Gallery Conditional....
 
I posted in the module thread for this. ;)

imported_theMusicMan March 9th, 2005 02:56 PM

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

hani March 28th, 2005 09:02 AM

Re: Gallery Conditional....
 
oh
What if I dont want images from that catagory to show in new images?
regards

Hani

Brian March 28th, 2005 09:11 AM

Re: Gallery Conditional....
 
That's exactly what the code does.

hani March 28th, 2005 09:28 AM

Re: Gallery Conditional....
 
oh good
Thanx brian, again and again :)

Hani

hani March 28th, 2005 09:49 AM

Re: Gallery Conditional....
 
well
it still shows in new images :(

hani March 28th, 2005 09:54 AM

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

please help

feldon23 March 28th, 2005 10:01 AM

Re: Gallery Conditional....
 
Hiding certain categories from being shown on the Gallery index page is a different set of code.

hani March 28th, 2005 10:06 AM

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


All times are GMT -5. The time now is 08:19 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97