PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   One category viewable by all? (http://www.photopost.com/forum/photopost-pro-how-do-i/124078-one-category-viewable-all.html)

Get Bent March 28th, 2006 02:05 AM

One category viewable by all?
 
I have the option turned on that says users have to be registered to view pics so they can only see the thumbnails.

However, I want one particular category's pics to be viewable by guests. Is this able to be done? If so, how?

Thanks,

Joey

Chuck S March 28th, 2006 05:48 AM

In showphoto add in bold and make sure to add the right cat number

Code:

Content visible to verified customers only.

Get Bent March 28th, 2006 12:11 PM

I added this:

if ( ($User['username'] == "" || $User['username'] == $Globals['pp_lang']['unreg']) && $Globals['reqregister'] == "yes" ) {
if ( $dbcat == 523 ) {

diewell( $Globals['pp_lang']['noregview'] );

and this is what I got:

Parse error: syntax error, unexpected $end in /home/getbent/public_html/gallery/showphoto.php on line 1239

Chuck S March 28th, 2006 12:24 PM

You need to add the trailing }

Note my code block posted here

You might want to make one change though

== change to !=

Get Bent March 28th, 2006 12:33 PM

Quote:

Originally Posted by Chuck S
You need to add the trailing }

Note my code block posted here

You might want to make one change though

== change to !=


For the entire clip of code or just the part you told me to change?

Get Bent March 28th, 2006 12:40 PM

I made this change:


Code:

Content visible to verified customers only.
and now all guests can view all pics.

Chuck S March 28th, 2006 01:02 PM

You did not change == to != as I noted. You want only one cat to bypass so it needs to be !=

Get Bent March 28th, 2006 01:18 PM

Sorry for being such a pain but it's still not working.

Here is the code now:

Code:

Content visible to verified customers only.
I changed == to != and now no guests are allowed to view any pics. Even the ones in category 523

What am I missing here?

Chuck S March 28th, 2006 01:51 PM

Place a clean file up to your site

Do this anotherway that does not require modding things

Set all your categories EXCEPT the one you dont want people to view to no view access. That way the category that appears for guests will be the one you want to appear. You can then turn on that guests can view images

Get Bent March 28th, 2006 02:17 PM

What i'm looking to is have all guests be able to view thumbnails in all categorys but only let them view full images in category 523. In the rest of them when they click on an image, they get the message that tells them they need to register.

I tried it the way you just suggested but the category would disappear or guests couldn't even see the thumbnails. This wont work for me.

Chuck S March 28th, 2006 05:16 PM

Okay well your glad to open a modification discussion on this.


All times are GMT -5. The time now is 12:49 AM.

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