CVV001 Posted November 15, 2010 Report Posted November 15, 2010 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> Quote
Cor Posted November 15, 2010 Report Posted November 15, 2010 tnx for this> I can use this:-) Regards, Cor Quote
Guest Henrikkir Posted December 19, 2010 Report Posted December 19, 2010 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 Quote
CPC900 Posted December 19, 2010 Report Posted December 19, 2010 Got the first one to work, from IVP001......but the second one from Henrikkir is not?! Quote
Guest Henrikkir Posted December 20, 2010 Report Posted December 20, 2010 Look here. http://danishvikings.dk/index.php/pilots Its work fine. Do you need help? Quote
CPC900 Posted December 20, 2010 Report Posted December 20, 2010 Yes, I saw it worked for you Just not with my current code. I will look at it more thoroughly and get back to you. Probably just me Quote
CVV001 Posted December 22, 2010 Author Report Posted December 22, 2010 Look here. http://danishvikings.dk/index.php/pilots Its work fine. Do you need help? Quote
CVV001 Posted December 22, 2010 Author Report Posted December 22, 2010 Good work Henrik... i have modified my pilots_list.tpl with your code and all work fine TNX Gianni ( IVP001 ) Quote
flyalaska Posted February 27, 2011 Report Posted February 27, 2011 Works great. Although you and your pilots will need to go into your skype's settings and allow others to see your online status, or you will always show offline. Quote
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.