Jump to content

tutmeister

Members
  • Posts

    226
  • Joined

  • Last visited

Everything posted by tutmeister

  1. Thanks Jacob!
  2. I didn't think you had to go so far as to actually tabulate all of the information regarding cookies; my understanding after reading the PDF they provide is that simply stating you use x-amount of cookies for the purpose of x, y, and z would be sufficient on your policy page, while the landing page for each visitor must have an opt-in style statement that actually does work.
  3. #1 - I believe FSFK doesn't push stage messages out, so I don't think this is fixable unless you contact the FSFK developer and he agrees to put it in a service pack. #2 - Your pilot's must input their aircraft when using FSFK; otherwise, you'll find that error occurs and you have to manually edit the PIREP and assign an aircraft.
  4. # If someone places a bid, whether to disable that or not Config::Set('DISABLE_SCHED_ON_BID', false); Config::Set('DISABLE_BIDS_ON_BID', false);
  5. In your local.config.php file, add: Config::Set('SITE_LANGUAGE', 'es_AR');
  6. Try updating Firefox. I checked in Safari on Mac; Firefox, Chrome and IE9 on windows. All good from here mate.
  7. It works fine from here...maybe try pressing CTRL+F5 to refresh your browser's cache of the website.
  8. Scott, all payware queries need to go via email to Jeffrey, as far as I am aware.
  9. .htaccess to block access directly to files of the type .tpl (in this example it also blocks users accessing the htaccess file itself. You can also add php/html/htpasswd to it, etc. Just search htaccess on the forum here: <FilesMatch "\.(htaccess|tpl)$"> Order Allow,Deny Deny from all </FilesMatch>
  10. No it should be just the way the URI's are formed. Because you're changing the location it is normally called from, the default paths require changing. So you just need to add the /index.php to the front of them. On your website, it seems you have deleted or renamed the registration module, so it doesn't work, but the below code works fine in my test environment with a default phpvms. <head> <?php include '/core/codon.config.php'; ?> </head> <body> <?php { echo '<form name="loginform" action="/index.php/login" method="post">'; echo 'Sign-in with your pilot id or email, or <a href="/index.php/registration">register</a><br />'; echo '<input type="text" name="email" value="" onclick="this.value=\'\'" />'; echo '<input type="password" name="password" value="" />'; echo '<input type="hidden" name="remember" value="on" />'; echo '<input type="hidden" name="redir" value="/index.php/profile" />'; echo '<input type="hidden" name="action" value="login" />'; echo '<input type="submit" name="submit" value="Log In" />'; echo '</form>'; } ?> </body>
  11. You could try, if it works it works. If it doesn't, you might have to try $_SERVER['DOCUMENT_ROOT'] in front of the URI. Like this: require ($_SERVER['DOCUMENT_ROOT']."/core/codon.config.php"); That worked in my test environment from a PHP file located in a skin folder, "lib/skin/testskin".
  12. Tylor, same as before, a link isn't correct. In this case, it's the form handler. It's looking for index.php/login. echo '<form name="loginform" action="/login" method="post">'; I don't have time to help much today, sorry. So you'll need to figure out how to get it linked to the base_url/index.php/login.
  13. OK, so when you read that error, you can see it is telling you something is missing and the offending referral link is on line 4 and it's called 'core/codon.config.php'. So what that's saying, is that the path to codon.config.php is incorrect. Within phpvms, you can create a link back to the top directory of your site using SITE_URL. This is defined within the local.config.php file, but typically it would direct you to the root folder of your installation. So when you have links that point to something way outside your skin folder, use that to create links that will work. In this case, it won't work because you're using a PHP file, not a template within the MVC structure. So a better solution overall is to create a custom module and call it through a template. But that's beyond what I'm explaining. This will get you up and running, change line 4 to read: include $_SERVER['DOCUMENT_ROOT'].'newsite/core/codon.config.php'; But when you move this to the root URL of the website, you'll need to remember to take away "newsite". Having said that, there is a way that s
  14. Tylor, first the best advice I can give it to google the error PHP gives you. The PHP manual is very well-written and you can 9 times out of 10 find your own solution by doing so. It also helps you learn the basic of PHP by debugging code. Anyway, I have commented what I did to clean you up, take a look at the differences and it'll help you understand. This isn't 100% sure to run with your script, but it is clean code as far as I can tell. <head> <?php //No need for script tags around PHP. include '/core/codon.config.php'; ?> </head> <body> <?php { // You needed to escape a bunch of single quotes and remove the PHP calls within the PHP. You were echo'ing within an echo statement. echo '<form name="loginform" action="/login" method="post">'; echo 'Sign-in with your pilot id or email, or <a href="/registration">register</a><br />'; // You need to use the backslash to "escape" the single quotes in the onclick function. echo '<input type="text" name="email" value="" onclick="this.value=\'\'" />'; echo '<input type="password" name="password" value="" />'; echo '<input type="hidden" name="remember" value="on" />'; echo '<input type="hidden" name="redir" value="index.php/profile" />'; echo '<input type="hidden" name="action" value="login" />'; echo '<input type="submit" name="submit" value="Log In" />'; echo '</form>'; } ?> </body>
  15. Agreed, per 2 posts up.
  16. No, the included file should be a PHP in this case, unless you've got it to where you're including a phpvms .tpl file, which will run PHP if it enclosed in the correct PHP tags.
  17. include '/core/codon.config.php'; Needs to be wrapped in PHP tags for starters mate. First, not everyone has Javascript turned on, second it just wouldn't work. So you need to call it like this: <?php include '/core/codon.config.php'; ?>
  18. Solved. After trying it every which way, all I had to do was delete core_htmlhead.tpl in the skin folder, and let phpVMS fall back on the original in the Core/templates.
  19. 2 out of 3 items that rely on jQuery stops working if I do that Jeff. After some fault-finding, I'm even more baffled: If I remove all JS calls from layout.tpl and just put them in core_htmlhead.tpl nothing works. But if I then then call the jQuery and jQueryUI a second time within core_htmlhead.tpl, right below each other, it all works fine. Like this: <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> I moved everything else below them just to make sure it wasn't a dependency issue and it still displayed the same behavior. So obviously there is something wrong and I need a break! I will likely start fresh with a working HTML-only template, moving it into phpVMS bit by bit to determine the problem. I haven't experienced this before.
  20. In core_htmlhead.tpl and at the top of layout.tpl under the comment for custom Javascript.
  21. Kyle, I know I shouldn't be calling it twice, hence the post. I have tried it in both locations and the only time my jquery elements behave correctly is when I call it from both locations. I will have to use firebug to track down why this is happening if no one else has this issue, as it's obviously something to do with the way my skin is coded.
  22. So is everyone using jQuery for their skin here able to call it once only in the core_htmlhead.tpl and have no problems, or has no one reading this seen this problem before?
  23. I'm developing a skin and am having trouble displaying all the content that relies on jQuery correctly. I have everything working perfectly in a static file, but when I break it up to go into templates is where it goes wrong. Essentially, what I've narrowed it down to is if I don't call jQuery in both the layout.tpl and core_htmlhead.tpl the elements replying on jQuery fail gracefully as designed. But obviously I shouldn't have to be calling jQuery twice...so has anyone encountered this before?
  24. AmMap works with an XML file containing the information to be displayed in Flash in the browser. It is a nice option, but as you didn't understand where to put the information I explained above, I'm guessing that creating a PHP to XML script is perhaps going to be too difficult for you. Not trying to be rude, but that's what you will need to do to get the information in. The XML for AmMap would need to be pushed the ICAO and the Lat/Long for the arrival and departure of each flight, if you're up to it. More info here: http://www.ammap.com/lib/ammap/data/flight_routes.xml http://www.ammap.com/examples/flight_routes
  25. I don't have time to code it completely for you, but if you look on the forum you will find a thread about how to integrate GCMAP to your phpVMS install. In that code, where you see an ICAO being placed, you would have to figure out a way to inject the lat/long like I posted above. You might have to go fully over to ICAO+LAT/LONG as the format in order for this to work, but it will work if implemented correctly. If I find time next week, I will look at showing you an example but I'm pretty busy right now.
×
×
  • Create New...