freshJet Posted March 6, 2011 Report Share Posted March 6, 2011 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. Quote Link to comment Share on other sites More sharing options...
thomas2360 Posted March 24, 2011 Report Share Posted March 24, 2011 Hello everybody! I just want to know how to change the text which is on the signature. Thank you for your help! Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 24, 2011 Report Share Posted March 24, 2011 /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. Quote Link to comment Share on other sites More sharing options...
thomas2360 Posted March 25, 2011 Report Share Posted March 25, 2011 Yes I know that but I was wondering how to edit the text (change words) on the signature. Thank you! Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 26, 2011 Report Share Posted March 26, 2011 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; } Quote Link to comment Share on other sites More sharing options...
thomas2360 Posted March 26, 2011 Report Share Posted March 26, 2011 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; } Thank you so much!!! Quote Link to comment Share on other sites More sharing options...
Vicar Posted April 4, 2011 Report Share Posted April 4, 2011 /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 ? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Moderators Report Share Posted April 4, 2011 Did you regenerate them from the admin panel? Quote Link to comment Share on other sites More sharing options...
freshJet Posted April 5, 2011 Author Report Share Posted April 5, 2011 Can we make another topic for this? I made this for signature requests, not for general support with them Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.