Jump to content

Get Your Custom Signatures


freshJet

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...

/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.

Link to comment
Share on other sites

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;
	}

Link to comment
Share on other sites

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!!!

Link to comment
Share on other sites

  • 2 weeks later...

/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 ? :blink:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...