PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs From 1.0.0 (http://www.photopost.com/forum/bugs-1-0-0/)
-   -   Display category only if Visible (http://www.photopost.com/forum/bugs-1-0-0/116897-display-category-only-if-visible.html)

Ghostsuit December 9th, 2004 07:34 PM

Display category only if Visible
 
Category should only be displayed if they are visible to the user or the user is an admin.

Brian December 9th, 2004 07:37 PM

Re: Display category only if Visible
 
What exactly do you mean by 'visible'? Active, if the user has permission to view the category, or something else?

Ghostsuit December 9th, 2004 07:56 PM

Re: Display category only if Visible
 
User Created Categorys: Allow Other Users to View Category - Yes

If it's set to 'No' then they shouldn't be displayed other than to the admin and the user that owns the gallery. Sorry I should have explained it better.

Brian December 9th, 2004 08:06 PM

Re: Display category only if Visible
 
Ahhh, gotcha. At first I was thinking they should still be shown (just not the images), but now that I think about it more I agree that they shouldn't be shown on the category list. Here's a fix that should take care of this:

In both your gallery/index.php file and your /forum/includes/functions_gallery.php file look for:
Code:

Content visible to verified customers only.
Replace with (in both files):
Code:

Content visible to verified customers only.
Then look for this in your functions_gallery.php file:
Code:

Content visible to verified customers only.
And right above it add:
Code:

Content visible to verified customers only.

Ghostsuit December 9th, 2004 08:14 PM

Re: Display category only if Visible
 
Sorted :D

Ghostsuit December 9th, 2004 08:17 PM

Re: Display category only if Visible
 
Actually no it's not. They also need to be removed from the category jump as well.

Brian December 9th, 2004 08:23 PM

Re: Display category only if Visible
 
Sorry, trying to do too many things at once here so of course I had to forget about something.

If you'll look in your functions_gallery.php for this:
Code:

Content visible to verified customers only.
And replace it with this:
Code:

Content visible to verified customers only.
That should take care of all select fields where the category could appear.

Ghostsuit December 9th, 2004 08:29 PM

Re: Display category only if Visible
 
Cheers your a hero. I've been a pest all through beta did you think it would change when we got to RC ;)

Oh and that sorted it nicely

Brian December 9th, 2004 08:31 PM

Re: Display category only if Visible
 
Quote:

Originally Posted by Ghostsuit
Cheers your a hero. I've been a pest all through beta did you think it would change when we got to RC ;)

Oh and that sorted it nicely

You call that being a pest? I was thinking more of it being a good beta tester. ;)

Ghostsuit December 9th, 2004 08:32 PM

Re: Display category only if Visible
 
Pest - Good beta tester...same thing really ;)

allhandl December 11th, 2004 04:17 PM

Re: Display category only if Visible
 
Im a nube so bear with me. Are you planning on making this change to future versions?

The reason I ask is,

...the gallery has been the big seller on my boards to get people to become members. I love the fact that they can see a category/teaser but dont like the fact that when they click on it, it says no images. Any way to set that up so they can see that they are missing out on something by not registering?

Brian December 12th, 2004 12:20 AM

Re: Display category only if Visible
 
Yes, the change above is going to be added to RC2. I'm not sure I follow what you're asking though... What should they see instead of a 'No Images' message?


All times are GMT -5. The time now is 02:35 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