Jump to content
Nabeel

Signatures

Recommended Posts

Signatures are generated automatically, for each pilot. They are regenerated and stored, to alleviate server load. They're regenerated when a PIREP is filed, or an admin selects the option in the admin panel.

The general format of a signature link is:

http://yourvasite.com/lib/signatures/YOUR_PILOT_CODE.png

So if you are VMA0045 -

http://yourvasite.com/lib/signatures/VMA0045.png

And this can be used as the link to a forum, etc.

The basic signature is create from the background.png file, in /lib/signatures. The signature image will take the size of the background image (so if it's 500x150, then the signature will be that same size). They are all generated as PNGs.

There are several options for signatures in your local.config.php:

Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF');
Config::Set('SIGNATURE_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);

SIGNATURE_TEXT_COLOR - The text color on the signature

SIGNATURE_SHOW_EARNINGS - Show how much money a pilot has made (true/false)

SIGNATURE_SHOW_RANK_IMAGE - Show the image for the rank of the pilot (true/false)

SIGNATURE_SHOW_COPYRIGHT - Show the "powered by phpVMS, VA Name" (true/false)

If you change an option, or the background image, in the admin panel dashboard, click "Generate Signatures". This will refresh all of them.

Share this post


Link to post
Share on other sites

Not without changing the code itself, I was planning to make that adjustable, but never got around to it

Share this post


Link to post
Share on other sites

if you uploaded a custom pic and named it background.png, be sure to delete the image out of the sig folder when updating or it will over write your sig banner every time. I learned my lesson and did not name my sig banners the same as default one.  ;)

Share this post


Link to post
Share on other sites

Make sure it's a proper JPG/PNG with no alpha layers, I don't think it like transparency layers. Did you try the regenerate link in maintenance?

Share this post


Link to post
Share on other sites

I changed the image and it came out black, i put it back to the default one ( i renamed it to 123background.png ) and renamed it to the default background.png and it worked but no other images are working, let me delete the image i want to use and reupload.

Share this post


Link to post
Share on other sites

Created via Seashore app on Mac, I wil try to create another "sample" image.

They might have been doing something funky with the image

Share this post


Link to post
Share on other sites

Hi Nabeel, would you be able to list the codes for colors on the signatures please as I am wanting to change the color of the text

Thanks!

Share this post


Link to post
Share on other sites

Hi

Is there a way to give a pilot a choice of signatures. For instance A330 Pilot signature, ATR72 Pilot. Or is it just the one signature?

Share this post


Link to post
Share on other sites

You can add all the backgrounds you would like in the signatures/backgrounds/ folder and when the pilot goes to edit their profile there will be a dropdown with all the background file names to chose from.

Share this post


Link to post
Share on other sites

You can add all the backgrounds you would like in the signatures/backgrounds/ folder and when the pilot goes to edit their profile there will be a dropdown with all the background file names to chose from.

Excellent

Many thanks for that Sim Pilot.

Share this post


Link to post
Share on other sites

×