Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
CSS / PHP problem
Hello,
I need help with some code..
Here's my site:
http://autourdebeauvoir.net/vanilla/index.php
Here is the changed code in the head.php page:
<?php
// Note: This file is included from the library/Framework/Framework.Control.Head.php class.
$HeadString = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$this->Context->GetDefinition('XMLLang').'">
<head>
<title>'.$this->Context->Configuration['APPLICATION_TITLE'].' - '.$this->Context->PageTitle.'</title>
<link rel="shortcut icon" href="'.$this->Context->StyleUrl.'favicon.ico" />';
if (is_array($this->StyleSheets)) {
while (list($Key, $StyleSheet) = each($this->StyleSheets)) {
$HeadString .= '
<link rel="stylesheet" type="text/css" href="'.$StyleSheet['Sheet'].'"'.($StyleSheet['Media'] == ''?'':' media="'.$StyleSheet['Media'].'"').' />';
}
}
if (is_array($this->Scripts)) {
$ScriptCount = count($this->Scripts);
$i = 0;
for ($i = 0; $i < $ScriptCount; $i++) {
$HeadString .= '
<script type="text/javascript" src="'.$this->Scripts[$i].'"></script>';
}
}
if (is_array($this->Strings)) {
$StringCount = count($this->Strings);
$i = 0;
for ($i = 0; $i < $StringCount; $i++) {
$HeadString .= $this->Strings[$i];
}
}
$HeadString .= '
<link href="../../beauvoir/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.Style1 {font-size: 9px}
.Style2 {font-family: "Trebuchet MS"}
.Style2 {font-size: 10px}
.Style4 {font-size: 2em}
.justify {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color: #333333; text-align: justify}
</style>';
$BodyId = "";
if ($this->BodyId != "") $BodyId = ' id="'.$this->BodyId.'"';
echo $HeadString . '</head>
<body'.$BodyId.' '.$this->Context->BodyAttributes.'>
<div id="sitebox">
<div id="header">
<h1 class="Style4">autour de Beauvoir </h1>
</div>
<div id="navigation">
<div align="right"><span class="Style1 Style2"> <a href="../beauvoir/index.html">accueil</a> | <a href="../beauvoir/vie.htm">vie</a> | <a href="../beauvoir/ecrits.htm">écrits</a> | <a href="../beauvoir/articles.htm">articles</a> | <a href="../beauvoir/photos.htm">photos</a> | <a href="../beauvoir/sons.htm">sons</a> | <a href="../beauvoir/videos.htm">videos</a> | <a href="../beauvoir/liens.htm">liens</a> |<a href="../vanilla/index.php"> communauté</a> | <a href="../beauvoir/moteured.php">rechercher</a> | <a href="../beauvoir/contact.htm">contact</a></span></div>
</div>
<div id="picture">
<script language="JavaScript">
<!--
image = new Array
image[1]="../../beauvoir/ban/1.jpg"
image[2]="../../beauvoir/ban/2.jpg"
image[3]="../../beauvoir/ban/3.jpg"
image[4]="../../beauvoir/ban/4.jpg"
image[5]="../../beauvoir/ban/5.jpg"
image[6]="../../beauvoir/ban/6.jpg"
random_num = (Math.round((Math.random()*5)+1))
document.write("<img src=\"" + image[random_num] + "\">");
-->
</script>
</div>';
?>
The division names "sitebox" doesn't close in all the pages, and I can't figure out why. The sitebox should go all to the end of the page, as it does index.php page. But in the categories page, the box doesn't close!
http://autourdebeauvoir.net/vanilla/categories.php
Can you help me? :(
0
This discussion has been closed.
Comments