Need help recoding something. [Can't Pay]

Discussion in 'PHP' started by Joshua Pitts, Jan 21, 2009.

  1. #1
    
    <?php
    
    define('IN_PHPBB', true);
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.'.$phpEx);
    
    // $user->session_begin();
    
    list($width, $height, $type) = @getimagesize($user->data['user_avatar']);
    
    switch ( $type )
    {
    case 1:
    $avatar = imagecreatefromgif($user->data['user_avatar']);
    break;
    case 2:
    $avatar = imagecreatefromjpeg($user->data['user_avatar']);
    break;
    case 3:
    $avatar = imagecreatefrompng($user->data['user_avatar']);
    break;
    }
    
    if ( isset($_GET['bg']) )
    {
    list($bg_width, $bg_height, $bg_type) = @getimagesize($_GET['bg']);
    
    switch ( $bg_type )
    {
    case 1:
    $bg_img = imagecreatefromgif($_GET['bg']);
    break;
    case 2:
    $bg_img = imagecreatefromjpeg($_GET['bg']);
    break;
    case 3:
    $bg_img = imagecreatefrompng($_GET['bg']);
    break;
    }
    }
    
    $this_img = imagecreatetruecolor(468, 60);
    
    if ( isset($bg_width) && isset($bg_height) && isset($bg_img) )
    {
    imagecopymerge($this_img, $bg_img, 0, 0, 0, 0, $bg_width, $bg_height, 100);
    }
    
    imagealphablending($this_img, TRUE);
    
    $color = imagecolorallocate($this_img, 0, 0, 0);
    $bg = imagecolorallocatealpha($this_img, rand(200, 250), rand(200, 250), rand(200, 250), 50);
    
    imagefill($this_img, 0, 0, $bg);
    
    if ( isset($width) && isset($height) )
    {
    imagecopymerge($this_img, $avatar, 468 - $width, 0, 0, 0, $width, $height, 100);
    }
    
    imagefilledrectangle($this_img, 0, 0, 467, 59, $bg);
    
    // imagestring($this_img, 2, 4, 1, $config['sitename'] . ' (hi ' . $user->data['username'] . '!)', $color); // no cookies!!!
    imagestring($this_img, 2, 4, 1, $config['sitename'], $color);
    imagestring($this_img, 2, 4, 29, 'Posts: ' . $config['num_posts'] . ' | Topics: ' . $config['num_topics'] . ' | Members: ' . $config['num_users'] . ' | Newest member: ' . $config['newest_username'], $color);
    imagestring($this_img, 1, 4, 49, $config['site_desc'], $color);
    imagerectangle($this_img, 0, 0, 467, 59, $color);
    
    header('Content-Type: image/gif');
    imagegif($this_img);
    
    ?>
    Code (markup):

    If anybody can change that code ( used for the phpbb sig) to work with the forum software Xmb. I would gratefully somehow repay( No Money). I have sig and Avy spots that you can have free.
     
    Joshua Pitts, Jan 21, 2009 IP
  2. t3nt3tion

    t3nt3tion Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $$$ pay the bills, not free links :)
     
    t3nt3tion, Jan 22, 2009 IP
  3. Joshua Pitts

    Joshua Pitts Well-Known Member

    Messages:
    570
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    100
    #3
    Im 14, dont have a verified paypal.
     
    Joshua Pitts, Jan 22, 2009 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    i think i'll pass.. if you have no experience in programming, you need to hire a programmer here for the integration.
     
    bartolay13, Jan 22, 2009 IP
  5. Gangsta

    Gangsta Active Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    are you sure that this script is for sig?
    I think it is for avatar
     
    Gangsta, Jan 22, 2009 IP