-
Posts
292 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by in2tech
-
web541, Thank You very, very much! I appreciate it! It works now!
-
I want to use this code, but show the silhouette no avatar image that I have instead of just the words No Avatar: <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'No avatar'; } else { echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" width="300px" height="195px" alt="No Avatar" /> '; } ?> Thanks for your help!
-
There is an error in the TPL version and the vStaffListAdmin.php file in the /admin/modules/vStaffListAdmin/. This is what is in it: echo '<li><a href="'.SITE_URL.'/admin/index.tpl/vStaffListAdmin/">vStaffList Admin</a></li>'; around line 34 it should be: echo '<li><a href="'.SITE_URL.'/admin/index.php/vStaffListAdmin/">vStaffList Admin</a></li>'; change the tpl to php to get it to work in the admin panel!
-
How do I show the retired or inactive pilots?
-
http://screencast.com/t/Mb7TlCVlddG Alright it works on some of the items and some are still on the bottom, like view schedules, and it broke a lot of my links in the sidebar. But hey thanks to you I am closer. Can I send you a pm or not? My links are back for some reason: http://screencast.com/t/Xno4kTgx Now do I add my template sidebar to the core_navigation I copied one item over and it works kind of: http://screencast.com/t/1CREsGFrj9 The add and edit airline works on my new sidebar, but I can't figure out how to get ride of the original sidebar and replace it with the new sidebar from my template only. And the dashboard is the main default info right? dashboard Thank you so much for your help Web541!
-
I am confused. Put what in the <div class="span9"> section? And add this code to the bottom of the header_tpl file? <div id="mainContent"> <div id="results"></div> <div id="bodytext"> Here we go again I will figure this out, I will. Man am I confused
-
I am working on skinning the admin template. How do you get the Content to show? No matter what I do, even taking the above codes out, the content is at the bottom of the screen. Is there something similar to the page content when placing content in the admin area, or is it in a different file than the header_tpl? The info works it's just on the bottom of the screen, instead of right of the sidebar? This reminds me of first trying to make a skin and how much trouble I had learning. Here we go again. If I don't give up. I am not even sure if I am doing this correctly. But I am trying. http://screencast.com/t/JqAcrwIwTyu And here is the top of the page: http://screencast.com/t/Rc43B39RFELB And what I am trying to replace the original sidebar with: http://screencast.com/t/TT6zUiScpm Thanks
-
Worked perfect for me using the default schedule_results.tpl file that comes with phpVMS. Make sure it is the default schedule template you are using and not another one. Also, make sure it is the actual code and not the headings your are commenting out. Use <!-- at the beginning and --> at the end to comment the line out! Mine is on line 102 roughly! It should not be near line 25 as far as I can see, if you are using the original template file that comes with phpVMS Should work fine. Add a copy of the default schedule_results.tpl into your skin folder so you are not messing with the original template file! Look for this area. See that I have it commented out? /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?> <?php echo '('.$route->depicao.' - '.$route->arricao.')'?> </a> <br /> <!--<strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br />--> <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?> <br /> <strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br /> <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?> <?php # Note: this will only show if the above code to # skip the schedule is commented out if($route->bidid != 0) { echo 'This route has been bid on'; } ?> </td>
-
If you are using the default schedule_results.tpl file than just comment out the line on row 102 roughly. <strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br /> That should work!
-
I figured it out, thanks!
-
It looks fine on my main server but when I upload to a sub folder or another server the alignment is all to the left of the page. Like this: http://screencast.com/t/KJP2grtBU My code is pointing to <link rel="stylesheet" href="<?php echo SITE_URL?>/lib/skins/ , my skins folder etc... Work fine on the root folder that I have been working on it, aligns on the entire page like it is suppose too. Any ideas?
-
Where do I add the code to call it to be able to refresh the flight board? And also how can I add the different airline code images to work depending on what schedule they are flying for different airlines? Basically get this code to work where you have this: Your code: <td><img src="<?php echo fileurl('/lib/images/rov1.gif') ;?>"></td> And I want this: <td><img src="/lib/skins/uae/img/<%=flight.flightcode%>.png" alt="alt" /></td> So the images will change depending on the airline/schedule code. It's work on my acars live flight map! It's also not working with SmartCARS. Is there anyway I can send you my acars map file as it works just the way I want it too, just want it without the map? Thanks, Thanks Parko,
-
In the local.config.php file in the Core folder, change this info for the acars data to go away sooner: # ACARS options # Minutes, flights to show on the ACARS # Default is 720 minutes (12 hours) Config::Set('ACARS_LIVE_TIME', 720); Config::Set('ACARS_DEBUG', false); Change it to 5 or 15 minutes, or whatever you like! As you can see the default is set to 12 hours or 720 minutes!
-
I am trying to make a flight board from my customized acars map to put on my front page. I just want to remove the map and retain the rest of the info, but I can not get it to work. Which code of the map do I remove to keep the info still working without the map on the basically default acars_map.tpl code? I want it to still refresh automatically and have the pilot link working. basically all the text info right below the map is what I want, and to continue to work. Version 1 http://screencast.com/t/qamVgAG5L But I can't get the time/distance to work, the pilot link, the auto refresh, and my progress bar that all works on the Acars map, but when I try and copy it over and just remove the map, I fail! Thanks
-
how do i change Icons on recent flights front page
in2tech replied to ercio's topic in Support Forum
How do I use this code in the default acarsmap.tpl or php and pilot list code? I am replacing my static code that just shows a single image. I want to be able to change the image depending on the airline they choose during registration, or I assign them too. This is the code I am using for the static image: <td><img src="<?php echo SITE_URL?>/lib/images/tail1.png" alt="Logo"></td> and I need to use this somehow, so it will change depending on the pilots airline, for instance AAL or DAL, and the image will reflect the airline of choice. echo '<td><img src="'.fileurl('/lib/images/'.$pirep->code.'.png').'" alt="'.$airline->name.'" /></td>'; Thanks! -
If your using the simple crystal skin, you can add a page in the admin area, enter your text, and choose enable and public on the bottom of the page you add. Go to: News & Content>Pages>Add Page Using the crystal skin once you add the page and enable it and make it public you should see it in the main menu! Enter the title of the page and select the options at the bottom. You can also manually add to the menu in the code. Which is what you do usually when learning to make a skin, have your own page modules. Like a custom Staff page module. http://screencast.com/t/uyYf9BOlvhSD That's one way!
-
Appears to be working perfect. So as I add schedules I change the number (make it higher as they increase a lot) and it gives me exactly what I wanted. Hopefully I can apply this to other percentages I am try to do. I have say 750 schedules I can change the number to 1,000 2,000 or whatever depending on the percentage I want. Or when I add 64,237 at some point change the number to say 100,000 or whatever percentage I want. Thanks so much, SimPilot & Kishshey I appreciate both of your help. I have other formulas coming, all based on the 100% scale So I can do the same for pilot count, after they go over 100 pilots on the va? And others. More for the cool factor than anything else <?php echo (StatsData::PilotCount() /500) * 100); ?> Number pilots percentage! 350/500=percentage of 100% Would the above work if I had 350 pilots based on a 100% progress bar? And change the number 500 to whatever I need? Yes, this works too after adding a ( bracket I missed in the code, right before StatsData. The one in BOLD below: <?php echo ((StatsData::PilotCount() /500) * 100); ?> And now I think I can get most of my progress bars working the way I want. Will report back if I get stuck again! Like I said it more of a cool factor than anything!
-
That gives me an error NaN%. Something is wrong. But thanks for trying to help me work this out. Of course I don't actually have 1,000 schedules yet either. This works with 100 schedules only:<?php echo StatsData::TotalSchedules(); ?> , so you should be close. Which is what I have been using from the beginning. So if I only have 5 schedules, I have 5% of 100 which is what I want but for higher numbers as my schedule count grows.
-
I see what you are saying but I am using it as a percentage. For instance now say 100 schedules was my limit. If I have 50 schedules, I have 50% to my goal say. I know it's weird but this is the way I am using the percentage for schedules at this time. So if my goal was 1,000 schedules than 250 would give me 25% on my progress bar. Just wondering if I can do this? Surely there is a way to do this? Maybe goal is the wrong word. And I do have progress bar options like the one you described too. Like percentage to next rank, etc.... I'd still like to know if it is possible to do with a 100% progress bar, but with numbers that are over 100?
-
Alright I have multiple progress bars showing pilot and airline data. They all are based on 100%. What I need to know is how do I change the data to get the data to stay within the 100% range. For instance pilot flying online is not a problem because the chances of 100 pilots flying at one time is near impossible ( I wish). But adding schedules becomes a problem once they go over 100, they peg or actually go passed the 100%. Here is the code I am using on the schedules: <?php echo StatsData::TotalSchedules(); ?> If I had 1,000 or 100,000 schedules what type of math do I need to stay within the 100% progress bar? I hope I explained this well enough? Thanks for your help!
-
In the local.config.php # After how long to mark a pilot inactive, in days Config::Set('PILOT_AUTO_RETIRE', true); Config::Set('PILOT_INACTIVE_TIME', 90); You set the amount of time for pilots to become inactive in the local.config.php file, found in the core folder. You can also retire them or delete them in the Pilot & Groups>View All Pilots>Edit Pilot area in the Admin area. Not sure about the amount of schedules for the csv import. http://screencast.com/t/lknUtacV0 http://screencast.com/t/uOqT5JXF Hope some of this helps!
-
Here it is if you need it from the default profile_main.tpl file in phpVMS <li><a href="<?php echo actionurl('/acars/fsacarsconfig');?>">Download FSACARS Config</a></li> or if you just need this: <?php echo actionurl('/acars/fsacarsconfig');?> Although most people use SmartCARS, and others, I use it sometimes for testing when I am working on making skins/templates for va's!
-
Routes not passing anymore, think it's jquery conflict
in2tech replied to ahughes3's topic in Support Forum
Thank You ZumeWeb. Fixed the No Routes Problem for me! I appreciate it very much! -
These slots have long been taken, but I am available for other work if you need html5 template conversion for your phpVMS airline. You can PM me here if you need work done! I am currently working with a client on his airline. If you need to see my work PM me, and I will give you the links!
-
Thanks SimPilot, I had it in the top area of the config file and when I moved it down it worked. Go figure! I would also like to thank you for all your hard work on phpVMS, vaCentral, your modules, etc...