PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Template Probleme?



TouchStone
04.05.2005, 13:15
Hallo ich habe mir einen Style eingebaut , der ist eigentlich nicht für das vB 3.0.7 denoch passt fast alles bis auf den Header und den Fotter.Kann mir bitte jemand helfen das An zu Passen?

Gruss

StGaensler
04.05.2005, 16:14
Dazu wäre es aber sehr hilfreich, wenn man mal den Quelltext dieser Seite sehen könnte.

TouchStone
04.05.2005, 16:52
Dazu wäre es aber sehr hilfreich, wenn man mal den Quelltext dieser Seite sehen könnte.

Was genau meinst du damit?

Ich mach mal das Header und Fotter Template mit hier rann?

header
<!-- logo -->
<a name="top"></a>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="15" bgcolor="#3C5C73">
<tr>
<th scope="row"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="dragon/header/background.gif">
<tr>
<td width="20%" align="left" valign="top"><a href="index.php"><img src="dragon/header/left.gif" width="245" height="97" border="0"></a></td>
<td width="80%" align="right"> &nbsp; <img src="dragon/header/right.gif" width="246" height="97">
<!--
NEW HEADER &amp; NAVBAR

Now that the nav buttons are in the
navbar template, you can stick whatever
you like into this space.

This makes it much easier for novice
admins to customize their header
template without affecting important
navigation elements.
-->
</td>
</tr>
</table></th>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open $_phpinclude_output


fotter
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table --><table width="780" border="0" align="center" cellpadding="0" cellspacing="15" bgcolor="#3C5C73">
<tr>
<th scope="row"><form action="$vboptions[forumhome].php" method="get">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="13%" align="left" background="dragon/footer/leftbackground.gif" scope="row"><img src="dragon/footer/left.gif" width="163" height="107"></th>
<td width="87%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="right" valign="bottom" bgcolor="#3C5C73">
<th height="30" colspan="2" scope="row"> <div class="smallfont">
<strong>
<a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> -
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<!-- - <a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> - -->
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div></th>
</tr>
<tr>
<if condition="$show['quickchooser']">
<th width="76%" align="right" background="dragon/footer/background.gif" scope="row"><select name="styleid" id="ressel" onchange="switch_styleid(this)">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select></th>
</if>
<th width="24%" align="right" background="dragon/footer/background.gif" scope="row"><img src="dragon/footer/right.gif" width="249" height="77"></th>
</tr>
</table></td>
</tr>
</table></form></th>
</tr>
</table>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
<span class="smallfont">$cronimage</span>
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

Darin muss denke ich irgendwo der fehler liegen?

Gruss

StGaensler
04.05.2005, 17:20
Ich meinte eigentlich den html-Quelltext der fertig generierten Seite, allerdings kann ich den "Fehler" auch hier schon entdecken: Sowohl im header- als auch im footer-Template wird die Tabelle mit width="780" definiert, hat also immer die Breite 780 Pixel. Das musst du auf den selben Wert wie die Content-Tabelle anpassen.

TouchStone
04.05.2005, 18:17
Das musst du auf den selben Wert wie die Content-Tabelle anpassen.

Vielen dank habe es gefunden , ist ja einfach wenn man es weiss.


Gruss