folderblog
What is folderblog?
Folderblog is a free PHP script that automatically displays the images placed in a given directory, no database needed. It can be used as a blog or gallery — and anything in between.

» demo blog   » learn more   » download now

Discussion
Gravatar Enabled - help w/ default(back to index)
Hi everyone,
I am using FB3.16b with Almanac 3.16 and have enabled the gravatar hack on my test site before moving it to replace an existing site. The gravatar link is working but I can not get the default to work. The default is used when a commenter doesn't use a gravatar or leave an email address. You can see it at
http://www.frhendrix.com/folderblog/fb.php

Here is the code I'm using to get this far:

fb.php
$grav_default ="http://frhendrix.com/folderblog/css/question.gif";
// full URI to a default image; shown if no Gravatar or email available
$parts[3] = str_rot13(trim($parts[3]));
// decodes the email stored in filename_com.txt
$parts[3] = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($parts[3]).
"&default=".urlencode($grav_default);
// encodes email for Gravatar URI

almanac_settings.php:

$comment_format = '<div class="fbcomment"> <img src="<#fbemail#>"alt="Gravatar" class="gravatar" style="width:35px;height:35px; float: left; background: #707874; margin: 2px 10px 0px 0px; border: 1px solid #000; padding: 3px;" /> <#fbauthor#> <span style="color: #b0b5b0;">| <#fbdate#></span>
<#fbcomment#></div>';

fb.settings:

$use_alt_url = 1; // use alternate URLs (for use with .htaccess or PHP-as-CGI servers)

Any help is greatly appreciated...
posted by Richard Hendrix on 24 Sep 05 at 10:59 PM
Post a Reply:

Name:    Remember me
URL:    
(include http:// or mailto:)
(back to index)