Jump to content

Galihom

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Galihom

  1. I used for few hours the initial skin : crystal and I didn't modify it :/

    <?php

    /**

    *

    * STOP!!!!!!!!

    *

    * Are you editing the crystal skin directly?

    * DON'T

    *

    * Copy and rename the crystal folder. Otherwise it'll get

    * overwritten in an update.

    *

    * Also, READ THE DOCS

    *

    * http://www.phpvms.net/docs/skinning

    *

    */

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

    <head>

    <meta http-equiv="X-UA-Compatible" content="IE=7">

    <title><?php echo $page_title; ?></title>

    <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" />

    <?php

    /* This is required, so phpVMS can output the necessary libraries it needs */

    echo $page_htmlhead;

    ?>

    <?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

    </head>

    <body>

    <?php

    /* This should be the first thing you place after a <body> tag

    This is also required by phpVMS */

    echo $page_htmlreq;

    ?>

    <div id="body">

    <div id="innerwrapper">

    <div id="topBanner">

    <div id="topLogin">

    <?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 */

    ?>

    </div>

    </div>

    <div id="topNav">

    <ul class="nav">

    <?php

    /* You can modify this template into a table or something, by default

    it's list elements inside of a UL. Here's a link with some info:

    http://articles.site...tips-tricks-4/2

    */

    Template::Show('core_navigation.tpl');

    ?>

    </ul>

    </div>

    <div id="bodytext">

    <?php

    /* This will insert all of the "meat" of the page in there - the template

    which is generated, depending on which page you're on. To change these

    templates, check out the docs on the site. They're under the /core/templates

    folder, and to change them, copy them into the folder of your skin (the

    folder this file is in right now.

    */

    echo $page_content;

    ?>

    </div>

    </div>

    <div id="footer">

    <p>copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><br />

    <!-- Please retain this!! It's part of the phpVMS license. You must display a

    "powered by phpVMS" somewhere on your page. Thanks! -->

    <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a></p>

    </div>

    </div>

    </body>

    </html>

  2. Hi !

    I've a little problem when I logged in my website : if we're logged in and we go in an other page a message appears :

    An Error Was Encountered

    Please login first

    (On the right-top pilote's profile is remplaced by case for login) and when I try to log again I've this message : You are already logged in with pilote's profile in right-top...

    For example : I can't access to Admin panel after log in...

    Thanks

  3. Thanks Tom ! Now I've www behind my website adress but... now the issues is come with "www"...

    I don't understand really, yesterday with website adress and www it worked...

    I must be inactive by comment this code in order to use the VA, really don't understand

    if(isset($_GET['template']) && $_GET ['template'] != ''){

    $_SESSION['template'] = $_GET['template'];

    define('CURRENT_SKIN',$_GET['template']);

    }

    if(isset($_SESSION['template']) && $_SESSION['template'] != '')

    {

    define('CURRENT_SKIN',$_SESSION['template']);

    }

    print_r(CURRENT_SKIN);

    print_r($_SESSION['template']);

    already this error with the precedent code uncomment :

    Notice: The template file "/home/airlibva/www//lib/skins/ocean_blue_french/action.php/acars/data/header.tpl" doesn't exist in /home/airlibva/www/core/classes/TemplateSet.class.php on line 248

    EDIT : I delete our actual skin, we have an other problem more important to corrige...

    EDIT: Login problem solved, always the skin problem.

  4. Exactly, I don't understand : I don't do anything and now the issues is come back !

    Notice: The template file "/home/airlibva/www//lib/skins/ocean_blue_french/action.php/acars/data/header.tpl" doesn't exist in /home/airlibva/www/core/classes/TemplateSet.class.php on line 248

    The issues appears when I use : http://www.mysite.fr but when I use http://mysite.fr?template=folder1 ( or 2), all is right

  5. I added it like this and it works :

    session_start();

    if(isset($_GET['template']) && $_GET['template'] != ''){

    $_SESSION['template'] = $_GET['template'];

    define('CURRENT_SKIN',$_GET['template']);

    }

    if(isset($_SESSION['template']) && $_SESSION['template'] != '')

    {

    define('CURRENT_SKIN',$_SESSION['template']);

    }

    print_r(CURRENT_SKIN);

    Thanks a lot !

    Can you explain me why the first time was failed ?

  6. Hi Tom, thank's for your answer, no I didn't to. I just added in /core/codon.config.php this :

    session_start();

    if(isset($_GET['template']) && $_GET['template'] != ''){

    $_SESSION['template'] = $_GET['template'];

    define('CURRENT_SKIN',$_GET['template']);

    }

    if(isset($_SESSION['template']) && $_SESSION['template'] != '')

    {

    define('CURRENT_SKIN',$_SESSION['template']);

    }

    Then I created a second skin's folder and make link to there in my core_navigation.php like this :

  7. Hi,

    Firstly, I should like to apologise for my English ! I wanted to propose my Virtual airline's website in different languages so with forum's explanation I did like this : http://forum.phpvms....ins/#entry22043

    I started to translate and after a bit a problem occured, I tried to resolve it by myself without solution and I searched an alternative on forum where the same problem is exposed but the solution isn't published.

    See you here :http://forum.phpvms....-two-languages/

    My issue :

    Notice: The template file "/home/airlibva/www//lib/skins/ocean_blue/action.php/acars/data/header.tpl" doesn't exist in /home/airlibva/www/core/classes/TemplateSet.class.php on line 248

    Maybe the problem is here :

    /home/airlibva/www//lib/skins/ocean_blue/action.php/acars/data/header.tpl

    Please, Do You've any idea where is the trouble ?

    Thanks a lot

×
×
  • Create New...