-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
You are missing the last } to complete the first if statement. } ?>
-
If you are creating a welcome page that does not have any dynamic information from phpvms your easiest solution would be to build a index.html page. Most servers will serve the index.html prior to the index.php so visitors to your url would see that first. If you are trying to use data from the vms system you will need to do it through a module, or an existing module. If it is the home page you can modify the Frontpage/index function to redirect to a new function within the module, say Frontpage/homepage. An example modification of your Frontpage.php file would be: public function index() { header('Location:'.SITE_URL.'/action.php/Frontpage/homepage'); } And then add something like this under it public function homepage() { //set your data for the template here $this->show('homepage.tpl'); } Then create a homepage.tpl file in your skin folder in which you put the complete html for the page you are building. The homepage.tpl file will be sent to the browser with none of the native phpVMS skin included.
-
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
You can extend the code however you would like to fit your VA. I do not believe I will extend it any futher myself, there are too many option requests, of which many conflict with other requests to bring this to a fruitful end for everyone's enjoyment. -
At this time my Tour Module will remain an exclusive to vACA.
-
If it showing up in the admin panel then it is not an issue with the path, it has to be something in the template then, which one are you working in? pilot_public_profile.tpl I imagine. make sure your image code looks something like this -> <img src="<?php echo $award->image; ?>" alt="<?php echo $award->descrip; ?>" /> You can also do a <?php print_r($allawards); ?> to make sure the [image] field is filled.
-
It looks like you still have the css links pointing to the test site from your main site <link href="http://www.flyirelandva.com/lib/skins/testsite/style.css" rel="stylesheet" type="text/css" /> <link href="http://www.flyirelandva.com/lib/skins/testsite/layout.css" rel="stylesheet" type="text/css" /> The other site <link href="style.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" /> Did you rename the folder or is it one more step down in the tree?
-
Can you see the image if you use its url directly in your browser? Can you see it in the admin panel?
-
Your best and easiest bet in my opinion is to add custom fields in your registration section. Goto admin -> Site & Settings -> Profile fields Add a profile field you would like - ie Vatsim, and it will be available in all pilot profiles and the registration form. There is no need to edit any core files with this method. You can go into individual pilot profiles and edit the field for those that were in the system prior to adding it.
-
In the award images field when you set the award up try using the absolute path to the image. Something like -> http://www.yoursite.com/yourimagefolder/yourawardimage.jpg Using relative links in the control panel will not always work in all parts of the system depending on how your file tree is structured.
-
Here is an example that may help you out: MyairportsData.class.php in root/core/common/ <?php class MyairportsData extends CodonData { function getmyairports() { $query = 'SELECT * FROM '.TABLE_PREFIX.'airports'; return DB::get_results($query); } } Myairports.php in root/core/modules/Myairports/ <?php class Myairports extends CodonModule { public function index() { $this->set('myairports', MyairportsData::getmyairports()); $this->show('myairports.tpl'); } } myairports.tpl in root/core/templates/ or your skin folder <?php foreach ($myairports as $myairport) { echo $myairport->icao.' - '.$myairport->name.' - '.$myairport->country.' - '.$myairport->lat.' - '.$myairport->lng.'<br />'; } ?> That should display all the airports in your database when you goto -> www.yoursite.com/index.php/Myairports
-
Name your image the same as your hub icao would be easiest. <img src="<?php echo SITE_URL; ?>/path to your images/<?php echo $pilot->hub; ?>.jpg" alt="hub" /> So if a pilot is a member of the KJFK hub it will display the image named KJFK.jpg
-
I think this one has gone down the slope far enough. Thread Locked. 2 VA threads in a week, must be a new record.
-
There is also a TS3 PHP framework under development here -> http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/Itemid,69/gid,105/ It looks promising, I have had some success integrating some of the functions into phpvms, still working on it though.
-
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
I have not put anything together, it is a bug that is created from FSPax not submitting a aircraft id number that corresponds with the id from the database. -
Clean Install "An Error was encountered" [SOLVED]
simpilot replied to Mysterious Pilot's topic in Support Forum
Sorry I said error. You must be running at least PHP 5.2 for phpVMS to function correctly. -
Clean Install "An Error was encountered" [SOLVED]
simpilot replied to Mysterious Pilot's topic in Support Forum
I just installed the latest beta here - beta test and can't reproduce the error. Do any other applications install cleanly and function? A forum or cms maybe? -
Clean Install "An Error was encountered" [SOLVED]
simpilot replied to Mysterious Pilot's topic in Support Forum
Will it allow you to login now? The error of "Could not find/open font in path" makes me think that the file got dropped or corrupted by the ftp client or it is a folder permission error. Is this the beta version or the last stable version you are trying to install? -
Clean Install "An Error was encountered" [SOLVED]
simpilot replied to Mysterious Pilot's topic in Support Forum
Can you post or PM a link to the site. -
Hmmm... From your about us page, "Values, Morals and Ethics", in saying that you might want to at least remove the name of the airline that you are copying and pasting from...... Nice use of my background image as well....
-
I wasn't thinking of that.... I had it in my head that he was trying to import directly into the db using phpmyadmin or something. It very well could be the geonames server if he is trying to import through the admin panel.