-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
Looks like you must only have one pirep that has any landingrate data but the function is working... You can now display the data returned by the LandingStatsData call using a foreach and some echos, maybe like -> <?php foreach($test as $row) { echo $row->landingrate; } ?> This is a very simple example but you can add any info that is coming back from the call into your data to display and format it however you would like. $row->"column you want to display" if you are using the module to display the data you need to change the lstats.tpl file to reflect this -> <center> <table> <tr> <td>Pilot ID</td> <td>Arrival Field</td> <td>Touchdown Rate</td> </tr> <?php foreach ($lstats as $row) { echo '<tr><td><b>'; echo PilotData::GetPilotCode($row->code, $row->pilotid); echo '</b></td>'; echo '<td><b>'; echo $row->arricao; echo '</b></td><td>'; echo '<b>'; echo $row->landingrate; echo ' ft/min'; echo '</b></td></tr>'; } ?> </table> </center>
-
The above is working for me, are you sure there is anything in the landingrate column in the table? on your test page try -> <?php $test = LandingStatsData::get_landingstats(10); print_r($test); ?> and post what is displayed.
-
Hey Guys, Nabeel has built this function into version 2. You really do not need the module anymore, it has simply become an excercise in pulling the data created by the system and then displaying it. The first thing is, check the db and see if there are any prieps with fsacars logs. If not, then there will be no data to populate the landingrate column. If there is log data, is there any data in the landingrate column? If so, try the following. If you do want to use the existing module to use the functions for displaying the data, everywhere you see "landing_stat" in any of the files including the data class and module php file will have to be changed to "landingrate" For example in the LandingStatsData.class.php file public static function get_landingstats($howmany) { $query = "SELECT * FROM phpvms_pireps WHERE landing_stat <'0' ORDER BY landing_stat DESC LIMIT $howmany;"; return DB::get_results($query); } would change to public static function get_landingstats($howmany) { $query = "SELECT * FROM phpvms_pireps WHERE landingrate <'0' ORDER BY landingrate DESC LIMIT $howmany;"; return DB::get_results($query); } And in the lstat.tpl file $row->landing_stat would change to $row->landingrate If i can get time today I will post the new files in a new thread.
-
Probably want to check this site out. coppa.org You do need to be careful what information you collect from members that are minors and how it is stored and used. Just food for thought.
-
I noticed the same thing on a fresh development install yesterday. Check your _settings table in your DB. In my install there was a row in the _settings table that was not created during the install. We had the same issue quite some time ago and if you insert the new row it works fine. Old topic search here in the settings table you want to insert a row using phpmyadmin or similar: INSERT INTO `phpvms_settings` (`id` ,`friendlyname` ,`name` , `value` ,`descrip` ,`core`) VALUES (NULL , 'Total VA Hours', 'TOTAL_HOURS', '0', 'Your VA''s Total Hours', '0'); Then use the reset hours in the admin panel, that is how I got it working. If you have the same issue it probably should be added as a bug, I though it might have just been my install.
-
I think this is the strangest thread I have read in a while....
-
It is currently in closed beta operating on a couple of va's. Still looking for someone with a lot of PIREPS to help test before a release. You can see the latest version here - TopPilot
-
Take this dispute elsewhere gentleman. Topic Locked.
-
I agree - Topic Locked.
-
Try changing the last few lines around your query to this-> $query = "INSERT INTO phpbb_users (username, username_clean, user_password, user_email, group_id, user_timezone, user_dst, user_rank, user_lang, user_colour, user_type, user_dateformat, user_style, user_regdate) VALUES ('$pilot_id', '$pilot_id_klein', '$passMD5', '$email', '2','0.0', '0', '2','en_us','0099FF','1','1', 'S F Y g:i:s A', '1', '$tm')"; DB::query($query); also - not sure if it makes a difference but for time I use -> $tm = NOW();
-
Maybe something like -> <?php If ($pilot->retired == 0) { echo '<img src="path to your image for active" />'; } else { echo '<img src="path to your image for retired" />'; } ?>
-
change the "5" to how ever many posts you would like to display <?php MainController::Run('News', 'ShowNewsFront', 5); ?> You can do the same thing with PopUpNews, change the "5" <?php PopUpNews::PopUpNewsList(5); ?>
-
yep - it gets overwritten in every update....
-
So.... You now have no errors? What was changed since the error of the missing header.tpl file?
-
@ Vansers - It once again looks like a mis-placement of files somewhere, you went through this before here - http://forum.phpvms.net/index.php?topic=1531.msg13266#msg13266 - and I showed you how files should be placed in the proper paths. Check the placement of your folder and that everything is in it. Also look to see if when you unzipped it you have not created a folder inside of a folder, it can not be, root/lib/skins/your new skin folder/your new skin folder it must be root/lib/skins/your new skin folder It would also be helpful when you find the solution to your problem that you post it in the thread in which you are posting the problem. It will help others in the future thay may be encountering the same issues.
-
Took me a while to find this one when I started too. It is named -> email_registrationaccepted.tpl but the secret is............. It is in the admin/templates folder.
-
That is an odd error as the foreach is actually back on line 20 in my version.... Have you modified the file at all, or maybe has it gotten corrupted? The other side is in using the latest version you do not really need this module anymore. The code was built into the system by Nabeel and it populates a new column in the table called landingstat.
-
I can still get that one in Mark. Should have somethng out this week, was hoping sooner but the back to back blizzards and no power here at the house for a few days kind of distracted me...
-
Is this an idea of what you are thinking of - This will welcome your newest pilot... <?php $newpilot = PilotData::getLatestPilots(1); ?> <marquee>Welcome Our Newest Pilot: <?php foreach ($newpilot as $pilot) { echo $pilot->firstname.' '.$pilot->lastname.' ('.PilotData::getPilotCode($pilot->code, $pilot->pilotid).')'; } ?> </marquee> It should be streamlined a bit but I just threw it together as an example. You could use a similar function to pull the newest news post title or the like as well.
-
Was without power here in Southern Delaware from 3am Saturday till late yesterday(Tuesday) and just got cable/internet back today. Now it is snowing again and we are under a blizzard warning. I moved to the coast 20 years ago to get away from this stuff!
-
You have a ton of html mixed in with php. You need to open and close php code sections and use html between them or use echo commands with your html enclosed within the statement. echo 'my html code'; What are you using for an editor as most decent IDE's should be showing most of these errors without having to search for them.
-
Uncomment the sections of code you want the browser to see and use.
-
PilotShop | Countdown to release |
simpilot replied to Kritikdevelopment's topic in Development Help
Its in the "releases" section http://forum.phpvms.net/index.php?topic=2112.0 -
You have some html errors as well, but I am not sure what menu or code you are using. IThe one thing that jumps out at me is the unordered list you start at line 5 "<ul>". It never gets closed. That may be part of the menu issue.
-
Check it again - when I change it as shown it clears the error in the page here on my development server.