Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 01:40:00 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155476 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Bilder in WebsiteBaker Template Kopfzeile  (Read 881 times)
Kami

Offline Offline

Posts: 40


« on: December 29, 2008, 07:44:34 PM »

Gruß an alle,

Nichts neu hier aber ich brauche ein bießien Hilfe. (-:

Ich versuche Bilder in der Kopfzeile meiner WB template hinzufügen.

ich dachte, das ist korrekt:

<div id="banner">   
   <img src="<?php echo TEMPLATE_DIR;?>/img/navi/banner.jpg" width="1010" height="120" alt="mypic" />
</div>

Endeffekt:  Das Bild wird nicht gezeigt.

Wenn ich die Quellcode anschaue  (http://localhost/wb/wb/pages/test.php) , sehe ich:

<div id="banner">
<img src="http://localhost/wb/wb/templates/test/img/navi/banner.jpg"width="1010"height="120"alt="mypic"/>
</div>
 
Ist es normal ?  Irgendwelche Ahnung ?

Danke im voraus.

MfG,

Kami
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #1 on: December 29, 2008, 07:53:12 PM »

Hmm..
Also Du hast ein Templatemit dem Namen "Test".
Schön.
Ist denn das Bild drin?
Stimmt der Pfad?



Gruß,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
albatros

Offline Offline

Posts: 674


WWW
« Reply #2 on: December 29, 2008, 11:43:59 PM »


Hi,

wo kommt das zweite "/wb" her und stimmt das so? Wahrscheinlich nicht!
Versuch mal die Grafik im Browser direkt über den URL zu sehen, einmal mit, einmal ohne zweites "/wb".

hth

albatros
Logged
Kami

Offline Offline

Posts: 40


« Reply #3 on: January 04, 2009, 07:45:22 PM »

Hallo Stefek und albatros,

(1) "Test" ist eigentlich die Name meinen (zipped) Ordner mit den vier Dateien (index.php, info.php, seite.css, drueckbareseite.css)

(2) 
<img src="http://localhost/wb/wb/templates/test/img/navi/banner.jpg"width="1010"height="120"alt="mypic"/>

--> man merkt "... /wb/wb...  " , Ich glaube nicht, daß das Problem da liegt (2x wb) , ich habe mich einfach entschieden mein Ordner wo alle die wb Dateien liegen "wb" zu nennen.   

(3) das Bild banner.jpg  habe ich in dem WB Ordner "Media" gespeichert (d.h. pfad in Media: "/img/navi/banner.jpg")

Irgendwelche Ahnung ?

ich hoffe das hilft ein bießien. Danke sehr für Ihre Hilfe.

Kami

Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #4 on: January 04, 2009, 08:30:52 PM »

"Test" ist eigentlich die Name meinen (zipped) Ordner mit den vier Dateien (index.php, info.php, seite.css, drueckbareseite.css)


Irgendwelche Ahnung ?

ich hoffe das hilft ein bießien. Danke sehr für Ihre Hilfe.

Ja, vielleicht hilft das.

Hast Du denn also in diesem Verzeichnis auch ein Unterverzeichnis mit dem Namen img und dort wiederrum ein Unterverzeichnis mit dem Namen navi, wo sich letztendlich die banner.jpg befindet?

Wenn nicht, wird es nicht funktionieren, weil der Pfad ins Leere geht.

Wenn Du nicht soviele Unterordner haben willst, kannst Du den Aufrug abkürzen und die banner.jpg direkt in den Ordner "Test" einfügen.

Hier der Aufruf
<img src="<?php echo TEMPLATE_DIR;?>/banner.jpg" width="1010" height="120" alt="mypic" />

Schönen Gruß,
Christian Stefan
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Kami

Offline Offline

Posts: 40


« Reply #5 on: January 07, 2009, 09:34:58 AM »

Hallo,

Ich habe alles getan, klappt nicht. Wenn ich auf  (Template) "Install" klicke, sehe ich gar nicht, keine Meldung - und die Template wurde nicht installiert.

Ich schicke dir hier unten der Inhalt (1) info.php (2) index.php und (3) seite.css .

Vielen vielen Dank für deine Hilfe !

info.php:
Code:
<?php
$template_directory 
'test3';
$template_name 'test3';
$template_version '2.6';
$template_platform '2.6.x';
$template_author 'Kami Barut, http://www.kamibarut.de';
$template_license 'GNU General Public License';
$template_description 'test3';
?>

index.php:
Code:
<!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" xml:lang="en" lang="en">
   <head>
      </title><?php page_title(); ?></title>
     
      <meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
      <meta name="description" content=" <?php page_description(); ?>" />
      <meta name="keywords" content="<?php page_keywords(); ?>" />
     
      <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR?>/seite.css" media="screen" />
   </head>
   <body>
      <div id="container">
         <div id="banner">           
         <img src="<?php echo TEMPLATE_DIR;?>/banner.jpg" width="1010" height="120" alt="mypic" />
         </div>     
         <div id="navigation">
            <?php show_menu(1,0,1); ?>
         </div>         
         <div id="content">
            <?php page_content(); ?>
         </div>   
         <div id="footer">         
            <?php page_footer(); ?>
         </div>
      </div>     
   </body>     
<html>

seite.css:
Code:
* {
margin: 0;
padding: 0;
}

html, body { background-color: #ece9d8; }

#container {
position:relative;
margin-left: 0px;
margin-right:0px;
margin-top: 2px;
padding-top:1px;
padding-right:0px;
padding-left:0px;
width: 1020px;
border: 1px solid black;
}

#banner {
position:relative;
margin-left: 0px;
margin-right:0px;
margin-top: 0px;
width: 1010;
height:120px;
padding-top:0px;
padding-bottom:0px;
padding-left:0px;
padding-right:0px;
border: 1px solid violet;
/*background: url('img/navi/banner.jpg') no-repeat; */
}


#bild1 {
position:relative;
margin-left: 0px;
margin-top:0px;
padding-top:0px;
padding-bottom:0px;
padding-left:0px;
padding-right:0px;
top:30px;
left:0px;
height:51px;
width:274px;
/*background-image:url('../../navi/claim2009.jpg'); */
border: 1px solid red;
}

#bild2 {
position:relative;
margin-top: 0px;
padding-top:0px;
padding-bottom:0px;
padding-left:0px;
padding-right:0px;
top:-20px;
left:865px;
height:51px;
width:152px;
/*background-image:url('../../navi/icoo-logo.jpg'); */
border: 1px solid blue;
}

#navigation {
clear: both;
margin-left: 5px;
margin-top: 5px;
padding-top:2px;
padding-bottom:2px;
padding-left:0px;
padding-right:0px;
height:26px;
width:1010px;
border: 1px solid green;
}

#navigation ul li {
display: block;
margin-left:140px;
}

#navigation ul li a {
color: #000;
float: left;
font-size: 70%;
font-weight: normal;
text-decoration: none;
padding-left:30px;
padding-right:30px;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

#navigation ul li  a.active, #navigation ul li a:hover {
color:#000;
font-weight:bold;
}

#content {
position:relative;
margin-left: 5px;
margin-top: 5px;
padding-top:2px;
padding-bottom:2px;
padding-left:0px;
padding-right:0px;
border: 1px solid yellow;
width: 1010px;
height: 250px;
}

#footer {
clear: both;
margin-left: 5px;
margin-top: 5px;
padding-top:2px;
padding-bottom:2px;
padding-left:0px;
padding-right:0px;   
border: 1px solid blue;
width: 1010px;
height:26px;
color: #333;
}

#footer ul li  {
display: block;
margin-left:125px;
}

#footer ul li  a {
color:#000;
font-weight:normal;
float: left;
font-size: 70%;
font-weight:normal;
text-decoration: none;
padding-left:20px;
padding-right:20px;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

#footer ul li  a.active, #footer ul li a:hover {
color:#000;
font-weight:bold;
}

Danke sehr ! Kami

Edit:
Bitte für code entweder die Dateien als Anhang beifügen oder den Code mittels "Code" (Rautesymbol) markieren.
Danke
Matthias
« Last Edit: January 07, 2009, 12:27:53 PM by ruebenwurzel » Logged
Kami

Offline Offline

Posts: 40


« Reply #6 on: January 07, 2009, 10:40:11 AM »

Hallo,

Ich habe das Problem erlöst. (Vielen Dank Christian).

MfG,

KB
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #7 on: January 07, 2009, 01:51:00 PM »

Freut mich.

MfG,
Christian Stefan
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!