Jump to content

Signatures


Nabeel

Recommended Posts

  • Administrators

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.

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
  • 2 weeks later...
  • 7 months later...
  • 4 months later...

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.

Link to comment
Share on other sites

×
×
  • Create New...