Jump to content

Recommended Posts

Posted

Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF');

This doesnt change the color of the txt

EZE0001.png

Should be dark blue with #003366 that i added to my local_config and i used the reset button lots of times :)

Dave

  • Administrators
Posted

Did the background change when you hit the reset.

Try it without the # sign

Actually I found an error in my code,

To fix it for now, open core/common/pilotdata.class.php, around about line 486, theres:

sscanf($color, Config::Get('SIGNATURE_TEXT_COLOR'));

Replace it with

$txtcolor = str_replace('#', '',  Config::Get('SIGNATURE_TEXT_COLOR'));

	$color = sscanf($txtcolor, '%2x%2x%2x');

Posted

Is there any way you could add to the code or whatever so you can have more than one background to choose from?? Like with my airline im of course AirEast but within the east there are alot of great things, animals, music, mountain and whatnot so im basing my livery's off of those things, for example 'Bear Air' is just one of them hence the bear on the tail of the aircraft. So is there any way we could have more than one signature but have the pilots choose what ones they want for a background???

And i replaced that code but my text color dosent change also...

AEA0001.png

  • Administrators
Posted

It'll remove the # sign. Weird, I'll take a look a bit deeper, it was working. Arg.

And as for multiple backgrounds... right now no... I'll put it on my list though :)

Oh, you guys know it'll take the size of the background image, so you can adjust the size through the bg image size. If you thought it was too big ;)

Posted

Naw i just went into photoshop and gave it a nice size for forums and whatnot, then uploaded it when into the one file i needed to edit and change the image location for it and it pretty much did the work for me, lol!

  • Administrators
Posted

Haven't got to it yet, workin' my way down my list, it's the 3rd one down, hopefully by this afternoon, unless my boss decides to do something crazy like give me work.

  • Administrators
Posted

Ok, find that sscanf() line, around line 499,

replace that line and the next one with this:

$txtcolor = str_replace('#', '',  Config::Get('SIGNATURE_TEXT_COLOR'));
$color = sscanf($txtcolor, '%2x%2x%2x');
$textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]);

  • 5 years later...
Posted

Ok, find that sscanf() line, around line 499,

replace that line and the next one with this:

$txtcolor = str_replace('#', '',  Config::Get('SIGNATURE_TEXT_COLOR'));
$color = sscanf($txtcolor, '%2x%2x%2x');
$textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]);

HI CAN I CREAT A NEW SIGNATURE AND ADD IT TO ANOTHER AIRLINE WITHIN MY VA? FOR E.G. I HAVE A CODESHARE AIRLINE SILVER AIRWAYS ITS AN ADDED AIRLINE (FROM WITHIN THE ADMIN CENTER) UNDER MY SKY BAHAMAS VIRTUAL AIRLINE.

SO THE IMAGE IN MY FORUM SIGNATURE IS THE SIGNATURE FOR MY VA I WANT SIL PILOTS TO HAVE A SIMILAR ONE BUT MODDED SO THEY CAN SEE THEY ARE SIL PILOTS BUT ALSO KEEPING MY CURRENT SIGNATURE.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...