AidasP
-
Posts
32 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by AidasP
-
-
what is $apiUserId ? Its not there
-
And very off-topic, the kACARS won’t even connect, it gives me errors like: headers already sent, session_cookie and etc (i know how to write a simple login/registration system in PHP, and i have made redirects in the MAIN index.php, but the VA path is in the folder), just annoying thing is, that all the acars systems connect without any problems, but kACARS won’t.
Aidas
-
I have 2 problems with the acars map, when using XACARS(since theres no good 737-300 in p3d, theres no other choice):
1. It would only appear after refreshing like 100 times.
2. After flight ends, and when you submit the pirep, turn off the PC(etc), the acars map says, that youre somewhere in africa still doing the flight that was in baltic/europe(for 12hrs)
Also Im using the my own skin (made with bootstrap), and tried default, reinstalling still no luck, and yes, i am using payed host, i put the Google Maps API Key.
Help would be very appreciated, all the pilots are killing me with their problems, thanks very much in advance!
-
On 12/19/2017 at 11:27 PM, web541 said:
For phpvms 5.5.x, go into core/modules/Pilots/Pilot.php and find this
public function index() { // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); $this->set('allpilots', $pilot_list); # deprecated $this->set('pilot_list', $pilot_list); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); # deprecated $this->set('pilot_list', $nohub); $this->render('pilots_list.tpl'); }
And replace it with this
public function index() { $allpilots = PilotData::getAllPilots(); $this->set('allpilots', $allpilots); # deprecated $this->set('pilot_list', $allpilots); $this->render('pilots_list.tpl'); }
Provided you haven't heavily modified the pilots_list.tpl/.php file, it should work.
NOTE: This takes into account the nature of the post, to give a pilots list of every pilot in the database and order them by pilot id not by hub.
If you want the default then do what shakamonkey88 said and go to the github repo and download the default file again.
Okay, thanks! Sorry for late reply. But that really helps.
Aidas
- 1
-
Oh and just to note, it works fine on apple mail app
-
I tried to test the password reset function, but didn't work, i tried registering a new user, all the email sneds is "noname" thats it, no text anything, ant thats the same for all things: lost passord, pirep,registration e.t.c
Heres an image: (i am using free host infinityfree if any1 can help me, that would be very appreciated, because i cant login to my account anymore..)
/|\ for reset password
and for registration:
It is actually is very annoying, i hope this isnt the host error, and also this is how my email_lostpassword.php looks: (incase of something)
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> Dear <?php echo $firstname .' '. $lastname; ?>, Your password was reset, it is: <?php echo $newpw?> You can login with this new password and change it. Thanks! <?php echo SITE_NAME?> Staff
That content/text is just not in the email ;(
-
Link not working...
-
Noo... I dont user the CrewCenter, i told that before, im using my own, which i made with bootstrap, any1 can give me a code with pilots list, without hubs, and with bootstrap would be appreciated a lot!
i mean with bootstrap - bootstrap table
-
Just now, AidasP said:
wait..............................................................I am using default 'Crew Center', well at least the one i made with bootstrap, the thing is, that (yes my version is 5.5.x, of phpvms), that the Module Pilots, is acting like its not even existing there, i can delete everything, i can keep everything, i can edit stuff, it just ignores my changes, i am really annoyed with the hubs, just like sitting here trying to fix it for like 2h30min, so yeah..
oh and yeah i move them to my skin folder, or edit it directly, still no luck
-
1 hour ago, Shadesb181 said:
Note that the coding above works using phpvms 5.5 and runing php version 5.6 on my server. That's my config at least.
Also r you using the .tpl or .php version of the crewcenter. That will change the formatting as shown above.
wait..............................................................I am using default 'Crew Center', well at least the one i made with bootstrap, the thing is, that (yes my version is 5.5.x, of phpvms), that the Module Pilots, is acting like its not even existing there, i can delete everything, i can keep everything, i can edit stuff, it just ignores my changes, i am really annoyed with the hubs, just like sitting here trying to fix it for like 2h30min, so yeah..
-
mope, the pilots.php completely ignores me whatever i do
-
On 12/16/2017 at 1:49 AM, jnascar said:
I think he is talking about something like this:
I might be wrong, but it displays on all pages, when logged in!
This is the entire code in the default crystal skin:
<?php /* Quick example of how to see if they're logged in or not Only show this login form if they're logged in */ if(Auth::LoggedIn() == false) { ?> <form name="loginform" action="<?php echo url('/login'); ?>" method="post"> Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br /> <input type="text" name="email" value="" onClick="this.value=''" /> <input type="password" name="password" value="" /> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> </form> <?php } /* End the Auth::LoggedIn() if */ else /* else - they're logged in, so show some info about the pilot, and a few links */ { /* Auth::$userinfo has the information about the user currently logged in We will use this next line - this gets their full pilot id, formatted properly */ $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> <img align="left" height="50px" width="50px" style="margin-right: 10px;" src="<?php echo PilotData::getPilotAvatar($pilotid);?>" /> <strong>Pilot ID: </strong> <?php echo $pilotid ; ?> <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br /> <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?> <br /> <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> | <a href="<?php echo url('/schedules/bids');?>">View My Bids</a> | <a href="<?php echo url('/profile/');?>">View Pilot Center</a> <?php } /* End the else */ ?>
That will show you exactly what is in the screen shot WHEN they login! There might be some additional code in there, not sure. And you can edit it for ONLY what you want show!
Works like a charm, Thanks!
-
http://smallplanet.epizy.com/index.php/pilots
as you can see it looks terrible, i am trying to user bootstrap tables, again with no success, why does the table repeat all the time, and (probs that why), how in the f world do i get rid of hubs, the Pilots.php has completely nothing todo with it, because, when i delete everything from the file, no changes are made, and its annoying me so much, how do i get rid of the airport names?
Aidas
thanks in advance!
-
Does not work at all
completely no changes made
-
Well since, I am on my school computer.... Anyways, I am trying to display, pilot id + pilot's avatar, on all pages, it only shows up in pilot center, im making a profile page where they can change pass avatar etc., im not using the default phpvms, fully customizing it by hand, and unable to use bootstrap..... Hope htisanwers someones question!
AidasP
-
Thats my code for it:
<li> <a href="<?php echo url('/userprofile'); ?>"> <img style="position:absolute;top:3px;left:-15px;width:30px;height:30px;" src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" /> <?php - if (!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilot.'.png')) { ?> - <img src="<?= SITE_URL ?>/lib/images/noavatar.png" alt="No Avatar" style="width: 50px" class="img-responsive"/> - <?php - } else { - echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilot.'.png'.'" alt="No Avatar" class="img-responsive"/> '; - } ?> </a> </li>
(also displaying the avatar beside)
-
Nope
still no luck
-
-
-
Just now, shakamonkey88 said:
It's because you're not calling it from the database - try something like this:
<?php $pilotcode = PilotData::getPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?>
will do
-
I tried using many methods of displaying the pilots Id on the main menu, i tried:
<?php echo PilotData::getPilotCode(); ?>
also:
<?php echo $pilotcode; ?>
full example:
<li><a href="<?php echo url('/pilots'); ?>"><?php echo PilotData::getPilotCode();?></a></li>
(etc)
I can only get these to work, when i am in pilotcenter, i need them in my core_navigation main.
-
Well the error, i am getting is basically unable to connect: CONNECTION ERROR! yes it is free hosting, but i know people how use this hosting and they are completely fine with it
aswell, i tried to make a test account, still no luck
-
2 minutes ago, lorathon said:
Hmmm, oh i was trying to get acarsii working, and deleted the free version... ANYWAYS the v2 does not work aswell, since im not home rn, ill try to upload the thing when im back (aprox. 1.30h), and i am using the simpilot version of phpvms, maybe thats the case? i dont know, but the free module was installed there by default
-
3 hours ago, lorathon said:
Please check the URL and send the URL to me so that I can see what is going on.
http://smallplanet.epizy.com/index.php
also, just to note, none of the acars work that are supported by phpvms, even the CCFTracker
Code Now Hosted At Github
in Simpilot Group Addons
Posted
where is entrance exam module?