PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Changing category permissions in Photopost (http://www.photopost.com/forum/photopost-pro-how-do-i/123978-changing-category-permissions-photopost.html)

paulfletcher March 23rd, 2006 05:04 PM

Changing category permissions in Photopost
 
Hello, I have a question. What were doing is were opening a tutorial website, and instead of using Photopost to dispaly photos will be displaying videos.

This is what I would like to do, could you please let me know if this is possible. Remember that each video has one thumbnail, and once you click the thumbnail it loads the video.

Free Tutorials (All usergroups can view the Videos)
-iLife
-Final Cut Studio
-Blender
-Shake
-RapidWeaver

Verified Member's Section (All usergroups will be able to view the thumbnails of the individual videos (screenshot of the tutorial), but they will not be able to view the full scale image (which would be the actual video tutorial).

I hope this wasn't to confusing... Please let me know as soon as possible... I have to open Monday!

Thanks,
Paul Fletcher B=0

Chuck S March 23rd, 2006 05:08 PM

Quote:

Verified Member's Section (All usergroups will be able to view the thumbnails of the individual videos (screenshot of the tutorial), but they will not be able to view the full scale image (which would be the actual video tutorial).
Not possible without code modification.

You can set category permissions to make it so that only verified members have access to these cats and regular users do not but that means regular users won't even see these categories on the index when viewing your site. I would suggest you use the announcement box to tell users they must subscribe to see members only video's and give them link to your subscription page

paulfletcher March 23rd, 2006 05:21 PM

Noo :-)
 
Okay then... How hard would it be to edit this, because it would be perfect if other non-verified users could still see the thumbnails, but not access them.

Lots of code editing? Or could you help us with this modification?

Side note... Do I have to have ImageMagic, or GD installed to upload thumbnails of our videos? And what does "Skip upload and process the files already in your upload directory" do?

Thanks,
Paul

Chuck S March 23rd, 2006 06:24 PM

Well the coding would be up to you but this would be up to your. Unregistered users are already prevented from viewing. This would block like regular users coppa users and unconfirmed users

In showphoto.php add this in bold

REPOSTED DOWN BELOW

Yes you need gd or Imagemagick to do thumbnail images

paulfletcher March 25th, 2006 03:35 PM

Code
 
Okay, well were all up and running except for this mod... I tried adding the code in two different places, also used a fresh showphoto.php file. I noticed that this code blocks un-registered users from viewing the tutorials.

Code:

Content visible to verified customers only.
Does this give you any ideas? Can we just modify this code so that if the users are not verified customers they get a slightly different error message, they don't get to watch the verified tutorials in catigory 508, but there allowed to watch any other tutorials.

Thanks,
Paul

Chuck S March 25th, 2006 07:53 PM

The code I noted in showphoto.php should work fine for what your doing but your welcome to post in our mod forums for assistance from anyone wanting to help with code mods.

paulfletcher March 26th, 2006 09:14 AM

Where exactly is the mod's forum? Also... We tried installing this although it didn't work, I'm pretty sure we didn't install it correctly. Do you want us to only add the stuff in bold, underneath those two little paragraphs of code?

Once the mod is in place (just trying to get this right, so we can figure out how to make it work for us)... Basically it allows all normal users to see all the thumbnails in the 508 category, but it won't let you click on and view the full scale photo (in this case video) without being a verified member... Correct?

Were just confused on how to install this modification, were not that good with coding.

paulfletcher March 26th, 2006 09:16 AM

Never mind about the mod corner... Found that... lol :-)

Chuck S March 26th, 2006 09:22 AM

Yeah you only add in bold

Basically if the user's usergroups is 2,3 or 4 the the category is 508 or its parent is 508 it will give the message noted.

But thats about the only hint here I gave ;) Glad you found the mod corner

paulfletcher March 26th, 2006 11:40 PM

Still no luck, could you or someone create a showphoto.php file that has this mod in place for us? Or install it if we gave you admin access?

Thanks,
Paul

Chuck S March 27th, 2006 07:26 AM

Nobody can post modified files here for you as it is illegal to post our code files on the net.

You want to edit showphoto.php and add the code in bold as noted. Double check the main category id is correct I beleive it is 508 is the main cat down you want to block

Code:

Content visible to verified customers only.

paulfletcher March 27th, 2006 08:41 PM

Hmm...
 
It probably works fine, but I can't figure out how to make it work. I've edited the code, I'm not sure if I can send you a copy of my showphoto.php file or not.

One thing I should point out. Well the Verified Member's Section is in category 508, many of the movies are not in that category.

For example...
Member's Section: http://xyztraining.com/tutorials/sho...ry.php/cat/508
iMovie Tutorial: http://xyztraining.com/tutorials/sho...oto/12/cat/507
Shake Tutorial: http://xyztraining.com/tutorials/sho...oto/18/cat/504

As you can see, the main folder is 508, but the other movies are not in the 508 directory, could this be the problem?

Thanks,
Paul

Chuck S March 27th, 2006 09:23 PM

It works as it is written but you probally need to restrict another level so do this and add only into bold to what is above

Code:

Content visible to verified customers only.

paulfletcher March 27th, 2006 09:55 PM

Response
 
Hello, still not working... Here is all the code as I have added it.

Code:

Content visible to verified customers only.
Let me know if I did something wrong, otherwise... Let me know how I can help to get this working.

Thanks,
Paul

Chuck S March 27th, 2006 10:01 PM

You left off one of the bold edits in my last post ;) Double check yourself

paulfletcher March 28th, 2006 09:14 AM

Ah, it didn't copy correctly before. We added the other piece of code and it worked!!!!!!!! Thanks you so much... Just a quick questions, will the freely registered users be able to view the tutorials in this category...

http://xyztraining.com/tutorials/sho...ry.php/cat/510

Also, how can we add a link in the PHP code? So it would say something like this.

You must be a Verified Member to view the tutorials in this section! If you would like to upgrade your account to become a Verified Member, please click here.

Thanks again!
Paul

Chuck S March 28th, 2006 09:58 AM

yes of course they will cause the parent cat is not 508

Code:

Content visible to verified customers only.

paulfletcher March 28th, 2006 02:32 PM

We have the code in two places... Do you know if we don't kneed one of them??

Code:

Content visible to verified customers only.

paulfletcher March 28th, 2006 02:33 PM

Two Places?
 
We have the code in two places, do you know if we can get rid of one of these to stream line things?

Code:

Content visible to verified customers only.
Code:

Content visible to verified customers only.
Thanks,
Paul

Chuck S March 28th, 2006 05:14 PM

You only place it where I said to move it to under the query in my last post. You do not need to have this hack twice in the file.


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