Jump to content
Vangelis

Sim Brief for phpvms

Recommended Posts

Hello,

I just love this module, It is working allmost great.

The one thing that is keeping it from a great is that the output just shows a pre generated flight number on the output.

How can i fix it so that the PDF etc. has the right flightnumber instead of an aircraft registration.

 

Rick

Share this post


Link to post
Share on other sites

Hello,

We have a Problem with this Modul. Send to Simbrief works. When i click on Generate a Pop-Up comes with Login to Simbrief and generate the OFP, but when is finished i have no forward to the genrated OFP.
can someone help me?

 

Regards,
Jan

Share this post


Link to post
Share on other sites

Hi. when i (or another member of my va) clicks the generate simbreif there faced with this weird error. Refused to execute script from 'http://v1aviation.org/va/index.php/schedules/brief/simbrief.apiv1.php?api_req=YPPHYMMLB7891541949863v1aviation.org/va/index.php/SimBrief&p=7920157' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

 

i have read the install instructions over and over and still cant find this one out

 

thanks

kyle

 

Share this post


Link to post
Share on other sites
6 hours ago, CedGauche said:

After switchting our page to https, the script had stopped working. What do we need to fix to get it working back again?

Look in all files associated with this module and change all http to https. I believe yours isn't working correctly because your site is https and the sites you are attempting to access from your site are still shown as http in the files. simBrief supports https.

  • Like 2

Share this post


Link to post
Share on other sites
On 3/30/2018 at 1:40 AM, Vangelis said:

Simbrief module for phpvms seems to not work so well with the crewcentre template as there are a lot of jquery conflicts 

as you can see from here 


simbrief.apiv1.js:116 Uncaught TypeError: Cannot read property 'value' of undefined
    at do_simbriefsubmit (simbrief.apiv1.js:116)
    at simbriefsubmit (simbrief.apiv1.js:86)
    at HTMLInputElement.onclick (2:677)

as this is a template issue i am not able to help you with this , you will need to find someone who is able to help you with jquery and templates

Did anyone figure our how to get this working on the crewcenter skin?
Actually, there are many skins called crewcenter so, im not even sure I have the one referenced in this post.

Im having the issue where the Generate Simbrief button is there, but nothing happens when clicked. 

Share this post


Link to post
Share on other sites

ive read through the api a dozen times but i cant figure out how to add custom remarks so that way when a user downloads a vpilot file or stuff like that when they file a flight plan with vatsim in the remarks it will show our va website any help would be much appreciated

Share this post


Link to post
Share on other sites

Hey all,
Vangelis is a busy person, ive already asked but its like 1am local there. 

We got the OFP to work, however, it does not show up in the skin. It opens a new page without the skin.

Anyone know how to make this:

1OZCL9.jpg

 

Show up in my skin with the header, footer and side bar?
M7rcQV.jpg

 

Thanks

Share this post


Link to post
Share on other sites
On 3/13/2020 at 2:32 PM, Vangelis said:

You need to add it to the form before you generate the simbrief flight plan

How would I go about doing that. I tried to follow the guide on the SimBrief forums but it only added the remarks to the ofp and not the vpilot download. Thanks

Share this post


Link to post
Share on other sites
On 2/2/2020 at 9:39 PM, djtiger76 said:

Did anyone figure our how to get this working on the crewcenter skin?
Actually, there are many skins called crewcenter so, im not even sure I have the one referenced in this post.

Im having the issue where the Generate Simbrief button is there, but nothing happens when clicked. 

In the simbrief.apiv1.js change the url of your site in that to https, it should work then. And any other link in the module to https.

Share this post


Link to post
Share on other sites

 

1 minute ago, Strider said:

In the simbrief.apiv1.js change the url of your site in that to https, it should work then. And any other link in the module to https.

 

Thanks

I got it working. I forgot to post. Actually it was as simple as adding "www." to the simbrief address on the generate button.

Share this post


Link to post
Share on other sites

Hi Guys

 

Im frustrated... All Changes are correct. I see the "Generate Simbrief" Button. But no.... Nothing will go on. 

 

1. I have a Api Key

2. i have Schedules

3. i use Aircraft Market from Crazycreative

4. i use Fltbook Scheduling System Admin v2

 

I need some help please.

 

Site: http://test.lausitz-aircargo.de 

 

Login test pw: 1234567

Share this post


Link to post
Share on other sites

I cannot select an airplane during the booking also you have some template issues for example the search box is not working and keeps the page active , also the details page are to big ,the schedule brief template is missing things 

Share this post


Link to post
Share on other sites
4 minutes ago, Vangelis said:

I cannot select an airplane during the booking 

ok wait i must made a change of the location on the airplane. Currently are locked to the last location. give me 1 min pls

 

 

Share this post


Link to post
Share on other sites

Ok i did a flight bid the schedule brief template is missing things some of them are 

<input type="hidden" name="airline" value="<?php echo $schedule->code?>"> 
<br>


<input type="hidden" name="fltnum" value="<?php echo $schedule->flightnum?>"> 

<?php $today = date("dMy");?>

<input type="hidden" name="date" value="<?php echo $today?>"> 

<?php $deptimes = explode(":", $schedule->deptime); ?>

<input type="hidden" name="deph" value="<?php echo $deptimes[0]?>">
<input type="hidden" name="depm" value="<?php echo $deptimes[1]?>">    

<?php $arrtimes = explode(":", $schedule->arrtime); ?>

<input type="hidden" name="steh" value="<?php echo $arrtimes[0]?>">
<input type="hidden" name="stem" value="<?php echo $arrtimes[1]?>">



<input type="hidden" name="reg" value="<?php echo $schedule->registration?>">    


 <input type="hidden" name="navlog" value="1"> 
<input type="hidden" name="selcal" value="GR-FS">    

<input type="hidden" name="planformat" value="lido">

Have a look at the default template and compare it with yours 

Share this post


Link to post
Share on other sites

ok on the default Template thats ok. 

 

Thats my Briefing on the skin OceanBlue

 

Quote

<br /><br />
<script src="http://skyvector.com/linkchart.js"></script>
<input type="button" onclick="simbriefsubmit('http://www.test.lausitz-aircargo.de/index.php/SimBrief');" style="font-size:20px" value="Generate Simbrief">
<br /><br />
<table width="98%" align="center" cellpadding="4">
    <!-- Flight ID -->
    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td colspan="2">Flight</td>
    </tr>
    <tr>
        <td colspan="2">
        <?php echo $schedule->code.$schedule->flightnum; ?>
        </td>
    </tr>

    <tr  style="background-color: #2f70a9; color: #eeeeee;">
        <td>Departure</td>
        <td>Arrival</td>
    </tr>

    <tr>
        <td width="50%" ><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br />
            <a href="https://pilotweb.nas.faa.gov/geo/icaoRadius.html?icao_id=<?php echo $schedule->depicao?>&radius=2"
                target="_blank">Click to view NOTAMS</a>
        </td>
        <td width="50%" ><?php echo "{$schedule->arrname} ($schedule->arricao)"; ?><br />
            <a href="https://pilotweb.nas.faa.gov/geo/icaoRadius.html?icao_id=<?php echo $schedule->arricao?>&radius=2"
                target="_blank">Click to view NOTAMS</a></td>
    </tr>

    <!-- Times Row -->
    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td>Departure Time</td>
        <td>Arrival Time</td>
    </tr>
    <tr>
        <td width="50%" ><?php echo "{$schedule->deptime}"; ?></td>
        <td width="50%" ><?php echo "{$schedule->arrtime}"; ?></td>
    </tr>

    <!-- Aircraft and Distance Row -->
    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td>Aircraft</td>
        <td>Distance</td>
    </tr>
    <tr>
        <td width="50%" ><?php echo "{$schedule->aircraft}"; ?></td>
        <td width="50%" ><?php echo "{$schedule->distance}"; ?></td>
    </tr>

    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td>Departure METAR</td>
        <td>Arrival METAR</td>
    </tr>
    <tr>
        <td width="50%" ><div id="<?php echo $schedule->depicao; ?>" class="metar">Getting Airport METAR</div> <br />
            <a href="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/weather" target="_blank">
            View Weather Details</a>
        </td>
        <td width="50%" ><div id="<?php echo $schedule->arricao; ?>" class="metar">Getting Airport METAR</div><br />
            <a href="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/weather" target="_blank">
            View Weather Details</a></td>
    </tr>

    <!-- Route -->
    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td colspan="2">Route</td>
    </tr>
    <tr>
        <td colspan="2">
        <?php
        # If it's empty, insert some blank lines
        if($schedule->route == '')
        {
            echo '<br /> <br /> <br />';
        }
        else
        {
            echo strtoupper($schedule->route);
        }
        ?>
        </td>
    </tr>

    <!-- Notes -->
    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td colspan="2">Notes</td>
    </tr>
    <tr>
        <td colspan="2" style="padding: 6px;">
        <?php
            # If it's empty, insert some blank lines
            if($schedule->notes == '')
            {
                echo '<br /> <br /> <br />';
            }
            else
            {
                echo "{$schedule->notes}";
            }
        ?>
        </td>
    </tr>


</table>

<table width="98%" align="center" padding="2">
<tr style="background-color: #2f70a9; color: #eeeeee; padding: 5px;">
    <td>Additional Data</td>
</tr>
<tr>
    <td><a href="http://flightaware.com/analysis/route.rvt?origin=<?php echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>">View recent IFR Routes data</a></td>
</tr>
</table>

<h3>Procedures and Information</h3>
<table width="98%" align="center">

    <tr style="background-color: #2f70a9; color: #eeeeee;">
        <td>Charts for <?php echo $schedule->depicao?></td>
        <td>Charts for <?php echo $schedule->arricao?></td>
    </tr>
    <tr align="center">
        <td width="50%" valign="top">
            <a href="http://www.airnav.com/airport/<?php echo $schedule->depicao?>#ifr" target="_blank">
            <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png"
                width="387px" height="594px" alt="No chart available" /></a>
        </td>
        <td width="50%" valign="top">
            <a href="http://www.airnav.com/airport/<?php echo $schedule->arricao?>#ifr" target="_blank">
            <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png"
                width="387px" height="594px" alt="No chart available" /></a>
        </td>

    </tr>
</table>

<h3>Weather</h3>
<div align="center">
    <p><img src="http://flightaware.com/resources/wx/us_depiction.gif" /></p>
    <p><img src="http://flightaware.com/resources/wx/surface_analysis.gif" /></p>
    <p><img src="http://flightaware.com/resources/wx/national_radar.gif" /></p>
    <p><img src="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif" /></p>
    <p><img src="http://flightaware.com/resources/wx/severe_outlook_day_1.gif" /></p>
    <a href="http://flightaware.com/resources/weather_maps/" target="_blank">View additional weather graphs</a>
</div>
<div align="right" style="font-size: small;">Data Courtesy of <a href="http://flightaware.com" target="_new">FlightAware</a></div>
<br />

 

 

Share this post


Link to post
Share on other sites

compare those templates and see what is missing for example all the hidden values are missing

 

Share this post


Link to post
Share on other sites
On 3/14/2020 at 8:43 PM, djtiger76 said:

Hey all,
Vangelis is a busy person, ive already asked but its like 1am local there. 

We got the OFP to work, however, it does not show up in the skin. It opens a new page without the skin.

Anyone know how to make this:

1OZCL9.jpg

 

Show up in my skin with the header, footer and side bar?
M7rcQV.jpg

 

Thanks

 

Hello guys!

 

I'm having this same issue...

 

SimBrief integration is working correctly... But the plan is being generated on a new tab, not into my schedules page...

 

Anyone knows how to solve it?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...