Jump to content

Signatures


Daniel

Recommended Posts

  • Moderators

HI these settings are in the app.config.php, just copy them over to your local.config.php and change as you wish, you will need to regenerate your signatures from with in the admin panel once you have changed the settings.

# Options for the signature that's generated 
Config::Set('SIGNATURE_TEXT_COLOR', '#000');
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', true);

If you want to use a custom font just download it and place it in the referenced folder.

Link to comment
Share on other sites

  • Moderators

I don't have much time but this is a quick hack, not the ideal solution but it may be OK for you,

Just a couple of edits,

Find pilots.php in the core/modules/pilots and comment out the following,line 31 and 32,

//$this->set('title', $hub->name);

//$this->set('icao', $hub->icao);

Then go over to the template pilots_list.tpl in your skins profile and remove the h3 tag at the top.

Link to comment
Share on other sites

  • Moderators

Yeh that's why i said its not ideal.

Like simpilot said you might as well be better off creating your own, you can try this and expand on it,

In the pilots_list.tpl you can try,

<?php
$this->set('pilots', PilotData::getAllPilots());
?>
<div class=â€mcrightâ€>
<table width="700" cellspacing="1" cellpadding="5" border="1">
<tr>
 <td>Pilot</td>
 <td>Country</td>
</tr>
<?php
 foreach($allpilots as $pilot)
  {
   echo '<tr>';
   echo '<td>'.$pilot->firstname.' '.$pilot->lastname.'</td>';
   echo '<td>'.$pilot->location.'</td>';
   echo '</tr>';
  }
?>
</table>
</div>

Just add to the fields you want to display, not the ideal solution as you have the code in the template.

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