Werbeblock unter Logo [war: Brauche Hilfe]
Hallo Jörg, brauche nochmals deine Hilfe. Ich möchte einen Werbeblock unter dem Logo einbringen. Leider erscheint der Werbeblock jetzt (benutzdefinierte Suche) über dem Logo. Es sollte genau andersrum sein. 1. Logo, 2. Werbung. Was muss ich in der head.php ändern ?
www.silkes-buecherforum.de
Gruss Silke
www.silkes-buecherforum.de
Gruss Silke
03.11.2008 14:32
Hallo Silke,
dazu musst du den Werbeblock unterhalb dieser Zeile unterbringen:
Der HTML-Code muss dabei zwischen einem "?>" und einem "<?php" stehen:
dazu musst du den Werbeblock unterhalb dieser Zeile unterbringen:
echo '<h1>', $hdtitle4html, '</h1>', "\n";
Der HTML-Code muss dabei zwischen einem "?>" und einem "<?php" stehen:
?>
<!-- hier den HTML-Code fuer den Werbeblock einfuegen -->
<?php
03.11.2008 16:25
Hallo Jörg, die Werbung steht in der head.php unter dieser Zeile, wie du es beschrieben hast, erst das Logo und dann die Werbung, aber es erscheint trotzdem falsch herum.
Gruss Silke
Gruss Silke
03.11.2008 19:37
Dann ist da irgendwo anders noch der Wurm drin. Kopier mal den Inhalt deiner head.php hier rein.
03.11.2008 20:00
Hallo Jörg, hier ist der Inhalt der head.php.
<?php
header('Expires: ' . $expires);
header('Last-Modified: ' . $lastmodified);
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Content-Type: ' . $mimetype . '; charset=' . $charset);
header('Content-Style-Type: text/css');
if ($b_ie6 === false) {
echo '<?xml version="1.0" encoding="', $charset, '" ?', '>', "\n";
}
?>
<!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="<?php echo $lang ?>" lang="<?php echo $lang ?>">
<head>
<title>Silkes - Buecher - Forum - Startseite</title>
<?php
if ($hdrefreshurl != false) {
$hdrefresh = $hdrefreshtime . '; URL=' . $hdrefreshurl;
echo '<meta http-equiv="refresh" content="', $hdrefresh, '" />', "\n";
}
if ($hddescription4html != false) {
echo '<meta name="description" content="', $hddescription4html, '" />', "\n";
}
if ($hdkeywords4html != false) {
echo '<meta name="keywords" content="', $hdkeywords4html, '" />', "\n";
}
?>
<meta name="abstract" content="Silkes Buecher Forum, alles über Bücher" />
<meta name="copyright" content="Silke Olsen" />
<meta name="revisit-after" content="1 Day" />
<meta name="description" content="Buecherforum, Bücher, Buecher, V.C. Andrews, Romane, Lieblingsbücher, Alles rund um Bücher,
Eigene Werke und selbst geschriebene Referate, vom Thriller über Krimis, und Horrorbücher, Wahre Geschichten,
Besteller" />
<meta name="keywords" content=" Forum, Buecherforum, V.C. Andrews, Thriller, Romane, Sachbücher, Kochbücher, Backbücher,
Krimi, Horror, Geschichte, Eigene Werke, Referate, Buchvorstellungen, V.C.Andrews" />
<meta name="author" content="Silke Olsen" />
<meta name="publisher" content="Silke Olsen" />
<meta name="content-language" content="de" />
<meta name="robots" content="index, follow" />
<link rel="stylesheet" media="screen" href="<?php echo $styleurl ?>?v=<?php echo $stu3v ?>" />
<link rel="stylesheet" media="print" href="<?php echo $printstyleurl ?>?v=<?php echo $stu3v ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php echo $bpath ?>/feeds/atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<?php echo $gfpath ?>feeds/1-0.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo $gfpath ?>feeds/2-0.xml" />
<?php
if ($faviconurl != '') {
echo '<link rel="shortcut icon" href="' . $faviconurl . '" />', "\n";
}
if ($externalwindow == 1) {
echo '<script type="text/javascript" src="', $gfpath, 'scripts/external.js"></script>', "\n";
}
if ($b_ie6 === true && $b_multisubmits === true) {
echo '<script type="text/javascript" src="', $gfpath, 'scripts/iebuttonfix.js"></script>', "\n";
}
?>
</head>
<?php
echo '<body';
if ($start == 1) {
echo ' class="start"';
}
echo '>', "\n";
?>
<div id="content">
<?php
if ($start == 0) {
echo '<p id="top"><a href="', $gfpath, '">', $gfname4html, '</a>';
if ($crumb24html != '') {
echo ' > <a href="', $crumb2url, '">', $crumb24html, '</a>';
if ($crumb34html != '') {
echo ' > <a href="', $crumb3url, '">', $crumb34html, '</a>';
}
}
echo '</p>', "\n";
}
if ($start == 1) {
$hdtitle4html = '<img src="http://www.silkes-buecherforum.de/images/silkesbuecherforumlogo.JPG" alt="" />';
}
?>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.silkes-buecherforum.de" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-0927054551310208:hy4x7eo98gq" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Suche" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Benutzerdefinierte Suche
</div>
</div>
<?php
?>
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<?php
echo '<h1>' , $hdtitle4html, '</h1>', "\n";
if ($hddescription4html != '') {
echo '<p>', $hddescription4html, '</p>', "\n";
}
if (isset($submenu[0]) || isset($submenu[2])) {
echo '<p class="submenu">';
if (isset($submenu[0])) {
$overallsubmenu = $submenu[0];
}
if (isset($submenu[0]) && isset($submenu[2])) {
$overallsubmenu .= ' | ';
}
if (isset($submenu[2])) {
$overallsubmenu .= $submenu[2];
}
echo $overallsubmenu;
echo '</p>', "\n";
}
if ($message4html != '') {
?>
<div class="message">
<p><?php echo $message4html ?></p>
</div>
<?php
}
?>
Gruss Silke
<?php
header('Expires: ' . $expires);
header('Last-Modified: ' . $lastmodified);
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Content-Type: ' . $mimetype . '; charset=' . $charset);
header('Content-Style-Type: text/css');
if ($b_ie6 === false) {
echo '<?xml version="1.0" encoding="', $charset, '" ?', '>', "\n";
}
?>
<!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="<?php echo $lang ?>" lang="<?php echo $lang ?>">
<head>
<title>Silkes - Buecher - Forum - Startseite</title>
<?php
if ($hdrefreshurl != false) {
$hdrefresh = $hdrefreshtime . '; URL=' . $hdrefreshurl;
echo '<meta http-equiv="refresh" content="', $hdrefresh, '" />', "\n";
}
if ($hddescription4html != false) {
echo '<meta name="description" content="', $hddescription4html, '" />', "\n";
}
if ($hdkeywords4html != false) {
echo '<meta name="keywords" content="', $hdkeywords4html, '" />', "\n";
}
?>
<meta name="abstract" content="Silkes Buecher Forum, alles über Bücher" />
<meta name="copyright" content="Silke Olsen" />
<meta name="revisit-after" content="1 Day" />
<meta name="description" content="Buecherforum, Bücher, Buecher, V.C. Andrews, Romane, Lieblingsbücher, Alles rund um Bücher,
Eigene Werke und selbst geschriebene Referate, vom Thriller über Krimis, und Horrorbücher, Wahre Geschichten,
Besteller" />
<meta name="keywords" content=" Forum, Buecherforum, V.C. Andrews, Thriller, Romane, Sachbücher, Kochbücher, Backbücher,
Krimi, Horror, Geschichte, Eigene Werke, Referate, Buchvorstellungen, V.C.Andrews" />
<meta name="author" content="Silke Olsen" />
<meta name="publisher" content="Silke Olsen" />
<meta name="content-language" content="de" />
<meta name="robots" content="index, follow" />
<link rel="stylesheet" media="screen" href="<?php echo $styleurl ?>?v=<?php echo $stu3v ?>" />
<link rel="stylesheet" media="print" href="<?php echo $printstyleurl ?>?v=<?php echo $stu3v ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php echo $bpath ?>/feeds/atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<?php echo $gfpath ?>feeds/1-0.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo $gfpath ?>feeds/2-0.xml" />
<?php
if ($faviconurl != '') {
echo '<link rel="shortcut icon" href="' . $faviconurl . '" />', "\n";
}
if ($externalwindow == 1) {
echo '<script type="text/javascript" src="', $gfpath, 'scripts/external.js"></script>', "\n";
}
if ($b_ie6 === true && $b_multisubmits === true) {
echo '<script type="text/javascript" src="', $gfpath, 'scripts/iebuttonfix.js"></script>', "\n";
}
?>
</head>
<?php
echo '<body';
if ($start == 1) {
echo ' class="start"';
}
echo '>', "\n";
?>
<div id="content">
<?php
if ($start == 0) {
echo '<p id="top"><a href="', $gfpath, '">', $gfname4html, '</a>';
if ($crumb24html != '') {
echo ' > <a href="', $crumb2url, '">', $crumb24html, '</a>';
if ($crumb34html != '') {
echo ' > <a href="', $crumb3url, '">', $crumb34html, '</a>';
}
}
echo '</p>', "\n";
}
if ($start == 1) {
$hdtitle4html = '<img src="http://www.silkes-buecherforum.de/images/silkesbuecherforumlogo.JPG" alt="" />';
}
?>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.silkes-buecherforum.de" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-0927054551310208:hy4x7eo98gq" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Suche" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Benutzerdefinierte Suche
</div>
</div>
<?php
?>
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<?php
echo '<h1>' , $hdtitle4html, '</h1>', "\n";
if ($hddescription4html != '') {
echo '<p>', $hddescription4html, '</p>', "\n";
}
if (isset($submenu[0]) || isset($submenu[2])) {
echo '<p class="submenu">';
if (isset($submenu[0])) {
$overallsubmenu = $submenu[0];
}
if (isset($submenu[0]) && isset($submenu[2])) {
$overallsubmenu .= ' | ';
}
if (isset($submenu[2])) {
$overallsubmenu .= $submenu[2];
}
echo $overallsubmenu;
echo '</p>', "\n";
}
if ($message4html != '') {
?>
<div class="message">
<p><?php echo $message4html ?></p>
</div>
<?php
}
?>
Gruss Silke
05.11.2008 19:32
Hallo Silke,
zuerst diese Zeile:
... und danach erst den Werbeblock:
zuerst diese Zeile:
echo '<h1>' , $hdtitle4html, '</h1>', "\n";
... und danach erst den Werbeblock:
?>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.silkes-buecherforum.de" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-0927054551310208:hy4x7eo98gq" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Suche" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Benutzerdefinierte Suche
</div>
</div>
<?php
?>
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<?php
05.11.2008 20:59
Hallo Jörg, jetzt hab ich es richtig. Vielen Dank für alles.
Gruss Silke
Gruss Silke
06.11.2008 13:19
Nur Mitglieder können in diesem Forum Antworten schreiben.



