PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost How do I...? (http://www.photopost.com/forum/reviewpost-how-do-i/)
-   -   Postbit editing (http://www.photopost.com/forum/reviewpost-how-do-i/130650-postbit-editing.html)

MoMan2 February 25th, 2007 09:36 PM

Postbit editing
 
Which template/file would I have to edit to modify the review postbit (avatar location, PM/profile button, etc.)?

Thanks.

Chuck S February 26th, 2007 08:32 AM

showproduct template is the file that prints the review over a product

MoMan2 February 26th, 2007 06:49 PM

Thanks! I've done most of the edits that I wanted, but these two are stumping me.

-Where do I edit to modify the buttons displayed below each review (i.e. profile, PM, posts, etc.)?
-When I have user avatar display enabled, the system tries to retrieve avatars for all users, even those that don't have one, resulting in a 404 error. What can I do to only have avatars display for users that have one? (this seems like a bug)

MoMan2 February 26th, 2007 06:51 PM

Here's an example: http://www.pentaxforums.com/lensrevi...uct=201&cat=30

Note that Lance's avatar links to a user-id related directory that is nonexistent: http://www.pentaxforums.com/forums//...vatar552_0.gif

Chuck S February 26th, 2007 08:07 PM

and what is the avatar path for users who have avatars?

as far as post buttons they are in the get_profiledata function in the vb3.php forum integration file which is also where we determine avatars

MoMan2 February 27th, 2007 07:20 PM

Thanks! I'll check out the file and get back to you if anything comes up.

A correct avatar path can look like this:

.../forums//customavatars/avatar77_1.gif, where 77 is the user ID and 1 is the avatar number. If users delete and re-upload an avatar, the number changes. Also, for some reason, reviewpost adds an additional slash in the url.

MoMan2 February 27th, 2007 07:28 PM

I've just taken care of the buttons as I wanted...now all that's left are the avatars.

Chuck S February 27th, 2007 09:41 PM

You need to post a true full url to a bad images and the good image on the forum

MoMan2 February 28th, 2007 06:25 PM

Sure thing. I thought you wanted to know the structure...

Here's a page with both good and bad avatars: http://www.pentaxforums.com/lensrevi...uct=143&cat=34

Chuck S February 28th, 2007 07:04 PM

The reason why I asked you to post the paths to good avatars and bad avatars is because I use all the latest browsers and they do not show bad images at all so I am not able to see the issue you see

MoMan2 February 28th, 2007 11:22 PM

Hmm, that's strange. It occurs for me in both IE7 and FF2. Examples:

Nonworking: http://www.pentaxforums.com/forums//...vatar115_0.gif

Working: http://www.pentaxforums.com/forums//.../avatar1_6.gif

Screenshot: http://img243.imageshack.us/img243/2...eenshotud9.jpg

Thanks for the help so far!

Chuck S March 1st, 2007 06:23 AM

What happens in vb3.php if you remove the code in bold

Code:

Content visible to verified customers only.

MoMan2 March 1st, 2007 10:49 PM

Removing that appears to disable avatars completely. I messed around with the code a bit, and it turns out that the only relevent line is precisely the one you told me to take out:

Code:

Content visible to verified customers only.
If I get rid of the entire conditional and just leave that piece intact (changing elseif to if), avatars will still work. Seems a bit strange, though, since doesn't $hasav == 0 mean that the user has no avatar?

MoMan2 May 26th, 2007 01:15 AM

Hi,

This issue still isn't reolved. I'd appreciate some help.

Adam

Chuck S May 26th, 2007 08:45 AM

Your post above says if has been resolved though?

Removing that ONE CONDITIONAL should be fine

MoMan2 June 14th, 2007 06:24 AM

I've just checked again, and removing that conditional just disables avatars completely. It seems logical to remove that conditional...strange.

Chuck S June 14th, 2007 08:42 AM

Well find one that does not work and post the good and bad url to that one specific avatar and we can find why yours has an issue

MoMan2 June 14th, 2007 10:20 AM

Here's a sample page: http://pentaxforums.com/lensreviews/...uct=194&cat=30

The system thinks that users that don't have avatars actually have them, and it generates links similar to this one: http://www.pentaxforums.com/forums/c...avatar10_0.gif

Chuck S June 14th, 2007 10:36 AM

As stated since I use every new browser there is I will not see any error. However as I stated months ago removing the code noted in the vb3.php will remove that issue.

Code:

Content visible to verified customers only.
Your still printing that line where $hasav == 0 and if you remove it then the issue will dissapear

MoMan2 June 14th, 2007 11:15 AM

I've just done that (as I've tried before), and now no avatars are showing at all! Something must be wrong with the $hasav value...


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