Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. Status update almost done got it working on the template just need to fix the pilotid from cookie ,i hope that tomorrow you wil have something as today i am working Best regards
  2. If you want please tell me what version do you have and i will have a look at it
  3. My bad dint realise that they where payware. PS he doent ask for support bud for customization of the addon that he purchased Best regards
  4. Hello i just saw your message, If you are still arround this is my template i am using this tabs qith jqueryhttp://jqueryui.com/tabs/ Do a litle reverse engeneer in the tpl files and you will find how i have done it 2 tips 1 tip jquery is in corehtmlhead add it to your template 2 tabc code is in profile_main.tpl If you have any questions tell me upload.zip
  5. Unfortunatly i think that it would be a litle dificult as you are sugestin 2 diferent addons from 2 diferent publisher to work together. I can install those addons on my test page and try if this can be done but i do not promise you anything Best regards
  6. Your welcome so it is still not working if i am not mistaken right ?
  7. Vangelis

    Skin help!

    First of all you registered at 01 Jul 2013 and you have two posts 1 asking for a video and a second this one complaining So please before posting for any help read 1. http://forum.phpvms.net/page/index.html/_/skinning-and-customization-guides/basics-of-skinning-r19 2. http://forum.phpvms.net/page/index.html/_/skinning-and-customization-guides/skin-elements-r20 3. http://forum.phpvms.net/page/index.html/_/skinning-and-customization-guides/editing-templates-r32 And if you have any questions on something that YOU made and is not working feel free to ask . Best regards
  8. Hello You mean something like this ? New Bitmap Image.bmp
  9. Have you managed to conect it ?
  10. In cpanel https://www.netshop-isp.com.cy/v3/blog/2010/10/how-to-setup-cron-job-in-cpanel/ On curent cron jobs just click delete
  11. It should under cron jobs cron =auto
  12. Hello For the needs of my VA i created a Pilot badge with a modiefied version of signature function This is the code this is for users that do know a litle bit of php and because it is a litle complicated i will NOT provide any support on that the picture will be saved in the same folder as your signatures in the format id-PILOTID Below is a screenshot where i use it as a possible use for you and the code. The Name the rank and the date are coming dynamic from the database the picture above the name comes dynamic from the avatar that the user has selected if none is selected then the default will show the picture of the rank comes dynamic from the rank that you have as a pilot YOU MUST USE RELATIVE PATH in your admin section or else no pic will come on like with the signature you must have a template so that everything comes to place you have to put it in /lib/signatures/backround/ with the name id.png When you have done everything you need to call the function where ever you think for example whenever you send a pirep . Good luck modiefing it public function generateid($pilotid) { $pilot = PilotData::getPilotData($pilotid); $pilotcode = PilotData::getPilotCode($pilot->code, $pilot->pilotid); if(Config::Get('TRANSFER_HOURS_IN_RANKS') === true) { $totalhours = $pilot->totalhours + $pilot->transferhours; } else { $totalhours = $pilot->totalhours; } $mysqldate = date( 'Y-m-d ', $pilot->joindate ); # Configure what we want to show on each line $output = array(); $output[] = $pilot->firstname.' '.$pilot->lastname; $output[] = $pilotcode; $output[] = $pilot->rank; $output[] = $pilot->retired; $output[] = $mysqldate; if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . $pilot->totalpay; } # Load up our image # Get the background image the pilot selected if(empty($pilot->bgimage)) $bgimage = SITE_ROOT.'/lib/signatures/background/id.png'; else $bgimage = SITE_ROOT.'/lib/signatures/background/id.png'; if(!file_exists($bgimage)) { # Doesn't exist so use the default $bgimage = SITE_ROOT.'/lib/signatures/background/id.png'; if(!file_exists($bgimage)) { return false; } } $img = @imagecreatefrompng($bgimage); if(!$img) { $img = imagecreatetruecolor(300, 50); } $height = imagesy($img); $width = imagesx($img); $txtcolor = str_replace('#', '', Config::Get('SIGNATURE_TEXT_COLOR')); $color = sscanf($txtcolor, '%2x%2x%2x'); $textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]); $font = 3; // Set the font-size $xoffset = "150"; # How many pixels, from left, to start $yoffset = "200"; # How many pixels, from top, to start $font = Config::Get('SIGNATURE_FONT_PATH'); $font_size = Config::Get('SIGNATURE_FONT_SIZE'); if(function_exists('imageantialias')) { imageantialias($img, true); } /* Font stuff */ if(!function_exists('imagettftext')) { Config::Set('SIGNATURE_USE_CUSTOM_FONT', false); } # The line height of each item to fit nicely, dynamic if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $stepsize = imagefontheight($font); $fontwidth = imagefontwidth($font); } else { // get the font width and step size $bb = imagettfbbox ( $font_size, 0, $font, 'A'); $stepsize = $bb[3] - $bb[5] + Config::Get('SIGNATURE_FONT_PADDING'); $fontwidth = $bb[2] - $bb[0]; } $currline = $yoffset; $total = count($output); if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor); } else { // Use TTF $tmp = imagettftext($img, $font_size, 0, 30, 220, $textcolor, $font, $output[0]); $tmp = imagettftext($img, $font_size, 0, 265, 335, $textcolor, $font, $output[2]); $tmp = imagettftext($img, $font_size, 0, 215, 390, $textcolor, $font, $output[4]); if ($output[3]==1) { $tmp = imagettftext($img, $font_size, 0, 240, 230, $textcolor, $font, 'Pilot Retired'); $tmp = imagettftext($img, 40, 50, 130, 300, $textcolor, $font, 'INVALID ID'); } else { $tmp = imagettftext($img, $font_size, 0, 240, 230, $textcolor, $font,'Active Pilot'); } // Flag is placed at the end of of the first line, so have that bounding box there if($i==0) { $flag_bb = $tmp; } } $currline+=$stepsize; # Add the Avatar Picture, line it up with the first line, which is the # pilot code/name if(file_exists(SITE_ROOT.'/lib/avatars/'.$pilotcode.'.png')) { $avatarimg = imagecreatefrompng(SITE_ROOT.'/lib/avatars/'.$pilotcode.'.png'); if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $ret = imagecopy($img, $avatarimg, strlen($output[0])*$fontwidth, ($yoffset+($stepsize/2)-5.5), 0, 0, 50, 50); } else { # figure out where it would go $ret = imagecopy($img, $avatarimg, 70, 100, 0, 0, 50, 60); } } else $avatarimg = imagecreatefrompng(SITE_ROOT.'/lib/images/noavatar.png'); if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $ret = imagecopy($img, $avatarimg, strlen($output[0])*$fontwidth, ($yoffset+($stepsize/2)-5.5), 0, 0, 50, 50); } else { # figure out where it would go $ret = imagecopy($img, $avatarimg, 70, 100, 0, 0, 50, 50); } # Add the Rank image $ext = substr($pilot->rankimage, strlen($pilot->rankimage)-3, 3); # Get the rank image type, just jpg, gif or png if($ext == 'png') $rankimg = @imagecreatefrompng($pilot->rankimage); elseif($ext == 'gif') $rankimg = @imagecreatefromgif($pilot->rankimage); else $rankimg = @imagecreatefromjpg($pilot->rankimage); if(!$rankimg) { echo '';} else { $ret = imagecopy($img, $rankimg, 250, 260, 0, 0, 100, 60); // imagecopy($img, $rankimg, $width-$r_width-$xoffset, $yoffset, 0, 0, $r_width, $r_height); } if(Config::Get('SIGNATURE_SHOW_COPYRIGHT') == true) { # # DO NOT remove this, as per the phpVMS license $font = 1; $text = 'powered by phpvms, '. SITE_NAME.' '; imagestring($img, $font, $width-(strlen($text)*imagefontwidth($font)), $height-imagefontheight($font), $text, $textcolor); } imagepng($img, SITE_ROOT.SIGNATURE_PATH.'/id-'.$pilotcode.'.png', 1); imagedestroy($img); echo $pilot->retired; }
  13. I friendly observation just send him a pm rather than writing on paid services that you are going to do for free
  14. As it seems it should be ok Do you have any custom modules installed ? they might interfere aswell
  15. The central idea is that 1 site is the master for example VAcentral and the rest are the clients so you will achieve that all the pilots will be shown in the master. The second part is a litle tricky most probably you could just sync the master acars table to the rest of the clients. What are you trying to achieve ? so we can think something about it. a V.A Alicane ? and what Acars software do you use ?
  16. It is pretty easy just need to make an xml with the translations atm i am working on our va client so no time for it. If somebody else want to do it i can explain to him how to do it Happy flying
  17. If some airline use dispatchers you could also send them a movement - ldm - psm for each flight very nice what you have made
  18. 2day i have a shift at the airport that finishes at about 2100 utc after that i bilieve i will be avaiable so if you see me online you can call me
  19. I am free to help you via teamviewer if you want tell me what time you are able to have a look at it
  20. Yes he will loose the translation when he updates . But i was thinking of making the program to able to be translated but it need's a lot of work
  21. Yes it is correct with your example you start the flight with 10000lbs -2000 lbs that you landed with pirep will be filled with 8000lbs burned
  22. The problem with the landing rate yes is corected Apvacars is not transalteable at the moment i could do that for you but it will be replaced in a followed version And if i understood you want to send the log via e-mail ?
  23. Touch down rate has been fixed since 1.0.0.1 current version is 1.0.0.4. At the moment comment can be added only by modiefiing the pirep in phpvms
  24. What do you mean with corrigita ? and also i could't understand your second question
×
×
  • Create New...