Support Forum

ashow "not working" troubleshooting Gravatar rating problem.

RI Rene Iversen
Rene Iversen
Member

Hi Guys

Earlier i had a problem regarding Gravatars not showing.

and during the troubleshooting of this the following was added to sp-common-view-functions.php

ashow($avatarData->url);
ashow($headers);

afterwards they where commented out.

 

But now if i re-enable the commands save the file and refresh the webpage, it is not showing $avatarData->url or $headers as it did during troubleshooting.

Do i need to enable “ashow” commands in forum options ?

 

Regards

René

 

I need this because i am trying to troubleshoot why I cannot get gravatar Rating X to show.

It has been “ticked” in avatar options, and when i look into wp_sfoptions > sfavatars I can see sfgmaxrating is “4”, and this value changes if i change rating in options.

So i would like to get avatar data URL to verify received url.

 

 

52 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

the ashow() function is always available. I use it – probably – daily!
Where are you using it within the code?

MP Mr Papa
Mr Papa
Member

they just work.. but of course, they need data to show…  are you sure those variables exist where you have ashow?

ashow just means display the object or variable…

RI Rene Iversen
Rene Iversen
Member

Hmm That is wierd then, because they are still same place as where you put during last trouble shooting.

 

And there is data in the variables, since the avatar is showing.

 

Any ideas ? could it be a server setting ?

 

/René

YS Yellow Swordfish
Yellow Swordfish
Member

I am sorry but I really do have no idea. I have been using then just this morning all over the code with no trouble and use them daily. I know of no server setting that could possibly effect these tools. Have you tried the php built in echo and print_r statements instead? That is all these functions do – call the php functions with a little bit of formatting…

RI Rene Iversen
Rene Iversen
Member

Okay, I’ve found out that Gravatar cache, changes value/data for thoose fields i wanted to get data from.

After disabling the plugin, i get the expected data.

 

But now i still have the issue of Gravatars with only rating X or R are not showing.

 

It has been “ticked” in avatar options, and when i look into wp_sfoptions > sfavatars I can see sfgmaxrating is “4”, and this value changes if i change rating in options.

But gravatars with ratings other than PG are not showing.

Any ideas would be appriciated.

 

Regards

 René

MP Mr Papa
Mr Papa
Member

yes, why I had asked you to disable that plugin previously when I was working…

what do you mean not showing? what avatar do you get?  please post the url to such an avatar…

RI Rene Iversen
Rene Iversen
Member

when looking at avatar URL it shows :

http://0.gravatar.com/avatar/ac38eb1eaad0c2c07ef90a0d2264f893?d=404&s=90&r=X

And i can see the gravatar when cliking the link, But avatar is not showing in forum/profile.

 

The gravatar is working fine in my WordPress site.

 

Regards

 René

 

RI Rene Iversen
Rene Iversen
Member

link above seems not to work : here is link without http://

 

0.gravatar.com/avatar/ac38eb1eaad0c2c07ef90a0d2264f893?d=404&s=90&r=X

 

//René

 

MP Mr Papa
Mr Papa
Member

sorry, not following… what are you seeing for the avatar?  error?  blank?  default?

RI Rene Iversen
Rene Iversen
Member

Hello

I am seign the default Avatar in simplepress forum. in WordPress it does show the gravatar.

 

I Can see the Gravatar if i set the Rating to G in Gravatar account for the avatar.

 

Regards

 René

MP Mr Papa
Mr Papa
Member

do you still have the gravatar cache plugin enabled??

RI Rene Iversen
Rene Iversen
Member

No that plugin was disabled.

 

Is there someway i can check ratingcheck function to see output from this.

 

//Rene

 

MP Mr Papa
Mr Papa
Member

you can use ashow on the url in request to gravatar.com… the only
thing we do is pass the rating to gravatar.com…

a couple of slight differences that seem to have no impact… the url
to gravatar from wp is 0.gravatar.com… ours is just gravatar.com…
both seem to work find directly… also, wp now passes size= as s= and
rating= as r=… but again both seem to work directly… of course,
gravatar.com continues to support the older style too for backward
compat (or is it vice versa?)…

RI Rene Iversen
Rene Iversen
Member

Hmm. the very wierd this is that :

ashow($avatarData->url);

Shows : Working Avatar link.

http://0.gravatar.com/avatar/4998c167ac4a439cac627f889016d1de?d=404&s=90&r=X

But the is no picture shown.

So even though Avatar URL is working the avatar is not shown.

 

Is there another place where you check Rating ? since sfgmaxrating is correct set to 4 and link ends with r=X

Regards

René