ok the readme says: Gravatar for Social Web CMS v0.3
but the description says: Gravatar v.0.2
Anyways it works fine with pligg and I have it full operational in the rest of the site.
In the readme the main code is html1.php is:
PHP Code:
// use the user uploaded avatars ? if(Enable_User_Upload_Avatar == true && $avatarsource == "useruploaded"){ $imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_name . "_" . $imgsize . ".jpg"; return $imgsrc; } elseif(Enable_User_Upload_Avatar == true && $avatarsource == "gravatar"){ $vars = array('userid' => $user_id, 'username' => $user_name, 'imgsize' => $imgsize, 'imgsrc' => ''); check_actions('gravatar', $vars); $imgsrc = $vars['imgsrc']; if($imgsrc != '') { return $imgsrc; } }
It works everwhere except my new module. It works in the online users module too which is present in the sidebar....