Jump to content

Recommended Posts

  • Administrators
Posted

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.

  • 1 year later...
  • 2 weeks later...
Posted

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.  ;)

  • 2 weeks later...
  • Administrators
Posted

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?

Posted

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.

  • Administrators
Posted

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

They might have been doing something funky with the image

  • 7 months later...
Posted

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!

  • 4 months later...
  • Administrators
Posted

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.

Posted

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.

×
×
  • Create New...