Jump to content

TAV1702

Members
  • Posts

    1954
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by TAV1702

  1. Thats just it, they were not showing at all even with hours. I removed the pagination code and bingo. I had pilot roster. I dug until I was blue in the face today and finally gave up for a while.
  2. I have not used this template in quite some time. I use one of his newer ones now. If I can get it done tonight, I will do a clean install of phpVMS and install this template and give it a try for you.On your mobile device, what browser are you using?
  3. Hey all, The original template that Eddie put together for us all to enjoy had a code snippet to Coming events that pulled info from a blank events table and was eventually removed form this version of the template. I have posted a code snippet over at Simpilots Addons thread here on site on what code to use to make the Events Sidebar for frontpage_main.php work properly. I'll post here to. <!-- Begin Events --> <div class="art-block clearfix"> <div class="art-blockheader"> <h3 class="t">Upcoming Events</h3> </div> <div class="art-blockcontent"> <p> <?php // Events Module from simpilotgroup.com // Front page event list by Cory Wienckowski $events = EventsData::get_upcoming_events(); if(!$events) { echo "<p>There are no upcoming events.</p>"; } else { $count = 0; foreach($events as $event) { if($count == 10) { break; } if($event->active == '2') { continue; } echo "" . date("m/d/Y", strtotime($event->date)) . " &dash; "; //echo '<td>' '</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">' . $event->title. '</a></td></tr>'; $count++; } } ?> </p> </div> </div> <!-- End Events -->
  4. Anyone using the Events module and wants to have a events sidebar like used to be on the OcenBlue or OcenaBluev2 Here is the code that I had to use to fix it. The links were going back to a empty event table. Now with this code, it pulls the right info as it is supposed to. Not sure if it is right, please use at own risk. <?php // Events Module from simpilotgroup.com // Front page event list by Cory Wienckowski $events = EventsData::get_upcoming_events(); if(!$events) { echo "<p>There are no upcoming events.</p>"; } else { $count = 0; foreach($events as $event) { if($count == 10) { break; } if($event->active == '2') { continue; } echo "" . date("m/d/Y", strtotime($event->date)) . " &dash; "; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">' . $event->title. '</a></td></tr>'; $count++; } } ?>
  5. New development in my saga. When there is NO pilots assigned to a hub, I get the suggested message as coded, sorry but no pilot assigned to this hub or what ever it says. The second I assign a pilot to a hub, that message goes away, no pilots are shown and all it says is: Back **EDIT** On a side note, I commented this pagination code out and the pilot roster came to life. <script type="text/javascript"> $(document).ready(function() { $('#plist').dataTable( { "sPaginationType": "bootstrap" } ); } ); </script>
  6. Sorry guys I forgot I posted this. Yes it is a custom filed that you can create in the admin panel. What I mean by reverts back is, The drop down has 3 choices 1. Pilot 2. ATC 3. Both So If I register I choose ATC and fill out rest of registration and submit, bingo bango its done. I get a welcome email but I have to wait for admin. Ok on track so far. Now when an admin goes to that pilot in the admin panel and looks, it shows he or she always chooses the first option. I had 4 people test this for me 3 indifferent countries on different PC's obviously. And I explicitly made them understand to NOT choose the option number 1 Pilot. Also I chose it to NOT show the custom field in the profile and guess what shows up in their profile? Yep! A nice drop down box with 3 choices in it that means absolutely nothing. lol I think I will just do away with the drop down as the guy that owns the site decided to go another route with this. BUT curious why this is happening.
  7. Your menu on your site is working great in my IE 11. Your TWA banners (logos pictures) do not slide per say but they do change images on every page refresh. What exact issue are you facing as it works and looks good on my end minus the horribly bad stretched images. They need to be resized using a lossless method. Other then that, looks fine to me. http://prntscr.com/d2mb0w http://prntscr.com/d2mbmx And by the way, your slider does work good too. I just sat and watched it switch to a few different pictures. while I was putting those two links in this post.
  8. Yes that would be major work to do. If you can run an older version of php on your server you are on stay with it. If your php gets upgraded in the future, your site will out of business unless you can get someone to throw a hail mary and upgrade it for the new version of php or you. I say stay with what you have until your hand is forced.
  9. Well what it amounts to is it is a guy I knew who had a buddy and together they hosted sites. Fine with me. My buddy was ok with what I did. His partner was not. Fair do's. They are decent guys who went on the honor system in a world of today where honor is very rare anymore. For example: me and over riding their settings. lol I been with another guy now for 6 years or so and never had a day of downtime or anything. if I need a setting set, he does it for me. At absolutely no sot to me but 4 hours of maintenance on his website per month. But anyways ...... I might get bored one day and just start jamming the database full of airports. ;-)
  10. That's pretty sweet man. Nicely done.
  11. DOH! Yeah at least 1 hub is inactive. Nice catch. thanks for pointing that out. it is a new site and 2 hubs with 2 pilots. one at each hub. 1 has filed a pirep, the other has not. Since we now know that culprit, that leaves the other hub where I am active and have filed 2 flights. the following is what I see. http://prntscr.com/d2cmu5 And thanks for the reply and the module. I really appreciate it. Ray
  12. I got one more small issue as well. My pilot rosters wont show up. Not even the table. All that will show is the Pilot Roster header. All code is default. I have changed nothing. the code I am using I downloaded from Github account.
  13. I have a quick question. I'll set the scene, I fill in Hub ICAO, PID, Name and all the info required and I click submit. Nice! However I made a mistake with the image link. Ok so I go and click edit hub and now all fields are blank and I can not simply edit the image link I have to fill in all that info again. Is there a way we can pre populate those fields with already saved info so all we have to do is edit one filed or the other and not have to fill it all out again from scratch?
  14. No one? I do have a working version on the same exact server setup as my live site but it is a WAMP server. The script on my WAMP works a treat, however, on my live server, it fails miserably. Here is what I have. Maybe someone has better luck than I with it. **PLEASE NOTE** This code is to be used at your own risk. I do not know if it is secure or what. It did come right from phpBB community. I take no credit or ownership. The WAMP server it is working on is: Apache php 5.6.25 mysql 5.7.14 The server it is NOT working on is: apache php 5.5.36 mysql: Include this following code at the VERY TOp of every page in which you wish to call the latest posts. <?php define('IN_PHPBB', true); $phpbb_root_path = './community/'; // Path to phpbb folder $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); // Grab user preferences $user->setup(); ?> Use this where you wish the latest posts to show <?php /*** phpBB3 - Last Active Topics System ***/ //Show last x topics define('TOPICS_LIMIT',10); // Create arrays $topics = array(); // Get forums that current user has read rights to. $forums = array_unique(array_keys($auth->acl_getf('f_read', true))); // Get active topics. $sql="SELECT * FROM " . TOPICS_TABLE . " WHERE topic_approved = '1' AND " . $db->sql_in_set('forum_id', $forums) . " ORDER BY topic_last_post_time DESC"; $result = $db->sql_query_limit($sql,TOPICS_LIMIT); while ($r = $db->sql_fetchrow($result)) { $topics[] = $r; } $db->sql_freeresult($result); ?> <div> <?php foreach($topics as $t) { // Get folder img, topic status/type related information $topic_tracking_info = get_complete_topic_tracking($t['forum_id'], $t['topic_id']); $unread_topic = (isset($topic_tracking_info[$t['topic_id']]) && $t['topic_last_post_time'] > $topic_tracking_info[$t['topic_id']]) ? true : false; $folder_img = $folder_alt = $topic_type = ''; topic_status($t, $t['topic_replies'], $unread_topic, $folder_img, $folder_alt, $topic_type); // output the link ?> <img style="vertical-align: text-bottom" src="<?php echo $user->img($folder_img, $folder_alt, false, '', 'src');?>" title="<?php echo $user->lang[$folder_alt];?>" alt="<?php echo $user->lang[$folder_alt];?>" /> <a href="<?php echo $phpbb_root_path . 'viewtopic.php?f=' . $t['forum_id'] . '&t=' . $t['topic_id'] . '&p=' . $t['topic_last_post_id'] . '#p' . $t['topic_last_post_id'];?>"><?php echo html_entity_decode($t['topic_title']);?></a><br /> <?php } ?> </div>
  15. When a time limit is executed on the server, I use Big Dump. It works a treat. I have used it many times. And I could just imagine how large a database could easily get with that many airports. I know when I imported the nav data I got the old ran out of memory error. I fixed it via my config file and got suspended by my host for over riding settings lol it was epic.
  16. I just made sure to drop a index.html page in every file that I could. That way no directories came up so people could download my files. if they are going to steal code, then they can work hard at it and right click and copy and all that. I'm not just going to let them download my files.
  17. Just a quick query, I know we have the nav database we can add. Question is, has anyone ever bombed their database with thousands of airports and then exported the table?
  18. I had this issue on another site I was working on a couple years back. No matter what I did, I could not get it to pop up the download. I had to delete the java from it and just have the people click the link to manually start the download. Down and dirty fix but it worked. I never revisited the issue as I parted ways with the web owners and called it at that. Not sure if they ever fixed it or not.
  19. Thanks Pro. I appreciate the info man.
  20. Rgr that. Thanks man!
  21. And on a side note: Has anyone figured out how to make it so the money pilots spend on a exam is not given back to them on a recalculate or cron run?
  22. Life has probably got in the way. I am sure Dave will surface in good shape sooner or later. He is a pretty busy guy.
  23. Dave is a great guy. I am sure life has just got in the way. However, if no support can be given for paid modules, said modules need to be freeware or not sold on the market. FSNavigator for example. I know Dave is talented and his paid modules are great, but they need to be disabled if no support can be given for now. The free ones, well that is another story. As is is as is. We can't nag about that or any of the awesome work and time Dave has put in to phpVMS over the years. I hope all is well Dave!
  24. open core/common/ExamsData.class.php FIND (ALL INSTANCES) public function REPLACE WITH (ALL INSTANCES) public static function **PLEASE NOTE** I am not sure this is the correct fix. It worked for me but at what cost? Please use your own discretion before using.
  25. Thanks web I'll give that a try and see how it goes. I actually went and discabled the news function in the events module just because for now. Most likely tomorrow I will uncomment and try your code. I really do appreciate the info.
×
×
  • Create New...