Thank you! Everything works except animated. Perhaps it is because the images is adapted to 80x80px.
Quote:i the same message$action = $_REQUEST["action"];
Quote:
$action = $_REQUEST["action"];
"UFFENO1, post: 94040":Have you chmod 777 avatars/ ?

"MicroMonkey, post: 94047":Just a guess, but maybe by being localhost is what is causing the "direct access not allowed" error. I run the tracker on a different machine than the one I am on, so I have never seen that error. You could also remove that line of code in upavatar.php and see if that helps you at least trouble shoot the problem.
if (!$action == "post" OR !$action == "upload") {
write_log("<b>HACKING ATTEMPT !!! </b>- User <b>" . $CURUSER["username"] . "</b> tries to direct access to upavatar.php");
print ("<br><p><center><b>Direct access not allowed !!!</b></p><p>Go to: <a href=account.php?action=edit_settings&do=edit><b>" . T_("ACCOUNT") . "</b></a></center></p><br>");
}
not sure if it helps anyone, but below is all the code I have.
in config.php
/// START UPLOAD AVATAR ///
$site_config['AVATARUPLOAD'] = true; // Enable / Disable upload avatar
$site_config['avatar_dir'] = '/avatars'; // Dir where will be stored avatars
also in config.php
// Image upload settings
$site_config['image_max_filesize'] = 20971520;
$site_config['avatar_max_filesize'] = 11010000; // Max uploaded image size in bytes (Default: 512 kB)
$site_config['allowed_image_types'] = array(
// "mimetype" => ".ext",
"image/gif" => ".gif",
"image/pjpeg" => ".jpg",
"image/jpeg" => ".jpg",
"image/jpg" => ".jpg",
"image/png" => ".png"
);
in account.php
/// START UPLOAD AVATAR ///
if ($site_config['AVATARUPLOAD']){
$avatar = htmlspecialchars($CURUSER["avatar"]);
if (!$avatar)
$avatar = "".$site_config["SITEURL"]."/images/default_avatar.png";
print("<tr><td align='right' class='table_col1'><b>" . T_("AVATAR") . ":</b></td><td align='left' ><table class='table_col1' border='0'><tr><td class=table_col1><img src=$avatar hight='40' width='40'></td><td ><input name='avatar' size='50' value=\"" . htmlspecialchars($CURUSER["avatar"]) . "\"><br /><i>" . T_("AVATAR_LINK") . ": 80x80px</i> OR [ <a href=upavatar.php?action=upload><b>" . T_("UP_AVATAR") . "</b></a> ]</td></tr></table></td></tr>");
}
else {
print("<tr><td align='right' class='table_col1'><b>" . T_("AVATAR_UPLOAD") . ":</b> </td><td align='left' class='table_col1'><input type='text' name='avatar' size='50' value=\"" . htmlspecialchars($CURUSER["avatar"]) .
"\" /><br />\n<i>".T_("AVATAR_LINK")."</i><br /></td></tr>");
}
///END UPLOAD AVATAR ///
attached is my upavatar.php
[ATTACH]7289.IPB[/ATTACH]
$shit = explode('.', $_FILES[avatar]['name']);
$type = strtolower(end($shit));


No users online
Torrents
Members
Online