PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost How do I...? (http://www.photopost.com/forum/reviewpost-how-do-i/)
-   -   A couple of issues (http://www.photopost.com/forum/reviewpost-how-do-i/148280-couple-issues.html)

inspi2012 June 1st, 2012 03:18 AM

A couple of issues
 
Over one month of use of REVIEWPOST, we experienced a couple of things that we could not figure out a fix.

1. Sometimes, the product image mixed up between posters. For example, poster A's product images may contain one or two images from poster B's product. We have no idea when this happened.

2. Admin setting, Edit Category, permission to UPLOAD per group does not work. We checked off certain group, disallowing them to Upload to this category, they can still upload to this category.

3. If we move product from one category to another category, the thumbnail will not show on home featured block. We had to rebuild that thumbnail.


Chuck, have we had others reporting similar issues? Could you please help us on these?

Thank you!
Sean

Chuck S June 1st, 2012 07:39 AM

We know you have heavily modified your code which nullifies support so I will give some ideas of where to check.

1. Do you have a specific example of what your referring to so we can respond? I do not get what you are trying to say as that response could be taken a couple ways. Are you viewing a specific product or some type of url that shows user stuff

2. Check line 2503 of pp-inc.php under the function catmoveopt it should read this ugcat not ugview

Code:

Content visible to verified customers only.
3. Is your category cache on or off? Maybe a cache issue I think.

inspi2012 June 1st, 2012 07:48 AM

Thanks Chuck. For #2, I have two section containing that code. Do I change both occurrences?

Section 1:

Quote:

if ( $CatPerms['thumbs'][$subid] == "yes" && ($template == -1 || $CatPerms['template'][$subid] == $template) )
{
if ( $CatPerms['ugview'][$subid] != 1 || $User['adminedit'] == 1 )
{
$chkparent = $CatPerms['parent'][$subid];
do
{
if ( $chkparent == 0 || $chkparent == $subcatid )
{
break;
}

And section 2,


Quote:

if ( $subid == $selected )
{
$selecttext = "selected=\"selected\"";
}

if ( $CatPerms['ugview'][$subid] != 1 || $User['adminedit'] == 1 )
{
$chkparent = $CatPerms['parent'][$subid];
do
{
if ( $chkparent == 0 || $chkparent == $subcatid )
{
break;
}

Chuck S June 1st, 2012 07:52 AM

No you do not only the one I stated. One is suppose to be off view perms.

inspi2012 June 1st, 2012 08:33 AM

Sorry, should I change the one in section 1, or section 2 above? My line number is messed up. So I can't tell.

Chuck S June 1st, 2012 08:42 AM

HMM I beleive I pointed out it is located under the function catmoveopt.

inspi2012 June 1st, 2012 09:03 AM

Thanks so much Chuck, issue #2 is now fixed. :)

For issue #1, here are the links:
MH11 - Inspirare Discover: Discover Emerging Fashion Designers & Fashion Trends

cocktail dress - Inspirare Discover: Discover Emerging Fashion Designers & Fashion Trends

You can see the red dress got mixed up between these two posters.

For issue #3, we are not using category cache.


Thanks for all your help.

Chuck S June 1st, 2012 09:09 AM

MH11 - Inspirare Discover: Discover Emerging Fashion Designers & Fashion Trends

Not sure what your trying to say here. For an image to actually show on a product the user has to have uploaded the image to the product.

That is an absolute. All I can tell you from a support perspective is use the code we release as I know there is no issue with that.

inspi2012 June 1st, 2012 09:13 AM

There was a red dress in the 2nd link "cocktail dress" that should have been with first link MH11. Did you see it?

Please give me some pointer on which file to look into.

Thank you!
Sean

Chuck S June 1st, 2012 09:39 AM

I have explained how our program works.

Not sure what your talking by first link or second link. You have placed a link to one product here and that is what I am looking at

I am not going to discuss your custom mods your guy did. You have some kind of see other designs or some other custom stuff there.

MH11 - Inspirare Discover: Discover Emerging Fashion Designers & Fashion Trends

What I am saying is if you upload a product you can upload up to 9 images I beleive. Those 9 images to the right of the main image the user has uploaded to represent that product. I see no issues at all here.

If your expecting that somehow your custom block of products you added to that page is only suppose to have a specific users products then you will have to have coded it that way.

We do not provide support for something your guy wrote up. You would actually have to go to him to work out issues with his work.

Chuck S June 1st, 2012 10:17 AM

You must remember if he is using the display_gallery function to show images on that page any display_gallery call the second parameter must be the actual userid of the user who uploaded that product to pull only his images.

Thats as big a hint I can give about your hack issue. ;)

inspi2012 June 1st, 2012 03:53 PM

1 Attachment(s)
Chuck,

As always, I am grateful for your help. I apologize for the misunderstanding. I should have provided a screenshot.

Attached is a screenshot shows the problem we experienced.


As you can see, FOR THIS PRODUCT, it has a few thumbnails, one of the thumbnails does not belong to this product, and came from another author. I was not talking about the "Other Designs/Products" block below it.

If you can shed some light on what might have caused this problem, then we can look into it.

Maybe user EDIT product caused it?
Maybe uploading Approval caused this?
Maybe scan database caused this?

Any pointer is greatly appreciated.

Chuck S June 1st, 2012 03:59 PM

If you are referring to an image that exists on a product the only way it can get there is if the person who uploaded the product uploaded the image to it or edited the product and added the image.

The only people who can edit a product are the person who uploaded it or a moderator or administrator.

So the answer is someone who has permission to do so added that image.

inspi2012 June 1st, 2012 04:04 PM

This was reported by our member, they emailed us saying they got someone else's image in their product. Then we look into. I have checked with our moderator/admin, none of them edited their product. And we had several occurrences of this already. Right now, it is a mystery.

Chuck S June 1st, 2012 05:27 PM

Well obviously I can only respond how our normal unaltered code works. Like I said the only person who can upload an image to a product is the actual person who owns the product and a mod or admin.

inspi2012 June 1st, 2012 05:36 PM

Okay, could you please let me know which php files are involved in this uploading process? Then we will try to look into it.

Chuck S June 1st, 2012 05:48 PM

uploadproduct editproduct and bulkupload php files are for upload and edit and you should see the only people allowed to edit are the person who's ad it is and a mod or admin and likewise on upload you absolutely know the images uploaded are the ones the actual person is uploading.


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