web541
Members-
Posts
700 -
Joined
-
Last visited
-
Days Won
17
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by web541
-
I've just done a quick skin conversion which works on my side, but may not necessarily work on yours (hence I can't offer support on this if it doesn't work) But you're willing to give it a go https://github.com/w...dmin-Panel-Skin NOTE: this isn't for everyone, it may not work on your side. I believe this one is in the making http://forum.phpvms....admin-template/ It'd be something worth waiting for. Remember, backup,backup,backup -- If you have your website locally, I'd try it there first to make sure everything works as it should Of course, in the future you might consider making your own (when the workload dies down), it's very similar to skinning the main site.
-
This is usually the case with skins, but because people have had trouble converting this in the past, I dove deep in and actually the phpvms 5.5.x version (in the original post) had used different variables for the registration page and also the captcha was the newer version (Google NoCaptcha), so you'd have to change these to make them work in the .tpl version. http://forum.phpvms.net/topic/22886-ocean-blue-v2/page__st__60#entry123052
-
add this to where ever you want it. (e.g. core_navigation.tpl/.php) <a href="<?php echo SITE_URL; ?>/index.php/pilots">Pilots</a>
-
Hmm, it worked on my end. Have you edited any jQuery code recently? Are there any more references to jQuery other than core_htmlhead.php and core_navigation.php? Are there any errors in your console?
-
Ok, go to admin/lib/layout/header.php find this <!-- Header Scripts --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> jQuery(document).ready(function( $ ) { $('.counter').counterUp({ delay: 10, time: 4000 }); }); </script> Delete it go to admin/lib/layout/footer.php find this <!-- jQuery 2.1.4 --> <script src="<?php echo SITE_URL?>/admin/lib/layout/plugins/jQuery/jQuery-2.1.4.min.js"></script> Delete it go to admin/templates/core_htmlhead.php find this <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> Change it to this <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> go to admin/templates/core_navigation.php at the very top of the file (under this line if you have it <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>) Paste this <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script> jQuery(document).ready(function( $ ) { $('.counter').counterUp({ delay: 10, time: 4000 }); }); </script> <script type="text/javascript"> jQuery.noConflict(false); </script> The jQuery calls should be working now (Accepting PIREPS, deleteing news, etc.)
-
<h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> <th>VATSIM ID</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></td> <?php } ?> </tbody> </table>
-
No, I meant which file did you edit? (Put the above code in. pilots_list.php?)
-
Which file did you try this on?
-
Not a JSON problem (JSON loading fine), it's a jQuery problem. (If you find that accepting PIREPS doesn't work, then also let us know, you would have to change some things) Pilots & Schedules don't show up anymore, to fix this, go to public_html/lib/js/jqgrid/js/jquery.jqGrid.min.js and copy/rename it to jquery.jqGrid_orig.min.js then, replace the original file with this one https://raw.githubusercontent.com/web541/phpVMS-Admin-Panel-Skin/php/lib/js/jqgrid/js/jquery.jqGrid.min.js Then go into the relevant template files e.g. pilots_list.tpl/.php and ops_schedules.php and place this at the very top of the file <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> And this at the very bottom of the file <script type="text/javascript"> jQuery.noConflict(true); </script> The tables should now work, the pagination arrows on the bottom are still there, but are for some reason invisible so you'd have to change something in the js/css to make it work again but I haven't found a fix for that one yet. Keep going, it takes a while but you get a good end result. -- are you using the phpvms php or tpl version?
-
Wow, a lot of cleaning up here. Try this: Header.php Footer.php
-
style="border: none;" ?
-
Ok, can you post your whole header.php or at least some more so we can take a look?
-
Ok, by the looks of things you are using AdminLTE. Try placing it like this <section class="content"> <div id="mainContent"> <div id="results"></div> <div id="bodytext"> <!-- Content goes here..you know? --> </section> I believe it's just adding the content to the div but just using the <div id="mainContent"> as a main anchor or something. But from what I know, it's just placing the content on the page for the templates. If that doesn't work, try just closing one div, it looks like your content is in your footer, if you provide more code, we can have a look to see what you've done wrong.
-
it depends, where would you like it to be displayed?
-
http://forum.phpvms.net/topic/20629-most-common-fixes-phpvms-installation/#entry110801 Or if you are doing a fresh install, use this https://github.com/DavidJClark/phpvms_5.5.x
-
Try re-uploading all the files and see it that fixes it
-
I think what you are looking for is in the core/modules/Registration/Registration.php file under the function of VerifyData() as you can see, as an example, if you specify nothing for your first name, it will throw back an error if($this->post->firstname == '') { $error = true; $this->set('firstname_error', true); } else { $this->set('firstname_error', ''); } And as you can see in the ProcessRegistration function, if it sees an error in the VerifyData function, it will throw the template back with an error, otherwise it will continue // Yes, there was an error if(!$this->VerifyData()) { $this->ShowForm(); return; } And if you are looking to edit the error message itself, you can look in the registration_mainform.tpl/.php like this <?php if($firstname_error == true) echo '<p class="error">Please enter your first name</p>'; ?>
-
Nothing being written to the flight log in phpvms
web541 replied to ahughes3's topic in Support Forum
*sigh* host issues, 1. Ok, go into your local.config.php and set DEBUG to true file a flight check core/logs/logs.txt and see if anything is there (set it back to false afterwards) 2. Check your server error_log file and see if anything shows up ---------------------------- (I assume it wasn't a php/server error if the PIREP went through, so nothing may come up in 1. & 2.) 3. Check to see if all the files have been uploaded correctly (and/or check http://vaurl/install/checkinstall.php and/or install/checkdb.php) 4. If not, make sure it is uploaded (especially the core/common/PIREPData.class.php & ACARSData.class.php) 5. Go into PHPMyAdmin and then into the PIREPS table and make sure that the log column is there and that all the other information has gone through. Are your PIREPS going through entirely (apart from the log)? Are you still with 123REG Hosting? If you wanted to do some trial - and - error, do a test flight with say with the free version of kacars and see if that records the log. If it does, then it's more or less likely to be a smartcars issue, If it doesn't, then further investigating may be required. -
Um, he asked for the frontpage_recentpilots.tpl not the pilots_list.tpl try changing this foreach($pilot_list as $pilot) { to this foreach($pilots as $pilot) { And see if it works. I believe that the variables have changed in the newer phpvms 5.5.x version therefore it will not work with your .tpl version and it's a bug in the skin I believe.
-
is it possible to lock pilots on arrival airport? (smartcars 2)
web541 replied to ercio's topic in Support Forum
If you want to make any changes to the bidding of your schedules, then it will be much easier to change it on your website end rather than the ACARS Client as it is much more customisable. -
Are there any error messages in your console or firebug? Probably related to your cookie error, but I've had the error when jQuery wasn't specified properly.
-
Do you mind pasting in your local.config.php (the whole file) or http://pastebin.com/ it? And please XXXX the sensitive information (database info) trygeboy has a point, make sure that your database user has the correct password for the user you are using, if not it might be worthwhile changing it and keeping a first-hand copy to make sure that the information for the user is correct.
-
Try this? http://forum.phpvms.net/topic/23196-route-map/#entry122449
-
Hmmm, there is no setting to globally change all numbers to number_format() I don't think, so the best solution would be to change them manually. I guess you could keep fiddling in the config file, but it's not set to change anything in particular so it might not work.