Thread Author: depp1234
Thread ID: 951
Thread Info
Es gibt 19 Beiträge zu diesem Thema, und es wurde 2729 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Banner im header
depp1234
Hallo!

Ich habe mir das banner_pannel runter geladen und da ist auch eine Anleitung dabei wie man das im header anmzeigen lassen kann aber ich weiß nicht wo ich den code einfügen muss. Kann mir bitte jemand weiterhelfen? Wäre super!

Vielen Dank!!



Der code wo dabei ist:


Der gesammte unten aufgelist muss zwischen dem Body-End sprich dem >(\n";) und dem ?> liegen.

Code 

//code start

//start banner replacement code
if (file_exists(INFUSIONS."banner_panel/view.php"))
{
   include INFUSIONS."banner_panel/view.php";
}
else
{
$banner_display = '';
}
$input = '<table width="100%" cellpadding="0" cellspacing="0">
<tr>
   <td><img src="'.THEME.$settings['sitebanner'].'" alt="'.$settings['sitename'].'" title="'.$settings['sitename'].'"></td>
   <td align="right">'.$banner_display.'</td>
</tr>
</table>';
//end banner replacement code


//replacement
render_header($input);
//commented original code
//render_header("<img src='".THEME.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");

//code end

?>


Bearbeitet von DjMicha1985 am 05.04.2009 um 13:19
 
SC-Ad-Bot
 
Hasi98
ich würde sagen entweder im Design (theme.php) oder in der maincore (.php - weil man die überall einbindet)
 
depp1234
Das ist ja das problem habe oben eh die anleitung eingefügt... Da steht eben nichts wo ich das hin tun muss.. leider. Außer ich über sehe das oben.


Auf dieser seite ist ja auch eine werbung oben rechts im header wie habt ihr denn das hinbekommen? :-)
Bearbeitet von depp1234 am 05.04.2009 um 11:19
 
Hasi98
Zitat MarcusG schrieb:
allerdings gibt es eine Extra Datei um eigenen Code im Header zu platzieren:

includes\header_includes.php


vlt. hilft das ja weiter.
 
depp1234
Nein leider nicht dann baut er die seite gar nicht mehr auf wenn ich den code da einfüge.
 
Hasi98
dann versuche es halt mit den in diesem thread genannten datein.
schon mal was von ausprobieren gehört?
 
DjMicha1985
Zitat depp1234 schrieb:
Nein leider nicht dann baut er die seite gar nicht mehr auf wenn ich den code da einfüge.


häng mir ma deine theme.php an bitte, weil eigentlich müsste es ja in die theme.php also als banner über den header.
 
Hasi98
man kann den banner eigl. auch einfach i-wo unten in der theme .php einfügen und via css mit den reservierten Klassen left und top oder right un bottom positionieren.
 
depp1234
Hier wäre sie. Vielen dank!

Code 

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }



$font_mode = TRUE;
define("THEME_WIDTH", "900px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";
require_once THEME."core.php";


function render_page($license=false) {




if(TRUE & FALSE){ echo "neki";}

   global $settings, $main_style, $font_mode;
   //main frame
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
   //header
   echo "<table>
      

      <tr>
         <td class='header'><a href='".BASEDIR."index.php' style='border:0'><img src='".THEME."logo.png' alt='' style='border:0' /></a></td>
      </tr>
      </table>";   
   //navigation
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='nav_l'></td>
         <td class='nav_c'>".navigacija()."</td>

         <td class='nav_c' align='right'><div id='search'><ul><li><a href='".BASEDIR."search.php'><span>Suche</span></a></li></ul></div></td>
         <td class='nav_r'></td>
      </tr>
      </table>";
   echo newline(10);
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_top'></td>
         <td style='border-top: 1px solid #CDCEBB; height: 9px; background: #FFF;'></td>
         <td class='right_top'></td>
      </tr>
      <tr>
         <td style='border-left: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
         <td>";
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "</td>
         <td style='border-right: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
      </tr>
      <tr>
         <td class='left_bottom'></td>
         <td style='border-bottom: 1px solid #CDCEBB; text-align: right; height: 10px; background: #FFF;'><span style='font-size: 7px'> <a href=''></a></span></td>
         <td class='right_bottom'></td>
      </tr>
      </table>";
   
   echo newline(10);
   //footer
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='foot_l'></td>
         <td class='foot_copyright'  align='center'>".showcounter()." <br><br> Copyright © 2004-2009 Megafete.tk <br><br> ".showcopyright()."</td>
         <td class='foot_r'></td>
      </tr>
      </table>";
   //main frame
   echo "</td>\n</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr' align='right'>".avtornovice($info)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo opcijenovice($info).dodatno("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmainr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>\n";

}

function closetable() {

   echo "</td>\n</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmainr' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }else { echo "<td class='scapmainr' align='right'></td>\n"; }
   echo "</tr>\n<tr>\n";
   echo "<td colspan='2' class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>

 
DjMicha1985

Code 

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }



$font_mode = TRUE;
define("THEME_WIDTH", "900px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";
require_once THEME."core.php";


function render_page($license=false) {




if(TRUE & FALSE){ echo "neki";}

   global $settings, $main_style, $font_mode;
   //main frame
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
   //header
   echo "<table>
     

      <tr>
         <td class='header'><a href='".BASEDIR."index.php' style='border:0'><img src='".THEME."logo.png' alt='' style='border:0' /></a></td>
      </tr>
      </table>";   
   //navigation
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='nav_l'></td>
         <td class='nav_c'>".navigacija()."</td>

         <td class='nav_c' align='right'><div id='search'><ul><li><a href='".BASEDIR."search.php'><span>Suche</span></a></li></ul></div></td>
         <td class='nav_r'></td>
      </tr>
      </table>";
   echo newline(10);
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_top'></td>
         <td style='border-top: 1px solid #CDCEBB; height: 9px; background: #FFF;'></td>
         <td class='right_top'></td>
      </tr>
      <tr>
         <td style='border-left: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
         <td>";
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "</td>
         <td style='border-right: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
      </tr>
      <tr>
         <td class='left_bottom'></td>
         <td style='border-bottom: 1px solid #CDCEBB; text-align: right; height: 10px; background: #FFF;'><span style='font-size: 7px'> <a href=''></a></span></td>
         <td class='right_bottom'></td>
      </tr>
      </table>";
   
   echo newline(10);
   //footer
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='foot_l'></td>
         <td class='foot_copyright'  align='center'>".showcounter()." <br><br> Copyright © 2004-2009 Megafete.tk <br><br> ".showcopyright()."</td>
         <td class='foot_r'></td>
      </tr>
      </table>";
   //main frame
   echo "</td>\n</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr' align='right'>".avtornovice($info)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo opcijenovice($info).dodatno("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmainr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>\n";

}

function closetable() {

   echo "</td>\n</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmainr' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }else { echo "<td class='scapmainr' align='right'></td>\n"; }
   echo "</tr>\n<tr>\n";
   echo "<td colspan='2' class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
}
//code start

//start banner replacement code
if (file_exists(INFUSIONS."banner_panel/view.php"))
{
   include INFUSIONS."banner_panel/view.php";
}
else
{
$banner_display = '';
}
$input = '<table width="100%" cellpadding="0" cellspacing="0">
<tr>
   <td><img src="'.THEME.$settings['sitebanner'].'" alt="'.$settings['sitename'].'" title="'.$settings['sitename'].'"></td>
   <td align="right">'.$banner_display.'</td>
</tr>
</table>';
//end banner replacement code


//replacement
render_header($input);
//commented original code
//render_header("<img src='".THEME.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");

//code end

?


Bearbeitet von DjMicha1985 am 05.04.2009 um 21:45
 
depp1234
Wenn ich diesen code verwende dann kommt leider nur noch das navigationspanel und sonst nihts mehr...
 
DjMicha1985
hab den code oben mal leicht verändert. Versuch mal so.
 
depp1234
jetzt ist alles weiß...
 
DjMicha1985
Zitat MarcusG schrieb:
mach hinter das ? am Ende noch ein >, also ?>


ups mein fehler
 
depp1234
geht leider auch nicht.
 
TSC-Hitman
Hi,

Also in meiner Theme is es so:

Code 

//Header
   echo "<div align='center' width='".THEME_WIDTH."'>";
   echo "<img border='0' src='".THEME."images/Dein Banner.gif,jpg,png,bmp' width='962' height='225' alt='header' />\n";
   echo "</div>";



Das Rot markierte is dann dein eigener Banner den es dann auf deiner Homepage anzeigt.

Deinen Banner ablegen auf deinem FTP = httpdocs/Themes/images ( Darin deinen Banner ablegen ) und einfach oben beim rot Markierten bei [ Dein Banner ] den Banner Namen angeben, mit der endung /.jpg / .gif oder was eben dein Banner ist.
Bearbeitet von TSC-Hitman am 06.04.2009 um 14:00
 
DjMicha1985
versuch ma bitte so:

Code 

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }



$font_mode = TRUE;
define("THEME_WIDTH", "900px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";
require_once THEME."core.php";


function render_page($license=false) {




if(TRUE & FALSE){ echo "neki";}

   global $settings, $main_style, $font_mode;
   //main frame
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td>";
   //header
//code start

//start banner replacement code
if (file_exists(INFUSIONS."banner_panel/view.php"))
{
   include INFUSIONS."banner_panel/view.php";
}
else
{
$banner_display = '';
}
$input = '<table width="100%" cellpadding="0" cellspacing="0">
<tr>
   <td><img src="'.THEME.$settings['sitebanner'].'" alt="'.$settings['sitename'].'" title="'.$settings['sitename'].'"></td>
   <td align="right">'.$banner_display.'</td>
</tr>
</table>';
//end banner replacement code


//replacement
render_header($input);
//commented original code
//render_header("<img src='".THEME.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");

//code end   
   //navigation
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='nav_l'></td>
         <td class='nav_c'>".navigacija()."</td>

         <td class='nav_c' align='right'><div id='search'><ul><li><a href='".BASEDIR."search.php'><span>Suche</span></a></li></ul></div></td>
         <td class='nav_r'></td>
      </tr>
      </table>";
   echo newline(10);
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_top'></td>
         <td style='border-top: 1px solid #CDCEBB; height: 9px; background: #FFF;'></td>
         <td class='right_top'></td>
      </tr>
      <tr>
         <td style='border-left: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
         <td>";
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "</td>
         <td style='border-right: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
      </tr>
      <tr>
         <td class='left_bottom'></td>
         <td style='border-bottom: 1px solid #CDCEBB; text-align: right; height: 10px; background: #FFF;'><span style='font-size: 7px'> <a href=''></a></span></td>
         <td class='right_bottom'></td>
      </tr>
      </table>";
   
   echo newline(10);
   //footer
   echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='foot_l'></td>
         <td class='foot_copyright'  align='center'>".showcounter()." <br><br> Copyright © 2004-2009 Megafete.tk <br><br> ".showcopyright()."</td>
         <td class='foot_r'></td>
      </tr>
      </table>";
   //main frame
   echo "</td>\n</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr' align='right'>".avtornovice($info)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo opcijenovice($info).dodatno("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='news'>".$subject."</td>\n";
   echo "<td class='newsr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer' colspan='2'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmainr'></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body' colspan='2'>\n";

}

function closetable() {

   echo "</td>\n</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmainr' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }else { echo "<td class='scapmainr' align='right'></td>\n"; }
   echo "</tr>\n<tr>\n";
   echo "<td colspan='2' class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>



wenn des geht musst denn nur noch im adminbreich den header einstellen
 
depp1234
jetzt ist nur noch ein grauer hintergrund.
 
DjMicha1985
Gib mir ma bitte nen Link deiner seite
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
PartnerPagePanel: Banner werden nicht angezeigt. Infusionen 3 02.08.2017 um 07:58
Unter LInks Banner einbauen. Allgemeine Diskussionen 4 02.11.2015 um 18:06
Banner System 3.1.0a Infusionen 11 13.05.2015 um 17:14
Banner Panel PHP & MySql 2 27.11.2013 um 10:38
Navigation im Header Allgemeine Support Fragen 6 08.08.2013 um 06:20
PHPFusion DE NSS