Jump to content

stuartpb

Members
  • Posts

    326
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by stuartpb

  1. Thanks Jeff. I'm going to have another go at it later.
  2. I've been scratching my head on this one too I have tried and failed a few times on it. Would be very cool if the code could be shared.
  3. I'm up for a beta test of the system, it sounds very promising
  4. TCX0001, or Waleed, or whoever? You have shown your commitment to the VA's that you are running in the other post, by deleting the website that you created for it. Pilots who are looking to join VA's are looking for ones which are established, and are not going to simply shut the doors because the owner created the site on a whim. Why not try taking the advice already given, and actually participate as a member in another VA. Prove yourself there, go for positions of responsibility and learn what it takes to run a VA. By creating multiple, poorly planned and executed VA websites, you are only going to put off the pilots that you are so desperate to attract.
  5. Yeah, I've been working on my version of the addon all day today, to add some more functionality to the airport info pages. If I get time tomorrow, I'll release an updated version of the addon, to include: METARS Airport Chart links Departure Flights Arrival Flights NOTAMS Schedule count on airport table If you want to see it in action, it's all live on my site: http://execair.org/index.php/airports
  6. Thank god for that!! I am still trying to figure out how the map works as it was on my site, but not on others
  7. Can you check the AirportData.class.php file, and post up the contents here?
  8. Cool addition Mark! You could even go one step further and add the latest METARs code from the schedules_briefing.tpl and add that. The potential for a really informative addon is there.
  9. I still can't suss out how it works in mine the way I listed, so I will amend the file to include Mark's JS. I'm going with Mark's as there is no need to call the google maps js again from the page. It's already been called so it's redundant to call it again. I'll amend the attribution too, to reflect this.
  10. Now this has definitely been a team effort! This is what makes phpVMS great
  11. I've got headache now
  12. Ahh Thanks Dimitris, I just realised why due to your post. I have minimised all my Javascript into one single file, so I don't need to call the script from the page. It's already called in the layout.tpl file. I wouldn't have thought about that unless you posted. EDIT: You don't need to call the google maps script from the page it's already called from the layout or header file as default. i can't figure out how I could get it working without having to to use the initialise function? I can't see any obvious differences from James'es to mine in the coding but mine works?
  13. Could it be that the outer div container for the map needs to have the class defined in order for the js to output? <div class="mapcenter" align="center" > <div id="acarsmap" style="width:672px;height:450px;></div> </div I'll try removing the class tag from my page and see it it breaks the map, brb. EDIT: Nope that isn't it. I'm trying to figure out what the problem is, bear with me please.
  14. Anyone get the map displaying yet? It's working on my end, but it would be cool to know if I've corrected the errors properly. I don't have much faith in my coding skills (or lack of) as it is
  15. No worries mate. I've amended the attached addon file with the corrections mentioned. The map should work now. FFS: I've just spotted another error. I stripped out the styling from my working copy, but forgot that the map div needs to have width and height attributes set for the map to display properly. Another change: in the airport_info.tpl page again, find: <div id="acarsmap"></div> And set the width and height attributes like so: <div id="acarsmap" style="width:672px;height:450px;></div> You can change the values to whatever suits your layout best. Amended the attached file again
  16. No worries Mark Try replacing the following in the airport_info.tpl file: <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, center: new google.maps.LatLng("<?php echo $name->lat; ?>", "<?php echo $name->lng; ?>"), mapTypeId: google.maps.MapTypeId.HYBRID }; </script> with: <?php ?> var acars_map_defaults = { zoom: 14, center: new google.maps.LatLng("<?php echo $name->lat; ?>", "<?php echo $name->lng; ?>"), mapTypeId: google.maps.MapTypeId.HYBRID }; </script> If that works, I'll amend the file in the attachment. I think it's because I removed the zoom level in the attached file accidentally. I meant to delete the autozoom part. EDIT: I've just found another mistake I made, sorry about this. In the airport_info.tpl file, there are two script tags here: <script type="text/javascript"> <script type="text/javascript"> <?php ?> var acars_map_defaults = { zoom: 14, center: new google.maps.LatLng("<?php echo $name->lat; ?>", "<?php echo $name->lng; ?>"), mapTypeId: google.maps.MapTypeId.HYBRID }; </script> Remove the top <script type="text/javascript"> from the code. I was cut and pasting the code from my working site, to a new file, and made a few errors in doing so. let me know if the above changes work, and I'll amend the attached file.
  17. After receiving several requests by PM, I am releasing the addon I use to show the airports in the phpVMS database, with a separate page for each airport with various bits of data. First though I would like to attribute the work which I did not complete and is part of this addon. The Airport Table Page - This was originally created by Adamm, and I just removed some of the columns and added the link to the seperate webpage for the detailed airport info. The Last Arrival and Last Departure Fields - I asked for help on this forum, and Jeff (Lorathon) gave me the code to enable this feature. The Flight Counts - Simpilot posted some code to show the flight count. I expanded on this to show the arrival and departure flight counts. The Google Map - I reused and slightly modified (stripped out the ACARS functionality) the acars map from the default acarsmap.tpl here. The js for the map display - Problem resolved my Mark1Million I take absolutely no credit for the above mentioned aspects of the addon, and I would like to thank those mentioned for helping me create the addon released here. If you are going to thank anyone for this addon, thank those guys. I just put stuff together and added some more stuff. If you use this addon, I have placed attribution in the HTML commenting, please do leave it there. If it doesn't work on your site, I'm sorry but I can only provide limited support, as I'm still a learner when it comes to php. Please don't PM me asking for support. You would be much better posting here and there is every chance that someone more knowledgeable may be able to help. The addon can be seen working here: http://execair.org/index.php/airports The attached file has the same functionality but requires CSS styling to be applied. There are many tutorials available online, which discuss CSS styling at length, here are a few: http://w3schools.com/Css/default.asp http://www.csstutorial.net/ http://www.echoecho.com/css.htm To install the addon, unzip the folder, then copy the contents of the core folder over to the core folder on your website. Then to access the addon, you need to create a link to the new page in your navigation: <a href="<?php echo url('/airports'); ?>">Text for link here</a> EDIT: Attached File Amended to correct all Map Errors mentioned below. RE-EDIT: The attachment has been amended again to correct the errors. It should work 100% now. airportinfo_v3.zip
  18. I have every right to be defensive of the website I create, and it's features. I've spent 6 weeks now working on the site, and adding bits here and there. I've even tried to share some of what I have done. I have no problem with that. Where I do take exception is when people pass off my own, or even others work as their own. Every module I have used that is not my own or I adapted for my site will be accredited to the creator, either in the HTML commenting, or through a webpage(hopefully both) I'm working on to highlight the contributions that helped shape my site. I believe this to be both fair and reasonable. Why is it off putting to expect people to share the same courtesy?
  19. Really? In case you forgot, it was you who started this post, having a semi veiled pop at me. I've already stated my case in the other thread, and feel no need whatsoever to go over old ground here.
  20. I've already stated my case in the other thread. If you feel that isn't enough then that's up to you.
  21. There is one thing promoting the sharing of ideas, and another the blatant ripping of others without attribution. Seems you cannot distinguish between the two. As for my choice of language, I felt it was highly appropriate seeing as you are indeed talking bollocks. Why mince words? EDIT: As for results in pursuing copyright infringers, on what are you basing your assumption that it never produces results? I would strongly pursue anyone who clearly has breached copyright, and I have had to on one occasion in my line of business. There are hoops to jump through, but it certainly is NOT impossible to bring successful action.
  22. Tom, at the end of the day, you are talking bollocks again. If someone is going to release work as their own creation, then they must ensure that the work is their own. This clearly wasn't the case, and that fact won't change, regardless of what your personal take is. It's attitudes like yours that do more damage to phpVMS than mine ever will. People are passing off others work as their own, how exactly does that benefit this website, it's members or phpVMS? If anything it would only serve to make people wary of sharing their ideas. Common sense, but it seems to have missed you!
  23. Tom you're talking bollocks, and I know you are referring to my post. My website, as any other, is afforded automatic copyright protection. This includes the layout, design and content. How do I know this? Because I've just taken an ICT & and the Law module as part of my BSc IT & Organisations course. I didn't have a problem with him copying my ideas, I found it pretty flattering to be honest. I did take exception to him passing the work and idea off as his own, which DOES constitute a breach of copyright. Check your facts before you go mouthing next time. I have enough evidence to prove what I have claimed.
  24. I don't!! The layout is exactly the same for the tables. Even the wording is the same. How can he claim to have written the module when he has clearly abused copyright in doing so. I will be taking this further, I have enough evidence for me to make these accusations, and it's all there for you to see. EDIT: To clarify, the airport table page was not my own work, and I simply removed some columns from it. I then added a new module and tpl file for the airport info page, and it's this that he has ripped off and claimed to be his own. There was no mention that he saw it on my site, and he tried to pass it off as his own creation. I wouldn't mind but he HAS ripped the html layout, and not even bothered trying to change it in any way.
  25. He has written his own php for the functionality (I think), but he has basically ripped the idea, and layout from my unreleased module. Check for yourself, they are exactly the same, but with different styling. There is enough in my mind to say that he has been copying HTML from my site. He's also mentioned adding all the functionality that is already included with my module. I'm going to examine my server logs more closely, and if I find he has been paying close attention to the airport pages, I will definitely be taking action. I don't mind sharing my ideas, but when someone else bundles them up as their own I am peeved!
×
×
  • Create New...