gio1961
-
Posts
252 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by gio1961
-
-
On 8/11/2017 at 10:32 PM, mark1million said:
Ok doesnt matter i had to reintroduce a dedicated class to get it to show correctly. Changed the existing div and it works great.
<div id="chart_div" style="width:400; height:300"></div>
I've tried your code, but there is no graph, it's empty and there is only a "loading image"
my dashboard.php
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<h3>VA Stats:</h3>
<table width="100%">
<tr>
<td valign="top" width="33%" nowrap="nowrap">
<strong>Users Online: </strong><?php echo count(StatsData::UsersOnline()); ?><br />
<strong>Guests Online: </strong><?php echo count(StatsData::GuestsOnline()); ?>
</td>
<td valign="top" width="33%" nowrap="nowrap" >
<strong>Total Pilots: </strong><?php echo StatsData::PilotCount(); ?><br />
<strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br />
<strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?>
</td>
<td valign="top" width="33%" nowrap="nowrap" >
<strong>Miles Flown: </strong><?php echo StatsData::TotalMilesFlown(); ?><br />
<strong>Total Schedules: </strong><?php echo StatsData::TotalSchedules(); ?><br />
<strong>Flights Today: </strong><?php echo StatsData::TotalFlightsToday();?>
</td>
</tr>
</table>
<?php
MainController::Run('Dashboard', 'CheckInstallFolder');
echo $updateinfo;
?>
<h3>Pilot Reports for the Past Week</h3>
<div align="center" style="width=98%">
<div id="reportcounts" align="center" width="400px" >
<img src="<?php echo fileurl('/lib/images/loading.gif');?>" /><br /><br />
Loading...
</div>
</div>
<?php
if(Config::Get('VACENTRAL_ENABLED') == true && $unexported_count > 0)
{ ?>
<h3>vaCentral Status: </h3>
<p>You have <strong><?php echo $unexported_count?></strong> PIREPS waiting for export to vaCentral.
<a href="<?php echo adminurl('/vacentral/sendqueuedpireps'); ?>">Click here to send them</a> </p>
<?php
} ?><?php
Template::Show('pilots_viewallbids.php');
?>
<div id="chart_div" style="width:400; height:300"></div>
<h3 style="margin-bottom: 0px;">Latest News</h3>
<div style="overflow: auto; height: 400px; border: 1px solid #f5f5f5; margin-bottom: 20px; padding: 7px; padding-top: 0px; padding-bottom: 20px;">
<?php echo $phpvms_news; ?>
<p><a href="http://www.phpvms.net" target="_new">View All News</a></p>
</div>
</td>
<?php
/*if(Config::Get('VACENTRAL_ENABLED') == true)
{
?>
<td valign="top" valign="50%">
<h3 style="margin-bottom: 0px;">Latest vaCentral News</h3>
<?php echo $vacentral_news; ?>
<p><a href="http://www.vacentral.net" target="_new">View All News</a></p>
</td>
<?php
}*/
?>
<?php
/*
Added in 2.0!
*/
$chart_width = '400';
$chart_height = '300';/* Don't need to change anything below this here */
?>
<script type="text/javascript"src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);function drawChart() {
var data = google.visualization.arrayToDataTable([
['Day', 'Pireps'],
<?php
$counter=0;
$total=0;
$len = count($pireps);
foreach($pireps as $row)
{
echo "['".date('j M',$row->timestamp)."',".$row->total."]";
$total=$total+$row->total;
if ($counter<$len-1)
{ echo ","; }
$counter++;
}
?>
]);var options = {
title: '',
legend: { position: 'none' }
};var chart = new google.visualization.LineChart(document.getElementById
('reportcounts'));
chart.draw(data, options);
}
</script> -
On 22/7/2013 at 11:51 AM, OA01 said:
I found the solution myself.
Open //core/common/LoAData.class and locate the following:
public function GetAllRequests () { $table = TABLE_PREFIX; $sql = "SELECT loa.pilotid, loa.start, loa.end, loa.reason, phpvms_pilots.pilotid, phpvms_pilots.firstname, phpvms_pilots.lastname FROM loa JOIN phpvms_pilots ON loa.pilotid = phpvms_pilots.pilotid"; $ret = DB::get_results($sql); return $ret;
And replace it with this:
public function GetAllRequests () { $table = ".TABLE_PREFIX."; $sql = "SELECT loa.pilotid, loa.start, loa.end, loa.reason, pilots.pilotid, pilots.firstname, pilots.lastname FROM loa JOIN pilots ON loa.pilotid = pilots.pilotid"; $ret = DB::get_results($sql); return $ret;
Good afternoon. I tried to edit the file but it does not work. No data in the DB and in the admin panel (no error is shown) How to solve? thank youNow the admin function works OK.
-
1 hour ago, mark1million said:
Sorry chaps been crazy busy here.
To remove Captcha from the native registration do the following,
registrationmaindform.tpl or php
Back up your files before editing i take no responsibility if your site breaks!
Find the following and delete it or just comment it out.
<dt>ReCaptcha</dt> <dd> <script type="text/javascript"> var RecaptchaOptions = { theme : 'white' }; </script> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </dd> <dt></dt>
Go to the Core>Modules>Registration>registration.php and remove of comment out this as i have,
/* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */
If you have Davids Entrance Exam you need to edit some more files but because it used the native phpVms registration process then you will need to edit that also in the core modules registration registration.php as well.
To remove from the entrance exam you need to edit the following in the entrance folder of your skin or template where ever you installed it. registration_form.php and entrance_form.php, remove this from both.
<dt>reCaptcha</dt> <dd> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> <p class="error">* Please note these are required fields and must be completed to register.</p> </dd> <dt></dt>
remove this same thing from both those files
Finally in teh Core>modules>Entrance> Entrance.php remove the following or comment it out as i have.
/* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */
This will remove Captcha from your registration process.
Back up your files before editing i take no responsibility if your site breaks!
Thanks very kind. Best regard
-
On 9/3/2018 at 8:21 PM, Nabeel said:
Probably be good to post it, or write something in the documentation area?
Also I'm using David's form, I'm having problems. Can you share here in code or privately? thank you
-
1 hour ago, shakamonkey88 said:
So you're not using CrewCenter. You're using iCrew - in that case, you need to ask the dev what he's done.
I'm using Crewcenter. However, the problem has been solved. Thank you
-
5 hours ago, shakamonkey88 said:
Change this:
<input type="checkbox" name="remember"> Remember Me
to this:
<label style="font-weight: normal;"><input type="checkbox" name="remember"> Remember Me</label>
Thanks. Problem is
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>To
<script>
$(function () {
$('input').iCheck({
labelHover: false,
cursor: true
});
</script> -
On 30/12/2017 at 10:53 AM, Omerr01 said:
Hello,
I had some weird problem with a login page,
The checkbox "remember" has showen for a 0.5 sec and disappeared from the screen,
Any one has a fix for this problem?
Hi, did you solve the problem? if so? I have the same problem too.. Greetings
-
Resolve...
-
Thank you for responding ... this is the only error that I receive
-
Hello, I installed the addon, but I have the following error and I do not know what can depend on.
Parse error: syntax error, unexpected '=' in /membri/italianichevolano/core/common/TopPilots.class.php on line 27
Use the phpvms_5.5.x version of simpilot. php running on 5.4 servers
thanks to a possible reply. Yours sincerely
-
-
-
Thank you for responding .. same problem
-
Hello i have a problem with the module:
Warning: simplexml_load_file(https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=lirf&hoursBeforeNow=1) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /membri/italianichevolano/core/modules/WTHR/WTHR.php on line 13
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=lirf&hoursBeforeNow=1" in /membri/italianichevolano/core/modules/WTHR/WTHR.php on line 13
Thanks for a possible answer ...
Yours sincerely
-
Thank you for responding ...
-
Hello everyone ... Is there any addons for the calculation of points for passing the Rank (not by hours) but with the points accumulated through PIREPs.
Here are some examples:
http://virginvirtualgroup.co.uk/en/index.php/AllPilots
http://virginvirtualgroup.co.uk/en/index.php/profile/view/VVG1953
http://virginvirtualgroup.co.uk/en/index.php/pireps/view/15919
Thanks for a possible answer
Sincerely
-
-
Hello, open file frontpage_recentpilots.tpl .. try this and see if it works ... best regards
<ul style="margin-top:10px; margin-left:3px;width:100%;" class="list-group">
<?php
if(!$pilots)
{
echo '<p>No pilot!</p>';
return;
}
?>
<style type="text/css">
.ppp {
font-size: 12px;
}
</style>
<table>
<thead>
</thead>
<tbody>
<?php
foreach($pilots as $pilot)
{
?>
<tr>
<td align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" /></td>
<td align="left"><span class="ppp"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid);?></span></td>
<td align="left"><span class="ppp"><?php echo $pilot->firstname . ' ' . $pilot->lastname; ?></span></td>
</tr>
<?php
}
?>
</tbody>
</table>
</ul>
-
Hello everyone ... it is possible to access a page (eg: liveries) only pilots who have completed certain routes for download of a premium (special livery)? thanks to a possible reply.
-
Hello guys any idea how I could do to create a screenshot of the month to be displayed on a page of the site? Thanks for a possible answer.
Best regards
-
Goodmorning everyone. No one knows how to insert the search for the type of flight? (charter, cargo, etc etc). Best regards
-
Resolved
-
Happy New Year to all .. I have a problem with respect to the distances as per attached picture. the distance should not be 1852 nm, but 340.00 Nm. Solutions?
Thanks for a possible answer
Solved...
-
Hello everyone ... you can link on the flight number in order to open schedule briefing
Thanks for a possible answer.
Best regards
ReCaptcha
in Support Forum
Posted · Edited by gio1961
Hi guys, did someone re-use how to intervene on the ReCaptcha code of the old phpvms Version 2.1.936 version? (page contact, registration) if yes, how? thanks for a possible answer.if yes, how? thanks for a possible answer