Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
ashow "not working" troubleshooting Gravatar rating problem.
Avatar
Rene Iversen
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2013 - 12:12 pm

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.

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2013 - 3:02 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2013 - 7:40 pm

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...

Avatar
Rene Iversen
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2013 - 11:20 am

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é

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 12, 2013 - 11:51 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Rene Iversen
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2013 - 3:52 pm

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é

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2013 - 8:01 pm

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...

Avatar
Rene Iversen
Member
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2013 - 5:49 am

when looking at avatar URL it shows :

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é

 

Avatar
Rene Iversen
Member
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2013 - 5:51 am

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

 

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

 

//René

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2013 - 7:31 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625