Jump to content

piper338

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by piper338

  1. In your local.config.php change Config::Set('DISABLE_SCHED_ON_BID', true); to Config::Set('DISABLE_SCHED_ON_BID', false);

    this will make the flight stay on the schedule even after a pilot has bid on it.  Someone else can correct me if I am wrong.

  2. Hey Nabeel,

    The core_htmlhead.tpl is the original I haven't overridden.  Now I did edit my header.tpl it looks like this.  I assume this is my problem?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $title ?></title>
    <link href="<?php echo SITE_URL?>/lib/skins/valujet2/images/site.css" rel="stylesheet" type="text/css" media="all" />
    <?php
       Template::Show('core_htmlhead.tpl');
    ?>
    </head>
    <body>
    <?php
       Template::Show('core_htmlreq.tpl');
    ?>
    <div id="container">
    <div id="container2">
      <div id="nav">
    
    		<?php 
       Template::Show('core_navigation.tpl');
    ?>		
    
    </div>
    <div id="header"> 
    <?php 
    	/* Only show this login form if they're logged in */
    	if(Auth::LoggedIn() == false)
    	{ ?>
            
      <div id="member">
    
    <form name="loginform" method="post" action="<?php echo url('/login');?>">
    <?php echo "<?xml version='1.0'?>"; ?>
    <?php
    if(isset($message))
    echo '<p class="error">'.$message.'</p>';
    ?>
    
    <input name="email" type="text" value="VJA" size="6" />
    <input name="password" type="password" value="" size="8" />
    
    	<input class="login" type="submit" name="submit" value="Log In" />
    <input class="hidden" type="hidden" name="redir" value="index.php/profile" />
    <input class="hidden" type="hidden" name="action" value="login" />
    </form>
    <p class="buttom"></p>
    </div>
    <?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, this gets their full pilot id, formatted properly */
    		$pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
    	?>
    
    
    	<?php
    	} /* End the else */
    	?>
    
    </div>
    <div id="top-img"><img src="<?php echo SITE_URL?>/lib/skins/valujet2/images/top-img.png" /></div>
    <div id="contentwrapper">
      <div id="main-conent">

  3. Pardon my ignorance, I tried changing a few things to the core_htmlhead.tpl to no avail, could someone please help me out?

    Here is what the file looks like now, what do i change the var base url?

    <script type="text/javascript">
    var baseurl = "<?php echo SITE_URL;?>";
    var geourl = "<?php echo GEONAME_URL; ?>";
    </script>
    <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" />
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>">
    <?php
    if(GOOGLE_KEY!='') {
    echo '<script src="http://maps.google.com/maps?file=api&v=2&key='.GOOGLE_KEY.'" type="text/javascript"></script>';
    }
    
    //<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    $files = array(	'jquery.min.js',
    			'jquery.form.js',
    			'jquery-ui.js');
    
    # Build a condensed version of the above files
    #	Suck 'em all into one file, reduce the number of HTTP requests
    #	May also be cached
    $condenser = new CodonCondenser();
    $condenser->SetOptions(SITE_ROOT.'/lib/js', SITE_URL.'/lib/js', 'js', '');
    $cache_url = $condenser->GetCondensedFile($files, 'jquery-front.js', true);
    ?>
    
    <!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>-->
    <script type="text/javascript" src="<?php echo $cache_url?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script>
    
    <?php echo $MODULE_HEAD_INC;?>

  4. I think I saw this on the forum somewhere, but I can't find it so sorry if it's a repeat. 

    I created a new group and gave them limited access to the admin panel,  however when they log in they can not see the admin link in the nav bar like the full admins can. They can access the admin panel if they type it in their browsers address window.

  5. Trying to display some stats on my main page, everything returns well except for the following. It seems like any thing requiring a SUM isn't displaying.

    <?php echo StatsData::TotalPaxCarried(); ?>
    <?php echo StatsData::TotalFuelBurned(); ?>
    <?php echo StatsData::TotalMilesFlown(); ?>
    

    I checked the actual database and there is information in each table

  6. Thanks guys I continue to learn.

    New problem haha..

    I am making a new design, it's a bit sloppy cause I really don't know what I am doing.

    Here it is http://flyvva.org/

    The problem is I need the height to be at least 900px for the Background to show up correctly, however if I set the height to a fixed width Content that extends greater than 900px is not displayed correct.

    So the question is. Is there a way to have the <DIV> Height be at least 900px the expand if it fills up? Or some kind of work around for this.

    I drew my design up and it has been a nightmare for a beginner to code, lol.

    Thanks,

    Chad C.

  7. Hey guys, I'm new to most of this stuff I am really starting to enjoy website creation. I've been learning CSS and the use of Divs. to me I love the designing without tables.

    I drew a website up tonight the background is a slight gradient and I'm trying to have a transparent content box.  My problem is the gradient It cant Repeat-Y because the backgrounds wont match.  And I tried making a .Gif but it didn't work, and I hear some browsers do not support .png's right now.

    Here is the start of my design, what is the best way to make content boxes like I am attempting to do? I've seen it don't with 5 Divs, top, bottom, left, right and center. Mine only had 3 top center and bottom, then I used padding to align the text.

    Here is the beginning of what I am working on.

    http://i34.tinypic.com/2l9lcw0.jpg

    Thanks,

    Chad C.

×
×
  • Create New...