Welcome to Geeklog, Anonymous Wednesday, May 22 2024 @ 07:43 pm EDT

Geeklog Forums

My Account Photo help box


ironmax

Anonymous
It seems that there is information in the source file for photo help for where the user can get avatars from. However, it is not showing up in the box to the right of the My Account box under About You. Here is the info from the source and its not showing on the page when rendered. I do not know if this is a bug or not, this is the first time I set this portion of the site up, for photo's.

Text Formatted Code

<table class="inputTable">
           <tr>
                <td width="100px"><label for="homepage">Homepage:</label></td>
                <td><input type="text" id="homepage" name="homepage" size="55" maxlength="32" value="http://www.spacequad.com"></td>
           </tr>
           <tr>
                <td width="100px"><label for="location">Location:</label></td>

                <td><input type="text" id="location" name="location" size="55" maxlength="32" value=""></td>
           </tr>
                      <tr>
                <td width="100px"><label for="photo">Photo:</label></td>
                <td><input type="file" id="photo" name="photo" size="30"><br><br><img src="http://www.gravatar.com/avatar.php?gravatar_id=cd324b3f5c2501bcdfd310e80b5e6384&rating=R&default=http%3A%2F%2Fwww.spacequad.com%2Fimages%2Fyourphoto.gif" alt="" class="userphoto"></td>
           </tr>

           <tr>
                <td width="100px"><label for="sig">Signature:</label></td>

                <td><textarea id="sig" name="sig" style="width:100%" rows="4"></textarea></td>
           </tr>
           <tr>
                <td width="100px"><label for="about">Bio:</label></td>
                <td><textarea id="about" name="about" style="width:100%" rows="4"></textarea></td>
           </tr>
           <tr>

                <td width="100px"><label for="pgpkey">PGP Key:</label></td>
                <td><textarea id="pgpkey" name="pgpkey" style="width:100%" rows="4"></textarea></td>
           </tr>
        </table>


 
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The bit with $_CONF['default_photo'] doesn't seem to work, for whatever reason.

But I've just deleted my userphoto here on geeklog.net and it's now being pulled from gravatar.com (we don't use the default_photo setting here).

But when I copy and paste the entire URL (including the default_photo bit) into a browser, I do get your default photo. Odd.

bye, Dirk

[edit: The forum doesn't support gravatar.com, so my photo is missing here for the moment - going to upload it again soon]
 Quote

ironmax

Anonymous
Okay, I have my config set as the following below. The default phot does work when its pulled from my own server. But that was not my real question. What I was wondering is why would there be code in the page for img src="http://www.gravatar.com/avatar.php?gravatar_id=cd324b3f etc etc, and there is no help box for this on the page to the right of the form on this or its not included, but its included in the source....



Text Formatted Code

// Use avatars from gravatar.com (if set = true).
// A gravatar will only be requested if there is no uploaded photo.
$_CONF['use_gravatar'] = true;

// gravatar.com provides "movie-style" ratings of the avatars (G, PG, R, X).
// Setting this to 'R' would allow avatars rated as G, PG, and R (but not X).
$_CONF['gravatar_rating'] = 'R';

// Force a max. width when displaying the user photo (also used for gravatars)
$_CONF['force_photo_width'] = 75;

// Use this image when there's neither an uploaded photo nor a gravatar.
// Should be the complete URL of the image.
$_CONF['default_photo'] = 'http://www.spacequad.com/images/yourphoto.gif';

 

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by ironmax: What I was wondering is why would there be code in the page for img src="http://www.gravatar.com/avatar.php?gravatar_id=cd324b3f etc etc, and there is no help box for this on the page to the right of the form on this or its not included, but its included in the source....

There's nothing for the user to configure here - you either have support for gravatar.com enabled in config.php or you don't.

Okay, so I guess in the former case you could inform users about the service and tell them to register there ...

bye, Dirk
 Quote

All times are EDT. The time is now 07:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content