Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Can't Set Avatar 
 
I am unable  to set an avatar/gravatar on my copy of Icy Phoenix.  Is this a known bug, or I am doing something wrong?
 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
Apparently no one knows the answer to this question.  I can't imagine that I'm the only one who has had this problem.
 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
why you can't set your avatar? what's the problem?
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
I don't know what the problem is.  But when attempting to choose an avatar from the Avatar generator page, a new avatar is never accepted.  No matter which avatar is chosen, it always reverts back to the default.
 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
please give me a test user and a url to your site
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
The site URL is - www.sunwestinternetservices.com - your user name is testor and the PW is testing
 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
The only think that it doesn't work is the avatar generator

try this

OPEN cache/.htaccess

FIND
Code: [Download] [Hide] [Select]
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>

REPLACE WITH
Code: [Download] [Hide] [Select]
Options -Indexes -ExecCGI -Includes
[
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
Thanks, but that doesn't work either.  It still reverts  back to the default.
 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
mmmm

Post here your GD info
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
I guess you mean the generate_avatar.php file?

Quote:
<?php
/**
*
* @package: Icy Phoenix
* @version $Id: generate_avatar.php - 1.0.0 - 2006/09/29
* @copyright (c) 2006 Mighty Gorgon
* @license http://opensource.org/licenses/GPL-license.php GNU Public License
*
*/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);

$fonts_path = 'images/fonts/';
$generator_template_path = $board_config['avatar_generator_template_path'] . '/';

$dest_pic = htmlspecialchars($_GET['cachefile']);
$source_pic = htmlspecialchars($_GET['avatarfile']);
$source_pic_full = $source_pic . '.gif';
$text_content = htmlspecialchars(stripslashes($_GET['text_content']));
$text_size = (isset($_GET['text_size'])) ? intval($_GET['text_size']) : '10';
$text_font = (isset($_GET['text_font'])) ? htmlspecialchars($_GET['text_font']) : 'triplex_bold.ttf';
$text_font = $fonts_path . $text_font;
$text_color = (isset($_GET['text_color'])) ? htmlspecialchars($_GET['text_color']) : '#FFFFFF';
$text_position = (isset($_GET['text_position'])) ? htmlspecialchars($_GET['text_position']) : '0';

/*
//$text_font = $fonts_path . 'trebuchet.ttf';
$text_font = $fonts_path . 'triplex_bold.ttf';
$text_size = 10;
$text_color = '#FFFFFF';
$text_position = '0';
*/


$avatars_array = array('ip.gif', 'a69_02.gif', 'agreen.gif', 'aphro_lite.gif', 'aphrodite.gif', 'blue.gif', 'darkblue.gif', 'firefox.gif', 'gray.gif', 'green.gif', 'opera.gif', 'pink.gif', 'purple.gif', 'red.gif', 'sblue.gif', 'av01.gif', 'av02.gif', 'av03.gif', 'av04.gif', 'av05.gif', 'av06.gif', 'av07.gif', 'av08.gif', 'av09.gif', 'av10.gif', 'av11.gif', 'av12.gif', 'av13.gif', 'av14.gif', 'av15.gif', 'av16.gif', 'av17.gif');

if (in_array($source_pic_full, $avatars_array))
{
    $source_pic = $generator_template_path . $source_pic_full;
}
else
{
    $num = mt_rand(1, count($avatars_array));
    $source_pic = $generator_template_path . $avatars_array[$num];
}

write_text($source_pic, $dest_pic, $text_content, $text_font, $text_size, $text_color, $text_position);
//write_text($source_pic, $dest_pic, $text_content, $text_font, $text_size, '#FFFFAA', $text_position);

/**
 * Write text on images
 *
 * Detail description
 * @param        none
 * @since        1.0
*/
function write_text($source_pic, $dest_pic, $text_content, $text_font, $text_size = '10', $text_color = '#FFFFFF', $text_position = '0')
{
    $temp_pic = imagecreatefromgif($source_pic);
    list($image_width, $image_height) = getimagesize($source_pic);

    /*
    $temp_pic_empty = imagecreatetruecolor ($image_width, $image_height);
    imagealphablending($temp_pic_empty, false);
    imagecopyresampled($temp_pic_empty, $temp_pic, 0, 0, 0, 0, $image_width, $image_height, $image_width, $image_height);
    imagesavealpha($temp_pic_empty, true);
    //imagepng($im_re, 'small_redfade.png');
    $temp_pic2 = imagecreatefrompng($source_pic);
    */

    // Calculate the centre
    for(;;)
    {
        list($left_x, , $right_x) = imagettfbbox($text_size, $text_position, $text_font, $text_content);
        $text_width = $right_x - $left_x;
        if($image_width > $text_width + 5)
        {
            break;
        }
        $text_size = $text_size - 0.5;
        if($text_size == 1)
        {
            die('Font size may not be reduced further, try to insert a shorter text');
        }
    }
    $text_padding = ($image_width - $text_width) / 2;

    $text_color = (substr($text_color, 0, 1) == '#') ? substr($text_color, 1, 6) : $text_color;
    $text_color_r = hexdec(substr($text_color, 0, 2));
    $text_color_g = hexdec(substr($text_color, 2, 2));
    $text_color_b = hexdec(substr($text_color, 4, 2));

    $text_color = imagecolorresolve($temp_pic, $text_color_r, $text_color_g, $text_color_b);
    //$text_color = imagecolorallocate($temp_pic, $text_color_r, $text_color_g, $text_color_b);
    imagettftext($temp_pic, $text_size, $text_position, $text_padding, ($image_height - ($text_size / 2)), $text_color, $text_font, $text_content);

    if($_GET['dl'])
    {
        header('Content-Disposition: attachment; filename="avatar.gif"');
    }

    /*
    header("Content-type: image/png");
    imagepng($temp_pic, $dest_pic);
    imagepng($temp_pic);
    imagedestroy($temp_pic);
    */
    header('Content-type: image/gif');
    imagegif($temp_pic, $dest_pic);
    imagegif($temp_pic);
    imagedestroy($temp_pic);

    return true;
}

?>

 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
no

ACP ->INFO ->GD INFO
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
OK -

Quote:
GD Info

Here you can retrieve information about the currently installed GD library
GD Info:
Version:     bundled (2.0.12 compatible)
Freetype Fonts Support:     Yes
Freetype Link Type:     with freetype
T1lib Support:     No
Gif Read Support:     Yes
Gif Create Support:     No
Jpg/Jpeg Support:     Yes
Png Support:     Yes
WBMP Support:     Yes
XBM Support:     Yes
Japanese Font Support:     No

 



 
sunwestSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
maybe there it's the problem i think...


Gif Create Support:     No  
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
Yes, I can confirm... the problem is related to NO GIF CREATION support.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Can't Set Avatar 
 
Thanks luca for confirm it
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events