Jump to content

Nabeel

Administrators
  • Posts

    8141
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Nabeel

  1. I'm finishing up the import, but I'm trying to decide on something;Can you guys make a plain page, with this:

    <?php $reader = simplexml_load_file('http://ws.geonames.org/search?style=short&maxRows=1&featureCode=AIRP&q=kjfk');print_r($reader); ?>

    Just paste in what it says, I'm just seeing if the extension is enabled on your servers (it's supposed to be by default)

  2. Another build tonight, download it from here * PIREP fields can have different types (text, textarea, dropdown) * Added separate schedule detail page * Replaced Google Charts with JS based charting * Moved pilot stats * Bunch of bug fixes (too many to remember...)Also, another query to run:

    	ALTER TABLE `phpvms_pirepfields` ADD `type` VARCHAR( 25 ) NOT NULL ,		ADD `options` TEXT NOT NULL ; 

  3. Ok, I emailed you, but here's these:

    - add airlines -> options: no entries show up in the box
    box removed, forgot that was there
    - add schedules: lay-out is still not clear at my pc
    I'm replacing that with a tabled list instead
    add flight schedules: distance calculator could be handy
    I cant get the site working. I'm gonna look for a service though, it needs to be a JSON service provider like the airports info. ill take a look in a bit
    when trying to send a comment on a pirep I get this:
    woops left debug info there
    flight time:
    any times can be entered in any format
    No extra flight information available?
    what do you mean? did yo register/ enter your google API key in the settings?
    pages: it still doesn't work. The extension at core/pages is .htm
    put this in your local.config.php
    Config::Set('PAGE_EXT', '.htm');

    Let me know if that does the trick.Also, look at install/templates/config.tplAnything under the SITE_URL, copy into your local.config.php

    - e-mails are being send without a "name"
    will fix.Thanks!
  4. This next build is up, with a ton of fixes and some new features:Download it from here

    • (Admin) Custom fields can now be added into PIREPS
    • (Admin) "View details" link on PIREP
    • Added flight queue/bid feature
    • PIREP report page reorganized, shows additional fields
    • Contact, Live Map removed for now (Will be re-added)

    IMPORTANT NOTESRun the following queries, change the phpvms_ if your prefix is different.These changes have been reflected in the changelog and the installer.

    CREATE TABLE `phpvms_pirepfields` (		`fieldid` INT NOT NULL AUTO_INCREMENT ,		`title` VARCHAR( 25 ) NOT NULL ,		`name` VARCHAR( 25 ) NOT NULL ,		PRIMARY KEY ( `fieldid` ),		UNIQUE KEY `name` (`name`)	) ENGINE = INNODB; 		CREATE TABLE `phpvms_pirepvalues` (		`id` INT NOT NULL AUTO_INCREMENT ,		`fieldid` INT NOT NULL ,		`pirepid` INT NOT NULL ,		`value` VARCHAR( 50 ) NOT NULL ,		PRIMARY KEY ( `id` ),		FOREIGN KEY (`fieldid`) REFERENCES phpvms_pirepfields(`fieldid`) ON DELETE CASCADE,		FOREIGN KEY (`pirepid`) REFERENCES phpvms_pireps(`pirepid`) ON DELETE CASCADE	) ENGINE=INNODB;	CREATE TABLE `phpvms_bids` (		`bidid` INT NOT NULL AUTO_INCREMENT ,		`pilotid` int(11) NOT NULL default '0',		`routeid` int(11) NOT NULL default '0',		PRIMARY KEY ( `id` ),		FOREIGN KEY (`pilotid`) REFERENCES phpvms_pilots(`pilotid`) ON DELETE CASCADE,		FOREIGN KEY (`routeid`) REFERENCES phpvms_schedules(`id`) ON DELETE CASCADE	) ENGINE = INNODB; 

  5. Can you look in your core/pages folder, are there pages there? And whats the extention, .htm or .html.The link formats have changed in this build. Tryyoursite.com/index.php/pilots.I have just commited a build now with those fixes.This one also includes the bidding/queue system.You can get it from this link: http://phpvms.devjavu.com/wiki/SourceCheckoutBookmark that page, it updates automatically every time I commit a build. I'm posting the build right now.

  6. You can't start threads, but you can reply. That way if anyone needs clarification, it can stay "on record".If you want to suggest any topics to be included, post them in the General Discussion area, and I will create a topic here.

  7. You can create ranks, and add images to represent these ranks.They can be added by logging into the Admin panel, then going to Settings -> Pilot RanksTo add the image, click "Edit" on a rank, and then enter the full url to the image (including the http://). It will then show on the pilot hub page, or anywhere the rank is shown.

    • Like 1
  8. You can add custom fields to pilot reports, to be filled out when someone files them.To add them, login to the admin panel, then goto Settings -> PIREP Fields. From here you can add fields to be filled out.You can also set the type. The default is 'text', and it will be a text field.'Textarea' will be a text field.The last option is "dropdown". To add values to the dropdown, enter them in order, seperated by commas, for instance:Field Name: Flown OnlineField Type: DropdownField Values: Yes, NoWill produce a dropdown box with a Yes and No option.

  9. The settings are stored in app.config.php and local.config.php.Settings are first loaded from app.config.php. And then in local.config.php. Any settings that are in local.config.php are used over the ones in app.config.php.Local.config.php isn't over-ridden in any updates, so your custom settings are saved for the future.More options are/will be added in future updates. Their default values are stored in app.config.php.The release notes will take note of these, so you can add them into your local.config.php, if you want to change them from the default.

  10. You may want to customize how some elements are showing on your site.Each part of the site is stored in a template, to separate the code from what someone sees, making it easy to change.These templates are located in core/templates. They're named close to what they do.Now you can modify these directly, but in a future update, they could be over-written. The best way is to do it, is to copy it to the folder of the skin that you are usingFor example, if you're using the crystal skin, copy the template you want to the /lib/skins/crystal folder.That way, you can customize the templates based on your skin, and they won't get modified in a future release or update. If a template is changed, then it'll be in the release notes.

  11. Took long enough for this next build, right? Well sorry about that guys! Had a little too much going on for the past few months.But here it is, RC1. Alot of changes. I recommend a clean install. Unfortunately, I won't be able to do FSACARS integration just yet - I don't have my FSX PC for a few weeks since I am moving.It can be downloaded from hereBuild 340 (RC-1 aka "Top of Decent")

    • Clean URLs implemented
    • Set Google Map type (See Notes)
    • Pilot ranks are updated on PIREP accept
    • Schedule distance properly saved/displayed
    • Schedule listing shows airport name with ICAO on default
    • Option to show Leg in schedule (See Notes)
    • "False alarm" errors in updates/changes fixes
    • Code field expanded
    • Airports/Pilots listed by hub
    • Added "Aircraft" field to schedule search options
    • Added "Distance" to schedule search
    • Added "Arrival Airport" to schedule search
    • Unnecessary AJAX removed from "File PIREP"
    • PIREP comments can be viewed by admin
    • Login error fixed
    • Pilot registration messes up ranks fixed
    • Flight hours not adding properly bug fixed

    Notes: (All these options go in local.config.php to change from default) ----- To stop the flight leg text from showing, add:

    Config::Set('SHOW_LEG_TEXT', false);

    To use a different map type (default is G_PHYSICAL_MAP). Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP

    Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');

    You can also change the line color on the map using: (default is red)

    Config::Set('MAP_LINE_COLOR', '#ff0000');	

  12. HeySorry for the late reply!I'm working on it.. albeit slowly.. I'm getting slammed at work.But I've somewhat revamped the schedules.There was a framework update, applied that, along with a ton of bug fixesAnd other specific bug fixes.Tonight I'm gonna try to get back to it, I cleared alot of my other stuff out of the way.Don't worry I haven't forgotten...

  13. Sorry for the late response.Where are these links?Look in your core/local.config.php, that is entered during the installer. You may have typed it wrong. If it's not there, let me know.Also, the /page, might be related to above. The $Config[sITE_URL] should point to your phpVMS install.Hope that helps!

  14. If you goto modules/Pilots/Pilots.php, the RecentFrontPage() function, just delete the echo "test" line.I had that there because it wasn't showing up on my test install. Good to see it works on yours icon_e_biggrin.gif I'll add another variable for the number padding. Right now it's set to three.

×
×
  • Create New...