Advertisement:

Author Topic: public profile picture  (Read 5070 times)

Hello

  • Full Member
  • ***
  • Posts: 174
public profile picture
« on: November 13, 2013, 12:14:02 am »
public profile picture not working on my site when i open profile pic i got that url http://www.gravatar.com/avatar/67dad84357546a006885544592240b77?s=120&d=http://www.site.com.net/oc-content/themes/bender/images/user_default.gif here are the code pls help me

 <div class="user-card">
        <img src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=120&d=<?php echo osc_current_web_theme_url('images/user_default.gif') ; ?>" />
        <ul id="user_data">

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: public profile picture
« Reply #1 on: November 13, 2013, 12:16:09 am »
do you have a backup of the original files? you could get it from there.

Hello

  • Full Member
  • ***
  • Posts: 174
Re: public profile picture
« Reply #2 on: November 13, 2013, 12:17:18 am »
dont have a backup but tell me hot to solve this problem

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: public profile picture
« Reply #3 on: November 13, 2013, 01:10:19 am »
Quote
<div class="user-card">
        <img src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=120&d=<?php echo osc_current_web_theme_url('images/user_default.gif') ; ?>" />
        <ul id="user_data">

looks the same as yours??

oh I see what you are saying now. I think the default pictures is not there anymore. the script can call up someones gravatar if they have one, otherwise it pulls the image "user_default.gif"
Ill attach it for you. you can delete the gravatar part of that, or remove it all together, because I see no where in bender where the user can upload and image anyway.
« Last Edit: November 13, 2013, 01:15:12 am by design »

Hello

  • Full Member
  • ***
  • Posts: 174
Re: public profile picture
« Reply #4 on: November 13, 2013, 10:34:22 am »
which code i delete ? pls help me

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: public profile picture
« Reply #5 on: November 14, 2013, 12:07:10 am »


delete what is in the red

<div class="user-card">
        <img src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=120&d=<?php echo osc_current_web_theme_url('images/user_default.gif') ; ?>" />
        <ul id="user_data">

Hello

  • Full Member
  • ***
  • Posts: 174
Re: public profile picture
« Reply #6 on: November 18, 2013, 10:31:19 am »
if i delete that code then image option not come

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: public profile picture
« Reply #7 on: November 18, 2013, 08:18:08 pm »
I'm not sure how gravitar works, I have not signed up for one before, yet when I created an account at github I got one. None of OSclass core themes allow a user profile image upload, so that whole chunk of code is useless as far as I'm concerned.

pixelpadre

  • Jr. Member
  • **
  • Posts: 76
Re: public profile picture
« Reply #8 on: September 01, 2017, 03:47:53 am »
This soooooooooooo fn cool.  I just had a client complain about me having his photo on my website.  I was stumped but now I see that gravatar.com is the culprit.  Anyone can create their own avatar and any website who subscribes to gravatar will get the custom avatar.   Wayyyyy tooooo cooooool.