Jump to content

An Old Idea Being Rehashed


TAV1702

Recommended Posts

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? :D

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. B)

  • Like 2
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Moderators

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 :)

Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

Guest lorathon

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;

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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. ;)

Link to comment
Share on other sites

  • 5 months later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 months later...

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 ;)

Link to comment
Share on other sites

  • 11 months later...
  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...