Jump to content

WiltshireAirlines

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by WiltshireAirlines

  1. Hello, I am looking for some rank images. Maybe I could get an image of a four bar rank or all of the bars (1-4). This is the link that I used for my First Officer rank. http://img444.imageshack.us/img444/1694/rankt.jpg If one of you fellow simpilots have an image like that, please post it. Sorry if this was a bit vague.
  2. Let me recap my problem. I have created a new page in the home directory. You must be signed in to see this page. Then, I linked to that new page from /index.php. Although I was signed in when clicking on the link, the new page said I was not signed in. I then put in the URL for /index.php, and I got sent to it. It also said I was not logged in. However, when I put in the login credentials, it said I was already logged in. Let me add one more detail: when I go from /index.php to the new page in the home directory through not a link but the direct URL (type it in the web browser), it says I am logged in. What could be causing all these problems? No other page does this. To put it simply, every problem I list up here is caused by this new page. There has to be some coding flaw in this new page. I've already required the codon.config and local.config. What else do I have to do? Please help, this is kind of urgent. I would appreciate any and all insight. Thanks.
  3. I think it's some problem when I visit the new page. It's obviously something to do where it's located. Must I require maybe a reference to another config file of phpvms?
  4. OK, I've made some connections here. When I visit the page through a link (when logged in), the PHP says that I am NOT logged in. I then go back to the homepage either through a link or URL (doesn't matter), and it says I'm still not logged in. However, when I do this, and return to the homepage, and try to sign in, it says I'm already logged in. Which means that I have been logged in the whole time, there's just a glitch with the system that says if I'm logged in or not when I visit this new page (located in the home directory). It doesn't have this problem with other pages. This is really weird...I'm going to restore the Modules>Login>Login.php file and tell you what happens from there. EDIT: Restored the login.php to original to no avail. This is really weird. What could be causing this to "sign me out" without really signing me out?
  5. I know. I have that. It's weird though. Why would I get signed out when I go through a link but stay signed in when I go through the URL directly?
  6. Just noticed something really weird. When I visit the page through the URL, I stayed signed in...but when I link to the page through the site, it says I'm not signed in, although I actually am. By the way, this page is not in modules - it's a separate page in the home directory.
  7. www. is in the URL. So, does that mean I can't directly go to the page?
  8. Thanks...it half worked. I'm logging in now, it's redirecting me to the page, but on that page it says that I'm not logged in...I know it's the correct information though...
  9. Thanks! It worked. One more question...how do I change the page the pilot is redirected to when they login through the form? I tried changing some stuff in Modules/Login/Login.php but to no avail. Thanks...I didn't want to start a new thread because I was afraid it would look too much like spamming.
  10. Question explains it all - I have a page, NOT in templates or in the skin, but rather in the HOME DIRECTORY (where /core and /lib etc is) and I'm not sure how to make it only visible to pilots, so that if you're not logged in and you visit the page, it'll bring you to the login page. Couldn't find anything obvious on the other pages that also were only visible to pilots. Thanks for all the help in advance.
  11. It's IATA. Three letter code.
  12. I had a PHP error - for me, it was the problem that I had the same php code appear twice. I removed the second one and it worked. I'm not sure what's going on with your code - you might want to try posting it here, or debugging on your own as it's probably a php error.
  13. I got it to work, it was a careless PHP error. Thanks for all the help!
  14. No errors after I turned on strict standards. However, the source says that the whole body is just "<!---->" which isn't true...I'm using syntax highlighting so I know the body isn't one whole comment.
  15. I've told you pretty much all that's happening. Blank page. I'll turn on strict standards quickly...
  16. Still shows a blank page after that change. The file is in the home directory, where core and lib are. The link should be /core/codon.config/php, right?
  17. I'll do that. I'm stupid...haha. Um. Embarrassing. Anyway, I can't give you the link because the website hasn't been released yet.
  18. I used that template. Unfortunately, there's still a blank page - even when commenting the php. So I now know that it's not a PHP error, nor is it a problem with the template. Here's my source using your template (and with the php commented): <?php // To avoid errors, this should go before *any* HTML output require('/path/to/codon.config.php'); // Call the phpVMS config file ?> <!doctype html> <html> <head> <title>Untitled Document</title> <!-- Insert any Style Sheets --> <!-- JS BELOW --> <script> $(function() { var items = $('#v-nav>ul>li').each(function() { $(this).click(function() { //remove previous class and add it to clicked tab items.removeClass('current'); $(this).addClass('current'); //hide all content divs and show current one $('#v-nav>div.tab-content').hide().eq(items.index($(this))).show('fast'); window.location.hash = $(this).attr('tab'); }); }); if (location.hash) { showTab(location.hash); } else { showTab("tab1"); } function showTab(tab) { $("#v-nav ul li:[tab*=" + tab + "]").click(); } // Bind the event hashchange, using jquery-hashchange-plugin $(window).hashchange(function() { showTab(location.hash.replace("#", "")); }) // Trigger the event hashchange on page load, using jquery-hashchange-plugin $(window).hashchange(); }); </script> <!-- JS ABOVE --> </head> <body> <!--<?php require('codon.config.php directory'); // Call the phpVMS config file ?>--> <section id="wrapper" class="wrapper"> <div id="v-nav"> <ul> <li tab="tab1" class="first current"><a href="#">Dashboard</a></li> <li tab="tab2"><a href="#">Statistics & Awards</a></li> <li tab="tab3"><a href="#">Support</a></li> </ul> <div class="tab-content"> <h4>News & Notifications</h4> <i>No recent news. For all updates, check our <a href="https://plus.google.com/100776819388226273202/posts">Google+</a> page. </i> <br><br> <h4>Live Flights</h4> <!--<?php Template::Show('acarsmap.tpl'); ?>--> <br><br> </div> <div class="tab-content"> <h4>My Statistics</h4> <ul style="margin-top: 0px;"> <li><strong>Your Pilot ID: </strong> <?php echo $pilotcode; ?></li> <li><strong>Your Rank: </strong><?php echo $pilot->rank;?></li> <!--<?php if($report) { ?>--> <li><strong>Latest Flight: </strong><a href="<?php echo url('pireps/view/'.$report->pirepid); ?>"> <?php echo $report->code . $report->flightnum; ?></a> </li> <!--<?php } ?>--> <li><strong>Total Flights: </strong><?php echo $pilot->totalflights?></li> <li><strong>Total Hours: </strong><?php echo $pilot->totalhours; ?></li> <li><strong>Total Transfer Hours: </strong><?php echo $pilot->transferhours?></li> <li><strong>Total Money: </strong><?php echo FinanceData::formatMoney((floatval($pilot->totalpay) + floatval($pilot->payadjust))) ?></li> <!--<?php if($nextrank) { ?>--> <br><p>You have to fly <?php echo ($nextrank->minhours - $pilot_hours)?> more hours until you promote to <?php echo $nextrank->rank?></p> <!--<?php } ?>--> </ul> <br><br> <h4>Airline Statistics</h4> Total Pilots: <?php echo StatsData::PilotCount(); ?><br />Pilots Pending: <?php echo count(PilotData::GetPendingPilots())?><br />Total Hours: <?php echo StatsData::TotalHours(); ?><br />Total Flights: <?php echo StatsData::TotalFlights(); ?><br />Total Distance Flown: <?php echo StatsData::TotalMilesFlown(); ?><br />Total Schedules: <?php echo StatsData::TotalSchedules (); ?><br />Total News Items: <?php echo StatsData::TotalNewsItems (); ?><br />Total Passengers Carried: <?php echo StatsData::TotalPaxCarried (); ?><br />Total Aircraft In Fleet: <?php echo StatsData::TotalAircraftInFleet () ; ?> <br><br> <h4>My Awards</h4> <!--<?php if(!$allawards) { echo 'No awards yet'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?>--> <ul> <!--<?php foreach($allawards as $award){ ?>--> <!--<li><?php echo $award->name ?></li>--> <!--<?php } ?>--> </ul> <!--<?php } ?>--> </div> <div class="tab-content"> <h4>Support</h4> <form method="post" action="<?php echo url('/contact'); ?>"> <table width='100%' border='0'> <tr> <td><strong>Name:</strong></td> <td> <!--<?php if(Auth::LoggedIn()) { echo Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->firstname .' '.Auth::$userinfo->lastname.'" />'; } else { ?>--> <input type="text" name="name" value="" /> <!--<?php } ?>--> </td> </tr> <tr> <td width="1%" nowrap><strong>E-Mail Address:</strong></td> <td> <!--<?php if(Auth::LoggedIn()) { echo Auth::$userinfo->email; echo '<input type="hidden" name="name" value="'.Auth::$userinfo->email.'" />'; } else { ?>--> <input type="text" name="email" value="" /> <!--<?php } ?>--> </td> </tr> <tr> <td><strong>Subject: </strong></td> <td><input type="text" name="subject" value="<?php echo $_POST['subject'];?>" placeholder="Summarize your message with this line"/></td> </tr> <tr> <td><strong>Message:</strong></td> <td> <textarea name="message" cols='60' rows='10'><?php echo $_POST['message'];?></textarea> </td> </tr> <tr> <td width="1%" nowrap><strong>Captcha</strong></td> <td> <!--<?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?>--> </td> </tr> <tr> <td> <input type="hidden" name="loggedin" value="<?php echo (Auth::LoggedIn())?'true':'false'?>" /> </td> <td> <input type="submit" name="submit" value='Send Message'> </td> </tr> </table> </form> </div> </div> </section> </body> </html>
  19. I think it's because the php is being weird. The page works fine everywhere else, just not in the home directory. Are you sure I can use php in the same way in any directory?
  20. I used the template and now it shows my background but no text, even when there is text on the page.
  21. Is it linked to layout.tpl? If not, then that's my mistake.
  22. Thanks, I've done that...the page is completely blank, just a white page.
  23. I have no php knowledge whatsoever...would I put that code in the php code on the page I'm trying to add?
  24. Hello everybody, I've noticed that a lot of VA's direct you to a management page, separate from the main site, when you log in. This page usually has a completely different template. I have the content all ready - I'm just not quite sure how to make a new page (just one page) with a separate template, but still be able to access the database in the very same way that I do on every other page (because I'm copying some code over). Thanks so much for the help in advance!
  25. The problem's pretty simple. It just started happening - the file will upload to the server, but no matter what, it won't change anything. In this case, the file is style.css. I removed the contents, I even deleted the file itself, and the style still remains on the website. All other files work. I've cleared my cache, used different computers and browsers, etc. Nothing seems to work. The problem is, I'm trying to edit the CSS (because it looks pretty bad), but I can't. I'm aware that I can do it through HTML, but...it's to messy in my opinion. Thanks for your help in advance.
×
×
  • Create New...