PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Bug Reports (http://www.photopost.com/forum/classifieds-bug-reports/)
-   -   Category thumbs (http://www.photopost.com/forum/classifieds-bug-reports/146378-category-thumbs.html)

Bryan Ex August 27th, 2011 08:04 PM

Category thumbs
 
When you set up a new category there is an option to assign a category avatar with a full path to an image but on my test install the avatar is updated with every new upload instead of remaining the assigned image. I have thumbs enabled and entered the url correctly. The option asks for full path but if you enter a server path http://www.mydomain.com is added to the front of it breaking the image link. Entering the url works correctly but only until the next image upload at which time it's replaced with the latest image added to the category.

Chuck S August 27th, 2011 09:18 PM

I just tested as long as the thumbnail is set it doesnt change. It only gets set to the latest if empty.

Bryan Ex August 27th, 2011 09:46 PM

I have a brand new test install with no mods or even colour changes that I downloaded within the last hour and it consistantly changes the category avatar. I keep re-entering the url for the assigned avatar but it only lasts until the next image upload for the category. Try it out yourself at Main Index - PhotoPost Classifieds

User: test
Pass: test

Chuck S August 27th, 2011 10:29 PM

for some reason do not know if its the hurricane but I try to upload an ad to your site and it just says connecting and thats all that it does.

The code that updates the category avatar is very specific you can check it out if you want in image-inc.php.

Code:

Content visible to verified customers only.
Basically what that code says is it gets the category thumbnail id whether it be a numeric id or url in your case.

ONLY if it is equal to 0 would the code update the thumbnail to that last ad uploaded.

Bryan Ex August 27th, 2011 10:48 PM

Yep... I seem to be having periodic database failures tonight (server not code). The code in my downloaded version seems to have an extra line in it compared to what you've posted - $lastproductid

Code:

Content visible to verified customers only.

Chuck S August 28th, 2011 07:48 AM

yeah thats fine I simply moved that line as it had nothing to do with this discussion.

I am just saying codewise like I said only if your category thumbnail is empty would it change as I see it.

Tracking down if there is an issue on my end or not for some reason still not able to upload to your site.

Bryan Ex August 28th, 2011 07:11 PM

I can reproduce this issue every time on my test install;

Main Index - PhotoPost Classifieds

This is only cosmetic in nature so for now I'll just disable the option and move on to the rest of the set up. When and if you do find an issue with the cat avatars just let me know. They would be nice to have but no biggie without.

Chuck S August 28th, 2011 07:42 PM

You can easily removed just the code I noted in my reply


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