Jump to content

ahughes3

Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by ahughes3

  1. David, I copied the files from your github and saved them in phpvms but now I have broken things. I suspect I did not copy things across properly. Is there a way I can download the amended files as a zip or something so I don't stuff up the copy and paste. Thanks
  2. How do i change my reason for joining :(

  3. Thanks for the reply Tom, I just want to see if I understand you straight. Firstly, I haven't edited the schedules module or any of the other files you mention. Secondly, if the frontpage_main.php controls the "content" portion then that is not the bit I want to change (ignoring my double slider issue). What I want to have is a homepage which will display the rotating slider at the top and then in the content portion I will have live flight boards etc. Then when someone logs into the pilot centre, I want there to be a different page which has the pilot content stuff from phpvms, but at the top, I don't want the slider. Instead I would like to have just a title bar for all other content pages. Does that make sense? I have added the link to the template I am using below. If you look at the homepage and then the services page you will see what I mean. http://graygrids.com/demos/themes/margo/index.html http://graygrids.com/demos/themes/margo/services.html So, in summary, the phpvms content in the middle of the page I am cool with. It's the header section with the slider I want to change on all other pages. Would you above suggestion still work do you think? As for images on the page, I just looked at the source and yep I definitely see them there. Cheers
  4. Ok so my next challenge in skinning! I have got a custom skin which has a rotating image slider at the top, which looks lovely. On pretty much most pages everything seems ok, the rotating image slider is at the top and the page content is where it should be. However, if I do a search on the schedules and press the button for results, when the page loads I can see another mini version of my rotating image slider above my search results. So I end up with the normal page image slider, then a small one which looks like it has been nested into the main page body content. My questions is two-fold; Can I create a different page to load so that my rotating slide only appears when someone is on the homepage of the site and inside the site, i.e. pilot centre, there is a different page without the slider? Does anyone know, or can they guess what might be going on with my search results page i.e. why it is incorporating another copy of the image slider in its content? Happy to give someone access if they want to look at the pilot center to see what I mean. Thanks
  5. All sorted! The problem was to do with jquery. If you have your own reference to jquery it causes a conflict with the jquery supplied in phpvms. I simply edited mine out and it now works perfectly. Thanks to AirbusAi342 for his comment in the below article and thanks to Vangelis and t_bergman for their help. http://forum.phpvms.net/topic/22157-no-route-passed/page__hl__passed
  6. The following code is from the Schedules.php that I think relates to the adding of a bid. /** * Schedules::addbid() * * @return */ public function addbid() { if (!Auth::LoggedIn()) return; $routeid = $this->get->id; if ($routeid == '') { echo 'No route passed'; return; } // See if this is a valid route $route = SchedulesData::findSchedules(array('s.id' => $routeid)); if (!is_array($route) && !isset($route[0])) { echo 'Invalid Route'; return; } The bit that says "no route passed", looks like it shows this when the script can't find an ID in the database. So if it works in crystal but not in my custom skin it makes me think a couple of things: Can phpvms not retrieve the info from the database because some code is missing on my skin page? (looking at both the crystal layout page and mine but I can't see anything obvious) Is there a problem in the route info in the database? (don't think its this else the crystal skin would have the same problem) Completely baffled, but then that's not saying much
  7. UPDATE: So, I have a partial fix thanks to this doc on the forum: http://forum.phpvms.net/topic/20629-most-common-fixes-phpvms-installation/ This works perfectly with the crystal layout now with no errors. On my custom skin though, now, for some reason it still returns a "no bid passed" message. I am sure this means it can't find the route ID, or thinks it is blank or something. I have no idea what to do about it though as I don't even know where to begin looking. I'll take a quick peek at the crystal version of the page and see if that helps. Any suggestions very much welcome
  8. Ok so I went to the file you mentioned and on the line 785 there was no reference to "static" however, the code was part of a "public static function" so I removed the static from there and re-uploaded. This is the output when I try to add a bid using the crystal skin. The bid gets added even though I get the error below (on my screen, the schedules error sits next to the departure line and the schedulesdata error sits next to the arrival line). If I use my custom skin I just get a message saying "no route was passed". If I look at the SchedulesData file, I can see that there is a section of code which checks for the route ID and I think, if it is blank, it returns the message "no route was passed". Don't hold me to that though as I'm not clued up on this coding stuff, just trying to apply logic. In the reference to the Schedules.php file, I have also checked this and there is nothing anywhere around it at all that says "static", even the function call just says "public function". As this is happening on the crystal layout too, it makes me think it is not a skinning issue and something more fundamental to phpvms files themselves or the connection to the database? Thanks in advance for your help on this. VIR1080 (EGKK - EGCC) Departure: Arrival: Equipment:A340-600 (G-VFOX)Distance:153.153nm Days Flown: M T W Th F S View Details Pilot Brief Strict Standards: Non-static method SchedulesData::addBid() should not be called statically, assuming $this from incompatible context in /home5/spiritc1/public_html/virginatlanticvirtualco/core/modules/Schedules/Schedules.php on line 167 Strict Standards: Non-static method SchedulesData::setBidOnSchedule() should not be called statically, assuming $this from incompatible context in /home5/spiritc1/public_html/virginatlanticvirtualco/core/common/SchedulesData.class.php on line 785 Bid added
  9. Ok making good progress with the skinning. I now have a site which resembles my template and it's loading the page content from PHPVMS and my site nav looks good. However, (there's always a however!) I have just tried to book a flight and add the bid and it says; "bid not passed" So I switch back to crystal layout and I get this message; Strict Standards: Non-static method SchedulesData::setBidOnSchedule() should not be called statically in /home5/spiritc1/public_html/virginatlanticvirtualco/core/common/SchedulesData.class.php on line 785 Bid added does this mean my doctype is wrong or something or is it something else? The pilot center page loads perfectly as does the rest of the static page content. Thanks
  10. I really want to set up bootstrap for my skin so that it's responsive. I can see how to get the css working but for some reason, the javascript doesn't load. Is the file path format different?
  11. Ok so I just copied over all the header code from the Crystal layout and altered the filepaths and it now shows my CSS. Anyone know how to set the filepaths for js? I have tried just copying the <?php echo SITE_URL?>/lib/skins/exmachina/css/style-desktop.css" and then editing the filepath but it doesn't seem to work. All the font css disappears.
  12. Ah ok, so the tutorial in skinning needs updating to reflect the differences. So I will continue with things as php files and see how I get on. Thanks for the advice.
  13. Hi all, I am just starting out in skinning. I downloaded a template and followed the tutorial but when I go to preview it I get this message: Notice: The template file "/home5/spiritc1/public_html/virginatlanticvirtualco//lib/skins/exmachina/header.php" doesn't exist in /home5/spiritc1/public_html/virginatlanticvirtualco/core/classes/TemplateSet.class.php on line 231 and another one at the bottom of the page talking about the footer. I have tried various filepaths to see if I'm doing something wrong but nothing changes, no matter what I do. I did notice that the crystal file is called layout.php and so I tried renaming the file to that and the error disappeared but there is no styling happening, just text. I have tried this with two different templates and both times the same. Can anyone help shed any light as I've run out of ideas? The link to the site is www.virginatlanticvirtual.co.uk Thanks Andy - VIR001 CEO Virgin Atlantic Virtual - VIR www.virginatlanticvirtual.co.uk
  14. Ok so I can't work out how to send the file through the message system and it won't let me upload it to here. I've tried it as an SQL and a .rar. Any suggestions?
  15. The version I downloaded was "phpvms_master.zip" from github as mentioned I think by "Servetas" in another post. My PHP version is 5.4 and I will take a backup of the database and post it to you in a message. I have now had to set up on FS Airlines for the time being (like going back in time!)
  16. The sql that you get inside the folder is an incorrect version. It's the one I used when I installed the system first of all and I ended up with incorrect fields on a couple of tables.
  17. Nope its all pilots. It's gotta be either the module trying to write to the database but because of a mismatch between the tables and module it can't (however, I don't know how to work that out). Or, it could just be that the module is wrong but I downloaded and reinstalled it twice and it's the only one I saw on the website. The is the only thing now stopping me from using the system.
  18. Still no further forward with this. After hours of adding modules, routes, aircraft and tweaking the design I am at the point where I feel I may have to reinstall the whole phpvms and tackle the pireps thing first. Now if only someone, anyone could point me in the direction of a packaged phpvms that works, that would be great.
  19. Can anyone tell me where I can get the latest copy (error free) of the sql in order to update my database. I'm not sure but I think i've used an old or bugged one and it's causing me all sorts of probs. Thanks
  20. Just checked this again with a new install of the module. If I try to submit a pirep through kACARS it won't let me, says schedule does not exist. If I then try to complete one manually I fill in all the relevant fields and try to submit but it says "please fill out all the required fields" yet all the fields are completed. Don't know what to check to see why the problem is happening. I feel like I'm walking from one problem to the next with trying to use phpvms.
  21. I have already tried to run that exact code using "short-exec-php" plugin within wordpress. The problem is that I don't think it allows remote connection as nothing is display and the page just gets broken. I don't see how inserting the code into an iframe will change anything. It's wordpress that doesn't run the php. In an iframe, would the same not happen i.e. it breaks the page and code doesn't run. Maybe i'll try it just to see.
  22. Yes, I had a quick look at the kACARS php script to see if I could spot anything that looked like a database field or something that might be wrong but I can't see anything that even ties into the database so I assume everything is entered in their through the phpvms scripts. Still can't send a pirep automatically or manually. I also deleted and reinstalled the module today, haven't had chance to check it but I will see if it makes any difference and report back.
  23. What about if I wanted a live and recent flight board doing for my external site? I am having major trouble trying to find a way to do it. If you could do that, I would happily buy it and the live boards
  24. I have tried half a dozen php script plugins and they either don't work or they don't allow non local php execution meaning they are useless to me. I was hoping there would be a way to incorporate some of the data into I-Frames or something, maybe even just a direct database call. Unfortunately I just ain't clever enough to do it myself. I'm really disappointed with this. It's the one thing that would finish our website off, having the flight boards on the homepage I will be adding them to the phpvms site we have anyway but it's just not the same. If anyone does dream up a way to do this then I would be mucho grateful.
×
×
  • Create New...