Hey,
I love making signatures for some reason, and I thought there could be no better way then to help out the phpVMS community. Most of you already have awesome badges, but for those who don’t, I’m willing to create one for you for FREE. This includes status badges for simpilot’s paid service. So, if you want one, give me the following details, either by PM or by reply:
Dimensions in pixels (default is 500px x 120px)
Border (Yes/No) and if yes, what colour?
Image (You must provide your own background image)
Specific font, colours, style, text etc.
I hope this will help a lot of VAs.
Regards,
Iain.
Hello everybody!
I just want to know how to change the text which is on the signature.
Thank you for your help!
Jeff
March 24, 2011, 7:16pm
3
/public_html/core/app.config.php
Look around line 170 for this:
# Options for the signature that's generated
Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF');
Config::Set('SIGNATURE_USE_CUSTOM_FONT', true);
Config::Set('SIGNATURE_FONT_PATH', SITE_ROOT.'/lib/fonts/tahoma.ttf');
Config::Set('SIGNATURE_FONT_SIZE', '10');
Config::Set('SIGNATURE_X_OFFSET', '10');
Config::Set('SIGNATURE_Y_OFFSET', '17');
Config::Set('SIGNATURE_FONT_PADDING', 4);
Config::Set('SIGNATURE_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', false);
You can change both the font type and also the font color.
Make a backup, because it will be overwritten during any phpVMS updates.
Yes I know that but I was wondering how to edit the text (change words) on the signature.
Thank you!
Jeff
March 26, 2011, 2:25am
5
It took me some hard searching to find its location, I think this is what you are looking for…
Inside the /public_html/core/common/PilotData.class.php look around Line 954 for this…
public function generateSignature($pilotid)
{
$pilot = self::getPilotData($pilotid);
$last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED);
$pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid);
if(Config::Get('TRANSFER_HOURS_IN_RANKS') === true)
{
$totalhours = $pilot->totalhours + $pilot->transferhours;
}
else
{
$totalhours = $pilot->totalhours;
}
# Configure what we want to show on each line
$output = array();
$output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname;
$output[] = $pilot->rank.', '.$pilot->hub;
$output[] = 'Total Flights: ' . $pilot->totalflights;
$output[] = 'Total Hours: ' . $totalhours;
$output[] = 'Current Location: ' . $last_location->arricao;
if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true)
{
$output[] = 'Total Earnings: ' . $pilot->totalpay;
}
Vicar
April 4, 2011, 10:16pm
7
/public_html/core/app.config.php
Look around line 170 for this:
Options for the signature that’s generated
Config::Set(‘SIGNATURE_TEXT_COLOR’, ‘#FFFFFF ’);
Config::Set(‘SIGNATURE_USE_CUSTOM_FONT’, true);
Config::Set(‘SIGNATURE_FONT_PATH’, SITE_ROOT.‘/lib/fonts/tahoma.ttf’);
Config::Set(‘SIGNATURE_FONT_SIZE’, ‘10’);
Config::Set(‘SIGNATURE_X_OFFSET’, ‘10’);
Config::Set(‘SIGNATURE_Y_OFFSET’, ‘17’);
Config::Set(‘SIGNATURE_FONT_PADDING’, 4);
Config::Set(‘SIGNATURE_SHOW_EARNINGS’, true);
Config::Set(‘SIGNATURE_SHOW_RANK_IMAGE’, true);
Config::Set(‘SIGNATURE_SHOW_COPYRIGHT’, false);
You can change both the font type and also the font color.
Make a backup, because it will be overwritten during any phpVMS updates.
Well, I did change some settings, exactly as quoted, but no visible effect. Missed anything ?
Did you regenerate them from the admin panel?
Can we make another topic for this? I made this for signature requests, not for general support with them