TAV1702 Posted January 21, 2011 Report Posted January 21, 2011 Hi guys. Maybe a year ago or so, a bunch of people requested something to spend pilot pay on and I saw it again today. Then the idea was being kicked around to come up with something. Suddenly, the author of the Pilot Shop came back and tossed out a quick release and then vanished. Too bad. I really think it would be great if we could get something similar to the pilot shop going as a module. Not only a pilot shop, but where pilots can buy shares of stock in the company as well as shares of stock in aircraft. The shares of stock could vary daily or what ever with many deciding factors such as active pilots to inactive ratio, pireps being filed etc etc. AS far as stock in aircraft goes, the pilot could draw dividends from their shares on that aircraft contingent on how much the aircraft is used. If it never gets used, stocks plummet and they loose money. And maybe a bank/vault to hold their earnings in and it could draw interest. No fees to deposit or with draw money. Something or anything at all for pilots and staff to use their hard earned pilot pay on would be great. Right now the only thing it is good for is Simpliots Exam Center and his RealSchedule Light. Both outstanding modules and craftmanship I might add. I am not sure where everyone else stands on this topic. I think that is one thing that would send phpVMS so far over the top, no other VA script could even come close to matching it's quality. Like any do right now right? To Nabeel and Simpilot and everyone elso who makes phpVMS what it is, I thank you very much. You guys are great! I only wish I had what it takes to help out. My skills suck at best. Have a great night. Ray P.S. I do belong to a VA that has most if not all of that coded up and it works great. I know if them old guys using 1995 technology can pull it off, surely we as a whole could do that here. I got faith. 2 Quote
Moderators mark1million Posted January 21, 2011 Moderators Report Posted January 21, 2011 Sounds like a good idea, maybe we can work with that has been pushed out and iron out the problems and get this working. If we try to contact the original developer first if nothing has been received then either recode the functions or start a fresh. It does seem a bit strange that we are offering a finance system with no way of pilots spending it. Quote
RogerB Posted January 21, 2011 Report Posted January 21, 2011 I like the idea, phpvms has some other problems that need working out, but since the other developer released and bailed I don't see any reason it can't be fixed, and made easier to understand. Quote
TAV1702 Posted January 21, 2011 Author Report Posted January 21, 2011 Hi guys I agree. If it was released and I believe it was under the GNU free software license, once the author does not respond in so long, the mod/script can be taken over as long as the original authors credits stay in tact. I believe he had a solid working platform, it just need tweaked and pushed over the top. Starting from scratch may be an idea too. My coding skills suck pretty bad so I am not a candidate at all for the hard core coding. That is why I got myself in to school so I could learn all this stuff. I am still way behind the times as far as the codeon module ( ? ) goes. I never used it before staring with phpVMS. Lets hope someone can do it or a bunch of us combined can. I think it would be great. Quote
Moderators mark1million Posted January 21, 2011 Moderators Report Posted January 21, 2011 Well i have just put this on my dev server and got it up and running, i can add shops and products, so now to address the problem when pilots actually but something that it does actually show up, i believe they were not being added to the database, some work but i believe the basics are in place for improvement and it can be fixed. I will keep tinkering If i get to a stage where its does actually work ill post the how to with the files Quote
Moderators mark1million Posted January 21, 2011 Moderators Report Posted January 21, 2011 OK folks, Here are the files updated and the sql file redone to make creating the tables easier, Please read the readme and have fun It seems to be OK on my test server and doing everything its supposed to like reducing the pilots money when they have bought things from the shop. Useful links for the shop, Pilot Shop:- siteurl/index.php/PilotShop View Purchases:- siteurl/index.php/PilotShop/pilotHomePage Any problems please let me know and I will try to help. See below Quote
Guest lorathon Posted January 21, 2011 Report Posted January 21, 2011 Mark, I have not tried this but wanted to give a piece of advice. If this module reduces the totalpay in the pilots table then it is flawed. The reason why is that if admin runs the "Reset Pilot Payments" script it will add all pay back into the pilot account. What I did for reducution in pilot pay was to create a second pay field for each pilot "payadjust" any and all adjustments to pilot pay go in this field. Then all references for pay are a combination of the two as such... $pilotpay = $pilot->totalpay + $pilot->payadjust; So to reduce pay the script would be to add a negative number into the payadjust field $adjustment = '-100.00'; $payadjust = $payadjust + $adjustment; Quote
Moderators mark1million Posted January 22, 2011 Moderators Report Posted January 22, 2011 Cheers Jeff, ill have a look at that later on. Quote
TAV1702 Posted January 23, 2011 Author Report Posted January 23, 2011 Yes I can verify that it will add it back. The same thing occured with Simpilot's Exam Center. I don't think it was a bug, the system was simply acting the way it was designed. As far as the pilot adjust pay, it does work great. I went round and round getting it to work with the help of Lorathon. I still to this day use it successfully. Thanks for picking this up and running with it. It was badly needed. Quote
TAV1702 Posted January 30, 2011 Author Report Posted January 30, 2011 I small issue. If you try to delete anything, the page looses it's css properties and it does not delete anything. I think this was an issue early on too? If it is on my end I will find it and post. If it is in the files, I can try to fix and donate. Ray Quote
TAV1702 Posted January 30, 2011 Author Report Posted January 30, 2011 I am not sure why this is happening with the delete problem. It is like it is loosing it's css. Not sure why it switches pages even. In my opinion, we need to make it so it stays on the same page when you delete something like Nabeel has phpVMS setup. So when you hit delete, it simply deletes the item or what ever. Quote
Moderators mark1million Posted January 30, 2011 Moderators Report Posted January 30, 2011 I have not had chance to actually add something and delete it or even look at the code for a while, will try to have a look tomorrow. Quote
TAV1702 Posted January 30, 2011 Author Report Posted January 30, 2011 The admin section for this looked bad. I have fixed it to match the rest of the admin side bar. Here it is in all it's glory. <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/images/shopadmin.png" />Shop Admin</a> <ul style="padding: 0; margin: 0;"> <li><a href="<?php echo SITE_URL?>/admin/index.php/ShopAdmin/shopsoverview">Overview</a></li> </ul> </li> Feel free to add this in on an updated file if you wish or save it for a bigger push of the updated module. I have also removed the extra links option from the shop admin overview and removed the tpl files for them 3 links since they are dead. This is done because credit is still given to the original mod author without breaking any license agreement. Saves disc space and cleans up the files nicer. Quote
Moderators mark1million Posted January 30, 2011 Moderators Report Posted January 30, 2011 Great stuff, Cheers Ray i will add that now. PilotShop.zip Quote
TAV1702 Posted January 30, 2011 Author Report Posted January 30, 2011 I've got a few more updates too on this one. First off, we all know of the old error when viewing the shop admin overview. Warning: Invalid argument supplied for foreach() in /home/atlasvi1/public_html/admin/templates/ShopAdmin/shops_overview.tpl on line 36 This only happens if you leave anything blank when creating your shop types and all. You must include an image and description or it errors out on the admin overview as well as the pilot shop home page where images of products purchased are supposed to appear. If you include all info when setting up shops and products, this error will not result. We need to code it so that if it is missing info, it will give the admin an error and tell him/her (politically correct) that they forgot required info. I have some updated files for you as well. I will zip them up and add them here after while. I also just noticed that if total pay is adjusted using the pay adjust mod, this script will not recognize those funds. If you try to purchase an item it will say you have insufficient funds to make the purchase. I am wondering if I can tweak it ti recognize total pay adjusted instead of total earned. Ray Quote
TAV1702 Posted January 31, 2011 Author Report Posted January 31, 2011 Hey Mark1million, I have updated several files and the read me file. I will zip it up when I am done working on this some more tonight. Once I do zip, I will give you a link to grab and look over the files and you can attach here if you wish. I have made several changes since yesterday when you re uploaded the file. Ray Quote
Fly Star Alliance Posted February 15, 2011 Report Posted February 15, 2011 You guys have done an excellent job already and I'll be happy to help as much as I can with the best of my ability. Yes, please, upgrade the changes you've made so we can take a look at it and test it.... Thanks Again !!! Quote
TAV1702 Posted February 17, 2011 Author Report Posted February 17, 2011 HI. Yeah I need to get my changes to him so he can update the file and download. I have been swamped with life in general lately like 3 kids and an old man going to college. lol It can get rough real quick. Not to mention I am running a very small scale brewery at the same time. Just moved up to 4 100 gallon fermenters and have got 2 of them in operation. Most of the changes I made were for the good of the package. Any personal choice changes I left out of the package. Why? Well because they fit my VA needs and not necessarily everyone elses. Let me see what I can do tonight and maybe I can get the files to mark1million for update. No promises but I will try. Quote
TAV1702 Posted July 20, 2011 Author Report Posted July 20, 2011 I have made some changes to this mod. If anyone is still interested, please let me know and I will re upload. Please keep in mind that this is NOT mine or mark1millions mod. The only support either one of us can give is what we know about the mod. We are NOT the original authors. **NOTES** I fixed the admin panel for this mod. It now shows up as it is supposed to in the addons tab in the sidebar in phpVMS admin panel. No longer are any core phpVMS template edits necessary. I believe I have fixed the errors that were being reported with this mod when no shops were created yet. I can only provide this as a as is basis. I will only work on it as my time allows. And there is now a decent install file for it too. No longer is any install info located on another site. Quote
TAV1702 Posted July 20, 2011 Author Report Posted July 20, 2011 I am still loosing the styling when trying to delete anything. I have looked and looked and can not figure out why. Maybe I am looking far to deep into it and the answer is all but an obvious, small issue. As for the other errors I initially had when the admin sidebar was jacked up, I no longer have. When there is no products or shops added, I no longer get a php error. Quote
TAV1702 Posted July 20, 2011 Author Report Posted July 20, 2011 I fixed the pilot pay problem with this mod and it is now compatible with the latest and greatest beta version of phpVMS. I am still looking for the styling issue. Quote
TAV1702 Posted December 2, 2011 Author Report Posted December 2, 2011 Here is the most updated version I have. There is still some problems in the admin panel. Hopefully I can fix them soon, but it does work much better than it did before. **PLEASE NOTE** This is not mine or Marks mod. I can not support it. All I know is what I have done to it. Please use at your own risk. And as usual, please do backup your files before installing. Oh and read the Read Me file Quote
mattia Posted December 5, 2011 Report Posted December 5, 2011 hi TAV1702 ! When I click on "Reset pilot pay" returns all the money the pilot Quote
TAV1702 Posted December 6, 2011 Author Report Posted December 6, 2011 I might have given you the wrong copy. I will have to look in to it. My apologies. Quote
mattia Posted December 12, 2011 Report Posted December 12, 2011 hi TAV1702 you are getting the copy right? Quote
Dominican Airways Posted December 10, 2012 Report Posted December 10, 2012 Great stuff, Cheers Ray i will add that now. PilotShop.zip Do you know why I can't add products or anything I keep getting # when I press on it via the Admin Center Quote
TAV1702 Posted December 24, 2012 Author Report Posted December 24, 2012 Wow! Talk about an old post lol I forgot about this one. Actually, this was never my mod. My self and Mark worked on it briefly. I still have the files and might get them back out again, just kind of busy right now with just moving to a new house and Xmas and all. Bump the topic again after the first of the year and see what I am up to. That will give me time to locate the files and install them on a fresh phpVMS. Quote
josh90 Posted January 3, 2013 Report Posted January 3, 2013 Just been reading through this post, looks very interesting. Are there any plans to make any progress on this in the future? Many Thanks Josh Quote
TAV1702 Posted January 4, 2013 Author Report Posted January 4, 2013 Hi Josh. Yeah I am going to get it back out and try to fix a few of the minor issues it has. As I posted before, this is not my mod, I just worked on it along side Mark1million. As soon as I clear a couple days time off the schedule, I do plan on working on it again. Once I do though and post the file, it has to be as is and I can't support it. 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.