 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
June 15th, 2007, 04:54 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
| No avatars in comments
I can't get avatars to be displayed when users post comments. Signatures show up correctly though. I am using vb3 enhanced and as far as I know the avatars are stored in the default location. |
| |
June 15th, 2007, 06:53 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
well is show avatars marked to yes in admin options? If it is and avatars dont show up when error is shown? http://www.reeftalk.com/classifieds/...php?product=40
Looks to me like they show up if turned on.
|
| |
June 15th, 2007, 10:18 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
There are three settings that mention avatars in the admin panel and I have them all set to yes. I get no error, just no avatars are displayed. Username, user title and signatures work OK.
Avatars are stored in a folder called "customavatars".
|
| |
June 15th, 2007, 11:32 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
No in your classifieds options do you have show avatars on?
|
| |
June 15th, 2007, 01:35 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
| Quote:
Originally Posted by Chuck S No in your classifieds options do you have show avatars on? | Yes, like I wrote in my previous posts. There are three settings that mention avatars ("Show Category Avatars?", "Show Avatars on Showcat pages?" and "Show Avatars") and all three are set to yes.
|
| |
June 15th, 2007, 01:57 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Your post definately sounded like you where talking about your vb admin not classifieds.
The one that matters in this case is SHOW AVATARS in the show ad options
Okay so going back to the forum page and classifieds do you have an example of where an avatar should be showing that it is not?
I have clearly listed a url above where I tested the functionality and it works
|
| |
June 15th, 2007, 02:33 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Judging by your Classifieds at Reeftalk.com the avatar should be visible when you look at an ad. The avatar should be visible next to the poster's username and the same in the comments. As you can see on my example below, this is not the case. http://forum.bmwslo.com/oglasi/showp...php?product=27 |
| |
June 15th, 2007, 04:52 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Yes judging by my site correct
So I guess it is a matter of finding out why your site is not showing this.
Try putting at the end of your showphoto.php file right on the line above the ending ?> this
print "testing my avatar is {$phuavatar} this";
|
| |
June 15th, 2007, 05:47 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
I do not have a file called showphoto.php in my build.
I tried it with showproduct.php and all it showed was the text "testing my avatar is this" at the bottom of the page.
|
| |
June 15th, 2007, 06:03 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
So the avatar is null HMM
Well this is the code that pulls an avatar in vb3.php in your forums subdirectory of the product in the get_profiledata function Code: Content visible to verified customers only.
I would suggest you run the specific query in question for your specific user to find out what is returned. In your case user 3.
This is the query that is run post back what is returned by the query Code: Content visible to verified customers only.
Make sure to replace the prefix vb3_ with something different if your vb3 tables do not begin with that
|
| |
June 15th, 2007, 06:11 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Excuse me, can you be more clear where I am supposed to insert this code? Which file and where?
Is the code 100% correct? I see an extra letter "u" at the end of the first row of your code which makes no sense to me.
|
| |
June 15th, 2007, 06:33 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
No you dont insert this anywhere please reread my post
I have stated that you try running that query and tell me what is returned. You can run it in your vb sql window in vb admin
|
| |
June 16th, 2007, 04:15 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
OK, did it and I got the results for user nr.3 The data you are probably interested in is:
avatarpath (query returned nothing)
hascustomavatar = 0
avatarrevision = 1
|
| |
June 16th, 2007, 06:10 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Well if thats what it returns then I wonder why it is not returning a result Code: Content visible to verified customers only.
You see your $hasav is 0 and is not empty so why is the avatar not built per the code we use mine is.
HMM try changing the line above to this and see Code: Content visible to verified customers only.
|
| |
June 16th, 2007, 08:51 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Actually my vb3.php already has the code you suggested. Code: Content visible to verified customers only.
Are you running a modified version of Classifieds? There have been at least 3 cases where your version was working OK but the latest public build wasn't.  Now you appear to have different code in your vb3.php file...
|
| |
June 16th, 2007, 11:32 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
No my version is the one that is uploaded to the builds area as it always has been. The $hasav thing makes no difference it means the same thing and we use either in the products. My code example comes from photopost pro.
See you have no avatar because of one simple thing. Which ponders this question. Why is your query returning a 0 for hascustomavatar. Of course you have a custom avatar so it should be 1 in your vb table not 0.
Now there is something not quite clear here about your install because of that logic above. It makes no sense but I can give you some code to try and see if this makes an avatar appear.
Add this in bold to that code Code: Content visible to verified customers only.
|
| |
June 16th, 2007, 12:11 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
Still not showing avatars after the change.
What is this hascustomavatar you are talking about? I couldn't find this column in my vbulletin tables.
I am running vBulletin 3.6.7PL1 and my avatars are showing with no problems.
|
| |
June 16th, 2007, 12:27 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
A little Googling around gave me a result from this very board. http://www.photopost.com/forum/showp...2&postcount=53
It seems that since I am storing avatars in the fileystem instead of in the database, the value should be 0 according to vBulletin.
Chuck, are you storing your vBulletin avatars in the database?
|
| |
June 16th, 2007, 01:05 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
I am storing mine in the filesystem not a database I use a custom avatar just like you and my value is 1 not 0
First off hasav is NOT IS NULL customavatar.filedata and my result of the query is this
NULL 1 1
Now excuse me here but you say your avatar is still not showing but thats QUITE IMPOSSIBLE based on the info you have provided me.
You told me this.
You are using the filesystem
Your hasav result is 0
Your avrev is 1
Now look at the conditional I had you add to your code. How can you not have an avatar showing is my answer. Your hasav is 0 and your avrev is NOT EQUAL to 0 so an avatar should show. Code: Content visible to verified customers only.
You can send admin login url and ftp login to support@photopost.com to see what you have done to the file and see what we see here.
|
| |
June 16th, 2007, 01:46 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: May 2007
Posts: 122
|
I made the change exactly like you told me. My vb3.php file now has this code and it doesn't work. Code: Content visible to verified customers only.
My vb3.php file is attached to this post. Take a look if everything is OK.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:09 AM. | |