PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Private Albums (http://www.photopost.com/forum/photopost-pro-how-do-i/146489-private-albums.html)

DirtRider September 13th, 2011 07:52 AM

Private Albums
 
3 Attachment(s)
I have created a private album but the members can still see the photos in the album preview strip at the top of the forum and only when they click on the image will it ask them for the password :confused:

So where am I going wrong with this setup

Chuck S September 13th, 2011 08:52 AM

Okay I beleive your referring to the modification for vbulletin which is not part of the supported software you purchased from our company.

We can not provide support for code mods only the photopost software.

I would suppose you have altered your code mods because I am familiar with the code mod your talking about since I wrote it. The query for the forumhome photos block most definately has the proper formatting to not show password protected photos.

Code:

Content visible to verified customers only.
notice where it says if you look at your plugin code the part where it says that category password field must be empty.

DirtRider September 13th, 2011 09:32 AM

Glad you wrote it lol. I never installed it you did as I paid for the install option when I purchased the software from you guys. I don't think I would have modified that code mod as I am not sure where to find it. So let me have a go at trying to fix it so what file should I be looking for to change it so it does not show the photo then

Chuck S September 13th, 2011 10:05 AM

Make sure you look in your vb plugins under any photopost plugin you have that is on the forumhome location. Make sure the queries have after the ismature and clause you add the following so your query lines look like the line I posted

Code:

Content visible to verified customers only.

DirtRider September 13th, 2011 11:38 AM

Chuck I am looking at this in my plugins Photopost Featured Photos on Forumhome and when I edit it I get this code but cannot find what you are talking about

Code:

Content visible to verified customers only.

Chuck S September 13th, 2011 11:44 AM

yes you could enter random on the qswitch line

As far as the query look at the WHERE clause simple replace your where clause with the one I have posted. Your using a very early version of that code mod.

DirtRider September 13th, 2011 01:31 PM

No I am not really with you as I find a few WHERE in that code. Can I just not get the new code and replace this that I have. This was the mod that you installed so I have no idea how old it was at the time

Chuck S September 13th, 2011 01:52 PM

There are 3 where clauses in the $q_switch function which holds the 3 query cases. The where clause on every last case needs to be what I posted or alternatively modify the where clause and after the AND p.approved = 1 you would add AND c.password = ''

DirtRider September 13th, 2011 02:02 PM

Chuck I am not a programer and this stuff is greek to me. I don't even know where the WHERE string starts or finishes. So I may as well just move on and leave it as it is. Thanks anyway for looking at it for me.

Chuck S September 13th, 2011 02:43 PM

well you can send me an admin login if you want me to take a peek through the contact us link.

DirtRider September 13th, 2011 10:09 PM

Thanks I have sent the details off to you via that link

Chuck S September 14th, 2011 08:36 AM

Not a problem

DirtRider September 14th, 2011 08:52 AM

Thanks Chuck all sorted out now

Chuck S September 14th, 2011 08:54 AM

enjoy your day

titan90 January 2nd, 2012 06:14 PM

Hi Chuck. I am having the same issue with Private Galleries being seen on the VB4 Forum home page "Members Featured Photos" plugin.

I also paid to have you install and have not modified any templates since you installed it last Friday (December 30th)

Can you use the login info from that install to fix my issue? I stay out of modifying anything and cannot find the place the line is supposed to be placed.

Chuck S January 2nd, 2012 06:45 PM

check your site out

titan90 January 2nd, 2012 07:47 PM

Cool. Thanks Chuck. You rock!

titan90 January 2nd, 2012 08:36 PM

I actually was able to follow the instructions above and add the 3 needed line to my "Photopost Featured Photos on Forumhome" vb plugin. The problem is pictures from my hidden gallery (sample_test) continue to appear on my gallery home "Most Recent · Most Popular · Random" sections.

I added the following as described above:
Quote:

switch ($q_switch)
{
case "most_view":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE p.storecat = 0 AND p.approved = 1 AND p.ismature = 0 AND c.password = ''
ORDER BY views DESC";
break;

case "latest":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE p.storecat = 0 AND p.approved = 1 AND p.ismature = 0 AND c.password = ''
ORDER BY date DESC";
break;

default:
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE p.storecat = 0 AND p.approved = 1 AND p.ismature = 0 AND c.password = ''
ORDER BY RAND()";

Chuck S January 2nd, 2012 10:18 PM

what I did was something different so not sure why you altered what I did

Code:

Content visible to verified customers only.

titan90 January 3rd, 2012 07:58 AM

I reverted back to what you did. So all is well there.
You fixed the issue on the front page of the VB Forum Home - but the index page of the Gallery still shows what should be hidden photos in the "Most Recent · Most Popular · Random" sections.

I was trying to figure out how to hide the photos on the gallery index page if you select to show a "Most Recent · Most Popular · Random" sections.


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