Online Finisher Certificate

Hello. I have an online finisher certificate that participants can create for themselves. Everything works fine except for the color of the font for the Team Name and Participant Name. It is showing up in black but needs to be white. This used to work until my web hosting company upgraded the php from 4.0 to 5.0 (at least I think this is the cause). The link for the process is:

[url removed, login to view]

Just enter a first and last name (type in a long name and you'll see the text in black) and pick any team from the drop down box and click submit. A PDF certificate is created.

[url removed, login to view] was used to configure the text on the certificate. Here is the code:


//get tektips logo

$im = imagecreatefromgif('images/[url removed, login to view]');

//get the image size

$imageWidth = imagesx($im);

$imageHeight = imagesy($im);

$font = imageloadfont('[url removed, login to view]');

$font_size = imagefontwidth($font);

$adjustment = 1;

$black = imagecolorallocate($im, 0, 0, 0);

$white = imagecolorallocate($im, 250, 250, 250);

$l = 15;

$r = -15;

$nameLeft = round(($imageWidth/2)-((strlen($name)*imagefontwidth($font_size))/2), 1) - strlen($name)*$adjustment;

$tnameLeft = round(($imageWidth/2)-((strlen($tname)*imagefontwidth($font_size))/2), 1) - strlen($tname)*$adjustment;

$cLeft = round(($imageWidth/4)-((strlen($c)*imagefontwidth($font_size))/2), 1) - strlen($c)*$adjustment - $l;

$ftLeft = round(($imageWidth/4)-((strlen($ft)*imagefontwidth($font_size))/2), 1) + $imageWidth/2 - $r - strlen($ft)*$adjustment;

$opLeft = round(($imageWidth/4)-((strlen($op)*imagefontwidth($font_size))/2), 1) - strlen($op)*$adjustment - $l;

$cpLeft = round(($imageWidth/4)-((strlen($cp)*imagefontwidth($font_size))/2), 1) + $imageWidth/2 - 10 - strlen($cp)*$adjustment - $r + 15;

imagestring($im, $font, $nameLeft, 190, $name, $white);

imagestring($im, $font, $tnameLeft, 460, $tname, $white);

imagestring($im, $font, $cLeft, 650, $c, 0);

imagestring($im, $font, $ftLeft, 650, $ft, 0 );

imagestring($im, $font, $opLeft, 715, $op, 0);

imagestring($im, $font, $cpLeft, 715, $cp, 0);

// output the image

imagegif($im, 'images/[url removed, login to view]');



Everything works fine except I need the First and Last name and team name to show up in white instead of black.

I assume this is a simple, couple minute project for someone who knows what is going on, so I hope you won't bid too high.



Taidot: PHP, verkkosivujen suunnittelu

Näytä lisää: create finisher certificate, online finisher certificates, create online finisher certificate, online finisher certificate, website logo online, website design work show cause, web design certificate online, web code online, text to logo online, text logo online, text font design online, simple online create website, simple logo online, round name, project of logo online, project code online, pdf logo online, online works com, online web design text, online text design logo, online project works, online name design, online logo company design, online logo company, online font design logo

Tietoa työnantajasta:
( 30 arvostelua ) Englewood, United States

Projektin tunnus: #420434

Myönnetty käyttäjälle:


will fix it now

$30 USD 0 päivässä
(2 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Please check pmb

$30 USD 0 päivässä
(226 arvostelua)

Ready to start now easy fix.

$30 USD 1 päivässä
(119 arvostelua)

It take 1 day.I can help.

$30 USD 1 päivässä
(0 arvostelua)

I can do it..! Lets start..! Check Pm

$30 USD 0 päivässä
(0 arvostelua)