Jump to content

Route Map


piper338

Recommended Posts

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;?>

Link to comment
Share on other sites

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">

Link to comment
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...