Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by CarlosEduardo2409

  1. On 12/11/2015 at 9:19 AM, danydj96 said:

    Hello again,

    Now it is working, I have rechecked eveything. When I click on Generate SimBrief and it charges, then the webpage remains charging all the time.

    Regards,

     

    How did you manage it?

  2. 52 minutes ago, web541 said:

    Você precisará primeiro enviar um e-mail para o Simbrief para obter sua chave da API, mas o resto é bastante simples. Sim, você precisará do módulo Simbrief para que isso funcione.

    Consulte estas instruções claras para fazê-lo funcionar  https://github.com/vangelisb/Simbrief/tree/master/phpvms

     

    I followed the steps all right but this one giving error. But I still do not have the API I've requested, is that why this is giving this error? And where is this layout.tpl and core_htmlhead.tpl? Mine is .php

    I'm using your crew center skin. @web541

    Error: http://prntscr.com/go3o9d / http://prntscr.com/go3of3

    I'm sorry if I wrote wrong, because I'm Brazilian. I'm using google translator
  3. @ahughes3 @Vangelis @web541

    What do I have to download from Vangelis' SimBrief? Can you do a small text tutorial? Because it has modules, templates, js, schedule_brienfing, and I do not know if it has to put everything ... I also do not know what to edit and also the template is in .tpl mine is .php

    And what do you have to add i the layout.php file? I saw that vangelis had spoken on the front page
  4. On 01/10/2016 at 7:03 AM, ShrikarG said:

    Hello , I don't know if this bug is just with me or with everyone :- When I edit any Info in my Profile , It doesnt get saved. It stays with previous values itself.

    Hence I have modified the code between (approx) line 17 to line 109 in profileedit.php/tpl

    (after the code "<form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data">)

    Edited Code :

     

    
    <dl>
    <label>Name</label>
    <dd><input type="text" class="form-control" disabled placeholder="<?php echo $pilot->firstname . ' ' . $pilot->lastname;?>"></dd>
    
    <label>Airline</label>
    <dd><input type="text" class="form-control" disabled placeholder="<?php echo $pilot->code?>">
    <p>To request a change, contact your admin</p>
    </dd>
    
    <label>Email Address</label>
    
    <dd><input type="text" class="form-control" name="email" value="<?php echo $pilot->email;?>" />
    <?php
    if(isset($email_error) && $email_error == true)
    echo '<p class="error">Please enter your email address</p>';
    ?>
    </dd>
    
    <label>Location</label>
    <dd><select name="location" class="form-control">
    <?php
    foreach($countries as $countryCode=>$countryName)
    {
    if($pilot->location == $countryCode)
    $sel = 'selected="selected"';
    else
    $sel = '';
    
    echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
    }
    ?>
    </select>
    <?php
    if(isset($location_error) && $location_error == true)
    echo '<p class="error">Please enter your location</p>';
    ?>
    </dd>
    
    <label>Signature Background</label>
    <dd><select name="bgimage" class="form-control">
    <?php
    foreach($bgimages as $image)
    {
    if($pilot->bgimage == $image)
    $sel = 'selected="selected"';
    else
    $sel = '';
    
    echo '<option value="'.$image.'" '.$sel.'>'.$image.'</option>';
    }
    ?>
    </select>
    </dd>
    
    
    <?php
    if($customfields) {
    foreach($customfields as $field) {
    echo '<dt>'.$field->title.'</dt>
     <dd>';
    
    if($field->type == 'dropdown') {
    $field_values = SettingsData::GetField($field->fieldid);
    $values = explode(',', $field_values->value);
    
    
    echo "<select name=\"{$field->fieldname}\">";
    
    if(is_array($values)) {
    
     foreach($values as $val) {
     $val = trim($val);
    
     if($val == $field->value)
     $sel = " selected ";
     else
     $sel = '';
    
     echo "<option value=\"{$val}\" {$sel}>{$val}</option>";
     }
    }
    
    echo '</select>';
    } elseif($field->type == 'textarea') {
    echo '<textarea name="'.$field->fieldname.'" class="customfield_textarea">'.$field->value.'</textarea>';
    } else {
    echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />';
    }
    
    echo '</dd>';
    }
    }
    ?>
    
     

     

    Please NOTE : Do not edit the code unnecessarily. Edit the code only if the changes made in Edit Profile page are not reflected after saving it. The above code works for me. I am using PHPVMS v5.5

    @ShrikarG not worked pls help-me, send all code

×
×
  • Create New...