-
Posts
8151 -
Joined
-
Last visited
-
Days Won
39
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Nabeel
-
-
Read this:http://www.phpvms.net/docs/skinning#creating_skinsBasically you create your header and footer (I just design something and then copy from the top of the fil uptil everything that content should go into ad my header.tpl, the rest into footer.tpl), then your basic design should work. Remember to keep the elements listed in the doc in the appropriate places.The navigation is done automatically if you include the Template::Show('core_navigation.tpl'), but you can also do it manually. Check out the Cerulean Airlines site, http://www.ceruleanairlines.comI'll create a doc with all of the links to get to different pages.As for modifying templates, copy the one you want to modify from /core/templates into the folder of your skin (that way it won't get overriden in an update, and it stays with your skin).Hope that helps! Let me know if you need more clarification. Read through the docs as well, it'll help give a general overview.
-
Hey,I don't allow pilot deletes because they have alot of data - pireps, fields, etc which are all associated with them, and it could become a mess. But if people want to be able to do it, I'll implement it into a future update.For now, you can delete their entry manually in the pilots table. That delete should cascade down to all of their other entires.What I may do is have a setting there every x days, the system is cleaned up of rejected PIREPS and pilots.
-
Some good things to read which may answer your initial questions:The wiki: http://www.phpvms.net/docsInstallation/Upgrading: http://www.phpvms.net/docs/installationBasic phpVMS Setup: viewforum.php?f=20Skinning: http://www.phpvms.net/docs/skinning
-
If you want to change up how the front page looks, or add intro text, etc, it's easy to do.Goto core/templates, and there are three files beginning with frontpage_: frontpage_main.tpl frontpage_recentpilots.tpl frontpage_reports.tplYou can copy each one of these to your skin folder, and modify them as you'd like. frontpage_main.tpl:This file contains code which looks like this:
<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>
It's calling a function in the PIREPs module, to show the recent front page PIREPS, and to show 5 of them. This in turn calls the frontpage_reports templateThere is also:
News::ShowNewsFront(5);
Which in turn calls news_newsitem.tpl, which you can also modify. The 5 means it'll show the last 5 news items.
-
1
-
-
If you're using, or planning on using phpVMS, send me your airline logos, and a link to your site!I'm going to post them up on a logo board. As for the size, something decent, which I can size down if I need to. Email them to nabeel at phpvms dot netThanks!
-
Excellent! I'm glad you've picked this.The code is going to freeze, and as you can tell, the site is going through upgrades and putting everything place for the final version
Look through the docs, to get familiar. They're still being written and updated, but at least the basic information is there
-
Is up... with a lot more updates and improvements!Download it hereBuild 1.0.361
- Schedule importer (yay!)
- CSV Template included
- Notes and enabled option field added to schedules
- PIREPs check for route existence before submitting
- "Times flown" for schedules now updated on PIREP submit
- Update script test in this build
- Some file organization, admin panel skin moved
- Bug fixes Notes: ----- * Run the update script in install/update.php * IMPORTANT: core_javascript.tpl has been renamed to core_htmlhead.tpl Correct this in your skin if you're not using a default!
-
Excellent! Thanks.New build going up
-
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)
-
Oh ok I see you did a fresh install.When you go to a page, does it say anything, or is it just blank?I understand now with the linking, I'll add that in. But if I can find a service, I'll toss that in
-
You need to create it. I thought I added it into the build. Sorry!
-
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 ;
-
Ok, I emailed you, but here's these:
box removed, forgot that was there- add airlines -> options: no entries show up in the box
I'm replacing that with a tabled list instead- add schedules: lay-out is still not clear at my pc
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 bitadd flight schedules: distance calculator could be handy
woops left debug info therewhen trying to send a comment on a pirep I get this:
any times can be entered in any formatflight time:
what do you mean? did yo register/ enter your google API key in the settings?No extra flight information available?
put this in your local.config.phppages: it still doesn't work. The extension at core/pages is .htmConfig::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
will fix.Thanks!- e-mails are being send without a "name" -
Thanks for the list Anthony!I'm gonna go through these one by one
Appreciate it!
-
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;
-
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.
-
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.
-
Pilot Ranks
in FAQ
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.
-
1
-
-
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.
-
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.
-
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.
-
I found the problem, and it's fixed. It'll be in the next build, possibly tonight
-
Is there any error?I'm going to look at this.Should be another update in a few days!
-
Hey there,I would start at php.net, and also check out sitepoint.comIf you have any specific questions, check out the Support Forum. If you want VA help, check out avsim or simviation. Cheers!
Request for the signup form.
in Support Forum
Posted
Hey,You can create a profile field and make it private, then only it can be seen from the admin panel.