Jump to content

Recommended Posts

Posted

To show your status on Skype simply add this lines in the /core/templates/frontpage_main.tpl (with crystal skin, but work also with all other skins) before the last </div> tag at the bottom source code.

Replace YOURSKYPENAME with your own Skype name.

You can see the result here Italian Virtual Pilots

--- Gianni ---

<p>

<left>WebMaster attualmente

<p>

<!--Skype 'Webmaster is now' button http://www.skype.com/go/skypebuttons--><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>

<a href="skype:YOURSKYPENAME?call"><img alt="My Status" height="44" src="http://mystatus.skype.com/bigclassic/YOURSKYPENAME" style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" width="182" /></a></p>

</left></p>

  • 1 month later...
Guest Henrikkir
Posted

Skype on pilotlist for all pilot:

1. Profile field

First go to administration on your site.

Go to "Site and settings" and make a new "profile field" call "Skype"

Then edit all pilot and write there skypename.

2. Edit php site

1.

Open and edit "pilots_list.tpl"

2.

In the tablesorter make this line <th width="30%">Skype</th>

3.

Go to the custem field

<td><div align="center"><?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Skype');

if( $fieldvalue != '' )

{

echo ' <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>

<a href="skype:' . $fieldvalue . '?call"><img src="http://mystatus.skype.com/bigclassic/' . $fieldvalue . '" style="border: none;" width="100" height="30" alt="My status" /></a></a>' ;

}

?></div></td>

Now it work, se the scipt here.

The full script on my site:

<h3>Pilotliste for www.flight-simulator.dk</h3>

<?php

if(!$allpilots)

{

echo 'There are no pilots!';

return;

}

?>

<table width="650" class="tablesorter" id="tabledlist">

<thead>

<tr>

<th width="10%">Callsign</th>

<th width="10%">Land</th>

<th width="30%">Navn</th>

<th width="15%">Rang</th>

<th width="10%">Flyvninger</th>

<th width="10%">Timer</th>

<th width="25%">Vataware</th>

<th width="30%">Skype</th>

</tr>

</thead>

<tbody>

<?php

foreach($allpilots as $pilot)

{

/*

To include a custom field, use the following example:

<td>

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>

</td>

For instance, if you added a field called "IVAO Callsign":

echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');

*/

?>

<tr>

<td width="7%" nowrap><div align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </div></td>

<td width="9%" nowrap><div align="center"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /></div></td>

<td><div align="left"><?php echo $pilot->firstname.' '.$pilot->lastname?></div></td>

<td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td>

<td><div align="center"><?php echo $pilot->totalflights?></div></td>

<td><div align="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></div></td>

<td><div align="center"><?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'VATSIM ID' );

if( $fieldvalue != '' )

{

echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="http://www.vataware.com/images/logo.gif""/'. $fieldvalue .'/http://www.vataware.com/images/logo.gif/" width="90" height="25" border="0" alt="Vataware" /></a></a>' ;

}

?></div></td>

<td><div align="center"><?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Skype');

if( $fieldvalue != '' )

{

echo ' <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>

<a href="skype:' . $fieldvalue . '?call"><img src="http://mystatus.skype.com/bigclassic/' . $fieldvalue . '" style="border: none;" width="100" height="30" alt="My status" /></a></a>' ;

}

?></div></td>

<?php

}

?>

</tbody>

</table>

Best regards

Henrik Kirkestrup

www.flight-simulator.dk

  • 2 months later...

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