Probleme beim Coden von einem Style

Traumerin
Hallo

ich hab ein Problem mit einem Style den ich gerne machen möchte, und zwahr möchte ich Links und Rechts vom Forum gerne noch eine Spalte haben.

Wie geht das genau? Muss ich das im Header Template machen wenn ja ist das so richtig?

<table width="1010" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="120" valign="top" bgcolor="629212"><p>&nbsp;</p>
</td>
<td width="770" valign="top">

HIER DER CODE VOM HEADER BISHER???

</td>
<td width="120" valign="top" bgcolor="629212">&nbsp;</td>
</tr>
</table>

Wenn nein bitte helft mir

Danke im Voraus
Maniac_81
das wäre eine möglichkeit, damit setzt du aber eine tabelle komplett aussenrum. dann darfste aber den table nicht gleich schliessen, sondern erst im footer.tpl als ganz letztes.

oder eben du nimmst die ersten zeilen vom header template:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
  <td class="mainpage" align="center">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
     <td class="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
    </tr>


und änderst es in:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
<td width="120" valign="top" bgcolor="629212"><p>&nbsp;</p></td>

  <td class="mainpage" align="center">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
     <td class="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
    </tr>


und im footer.tpl :

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
<br />

<if($imprint_url != '')>
	<then>
		<p align="center" class="normalfont"><a href="{$imprint_url}">{$lang->items['LANG_GLOBAL_IMPRINT']}</a></p>
	</then>
	<else>
		<if($imprint_text != '')>
			<then>
				<p align="center" class="normalfont"><a href="misc.php?action=imprint{$SID_ARG_2ND}">{$lang->items['LANG_GLOBAL_IMPRINT']}</a></p>
			</then>
		</if>
	</else>
</if>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" align="center">
 <tr>
  <td class="tablea"><span class="smallfont"><a href="http://www.woltlab.de" target="_blank" style="text-decoration: none">{$lang->items['LANG_GLOBAL_COPYRIGHT']}</a></span></td>
 </tr>
</table><br />
</td>
</tr>
</table>


änderst in:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
<br />

<if($imprint_url != '')>
	<then>
		<p align="center" class="normalfont"><a href="{$imprint_url}">{$lang->items['LANG_GLOBAL_IMPRINT']}</a></p>
	</then>
	<else>
		<if($imprint_text != '')>
			<then>
				<p align="center" class="normalfont"><a href="misc.php?action=imprint{$SID_ARG_2ND}">{$lang->items['LANG_GLOBAL_IMPRINT']}</a></p>
			</then>
		</if>
	</else>
</if>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" align="center">
 <tr>
  <td class="tablea"><span class="smallfont"><a href="http://www.woltlab.de" target="_blank" style="text-decoration: none">{$lang->items['LANG_GLOBAL_COPYRIGHT']}</a></span></td>
 </tr>
</table><br />
</td>

<td width="120" valign="top" bgcolor="629212">&nbsp;</td>

</tr>
</table>


bitte templates vorher speichern bei dir auf dem rechner, falls was schief geht zum rückspielen.
Traumerin
hmm irgendwie bekomme ich das nich hin liegt wohl daran dass mein header und footer recht abgeändert sind. Könnt ich dir header und footer vielleicht zukommen lassen?
Maniac_81
eigentlich fügst du nur eine zeile jeweils in jedes template ein. häng sie bitte an
Traumerin
header:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
   <td class="mainpage" align="center">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="center" {imageback}>
    <td width="770"><table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
   <td class="mainpage" align="center">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="center" {imageback}>
         <table id="Tabelle_01" width="770" height="144" border="0" cellpadding="0" cellspacing="0">
           <tr>
             <td colspan="2">
               <img src="Bilder/logo_01.gif" width="5" height="24" alt=""></td>
		  <td colspan="2" background="Bilder/logo_29.gif"><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="Bilder/logo_02.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if>
		    <if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="Bilder/logo_03.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if></td>
		  <td colspan="2" background="Bilder/logo_29.gif">&nbsp;</td>
		  <td colspan="6">
		    <img src="Bilder/logo_05.gif" width="255" height="24" alt=""></td>
		  <td colspan="2" background="Bilder/logo_29.gif">&nbsp;</td>
		  <td width="50" background="Bilder/logo_29.gif"><div align="right"><a href="http://www.schweizer-forum.ch"><img src="Bilder/logo_06.gif" alt="" width="40" height="24" border="0" /></a></div></td>
		  <td colspan="3" background="Bilder/logo_29.gif"><div align="center"><a href="http://www.schweizer-forum.ch/index.php"><img src="Bilder/logo_07.gif" alt="" width="50" height="24" border="0" /></a></div></td>
		  <td colspan="2" background="Bilder/logo_29.gif"><a href="http://www.schweizer-forum.ch/kontakt.html"><img src="Bilder/logo_09.gif" width="71" height="24" border="0" /></a></td>
	  </tr>
           <tr>
             <td colspan="8" rowspan="4">
               <a href="index.php?sid=$session[hash]"><img src="Bilder/logo_10.gif" alt="" width="340" height="95" border="0"></a></td>
		  <td width="17">
		    <img src="Bilder/logo_11.gif" width="17" height="41" alt=""></td>
		  <td colspan="10">
		    <img src="Bilder/logo_12.gif" width="398" height="41" alt=""></td>
		  <td width="15">
		    <img src="Bilder/logo_13.gif" width="15" height="41" alt=""></td>
	  </tr>
           <tr>
             <td rowspan="2">
               <img src="Bilder/logo_14.gif" width="17" height="38" alt=""></td>
		  <td colspan="10" rowspan="2" background="Bilder/logo_15.gif"><script language='JavaScript' type='text/javascript' src='http://schweizer-forum.ch/werbung/adx.js'></script>
  <script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://schweizer-forum.ch/werbung/adjs.php?n=" + phpAds_random);
   document.write ("&amp;clientid=2&amp;target=_new");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://schweizer-forum.ch/werbung/adclick.php?n=ae6b7413' target='_new'><img src='http://schweizer-forum.ch/werbung/adview.php?clientid=2&amp;n=ae6b7413' alt='' width="398" height="38" border='0'></a>
  </noscript></td>
		  <td>
		    <img src="Bilder/logo_16.gif" width="15" height="1" alt=""></td>
	  </tr>
           <tr>
             <td>
               <img src="Bilder/logo_17.gif" width="15" height="37" alt=""></td>
	  </tr>
           <tr>
             <td>
               <img src="Bilder/logo_18.gif" width="17" height="16" alt=""></td>
		  <td colspan="10">
		    <img src="Bilder/logo_19.gif" width="398" height="16" alt=""></td>
		  <td>
		    <img src="Bilder/logo_20.gif" width="15" height="16" alt=""></td>
	  </tr>
           <tr>
             <td width="4">
               <img src="Bilder/logo_21.gif" width="4" height="24" alt=""></td>
		  <td colspan="2" background="Bilder/logo_29.gif">&nbsp;</td>
		  <td colspan="2">
		    <a href="index.php?sid=$session[hash]"><img src="Bilder/logo_23.gif" alt="" width="96" height="24" border="0"></a></td>
		  <td colspan="2" valign="baseline" background="Bilder/logo_29.gif"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="Bilder/logo_24.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a>
		    </then>
		    <else><a href="register.php{$SID_ARG_1ST}"><img src="Bilder/logo_22.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if></td>
		  <td colspan="3">
		    <a href="memberslist.php?sid=$session[hash]"><img src="Bilder/logo_25.gif" alt="" width="96" height="24" border="0"></a></td>
		  <td width="96">
		    <a href="search.php?sid=$session[hash]"><img src="Bilder/logo_26.gif" alt="" width="96" height="24" border="0"></a></td>
		  <td colspan="2">
		    <a href="misc.php?action=faq&amp;sid=$session[hash]"><img src="Bilder/logo_27.gif" alt="" width="96" height="24" border="0"></a></td>
		  <td colspan="3">
		    <a href="team.php?sid=$session[hash]"><img src="Bilder/logo_28.gif" alt="" width="96" height="24" border="0"></a></td>
		  <td width="12">
		    <img src="Bilder/logo_29.gif" width="12" height="24" alt=""></td>
		  <td colspan="3">
		    <img src="Bilder/logo_30.gif" width="82" height="24" alt=""></td>
	  </tr>
           <tr>
             <td>
               <img src="Bilder/Abstandhalter.gif" width="4" height="1" alt=""></td>
		  <td width="1">
		    <img src="Bilder/Abstandhalter.gif" width="1" height="1" alt=""></td>
		  <td width="95">
		    <img src="Bilder/Abstandhalter.gif" width="95" height="1" alt=""></td>
		  <td width="95">
		    <img src="Bilder/Abstandhalter.gif" width="95" height="1" alt=""></td>
		  <td width="1">
		    <img src="Bilder/Abstandhalter.gif" width="1" height="1" alt=""></td>
		  <td width="120">
		    <img src="Bilder/Abstandhalter.gif" width="95" height="1" alt=""></td>
		  <td width="1">
		    <img src="Bilder/Abstandhalter.gif" width="1" height="1" alt=""></td>
		  <td width="48">
		    <img src="Bilder/Abstandhalter.gif" width="48" height="1" alt=""></td>
		  <td>
		    <img src="Bilder/Abstandhalter.gif" width="17" height="1" alt=""></td>
		  <td width="31">
		    <img src="Bilder/Abstandhalter.gif" width="31" height="1" alt=""></td>
		  <td>
		    <img src="Bilder/Abstandhalter.gif" width="96" height="1" alt=""></td>
		  <td width="62">
		    <img src="Bilder/Abstandhalter.gif" width="62" height="1" alt=""></td>
		  <td width="34">
		    <img src="Bilder/Abstandhalter.gif" width="34" height="1" alt=""></td>
		  <td width="6">
		    <img src="Bilder/Abstandhalter.gif" width="6" height="1" alt=""></td>
		  <td>
		    <img src="Bilder/Abstandhalter.gif" width="50" height="1" alt=""></td>
		  <td width="40">
		    <img src="Bilder/Abstandhalter.gif" width="40" height="1" alt=""></td>
		  <td>
		    <img src="Bilder/Abstandhalter.gif" width="12" height="1" alt=""></td>
		  <td width="11">
		    <img src="Bilder/Abstandhalter.gif" width="11" height="1" alt=""></td>
		  <td width="56">
		    <img src="Bilder/Abstandhalter.gif" width="56" height="1" alt=""></td>
		  <td>
		    <img src="Bilder/Abstandhalter.gif" width="15" height="1" alt=""></td>
	  </tr>
  </table>
       </td>
      </tr>
     </table>



footer:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
<style type="text/css">
<!--
.Stil1 {
	font-family: Tahoma;
	font-size: 12px;
}
-->
</style>
<br />


<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" align="center">
 <tr>
  <td class="tablea Stil1">
  <table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
 <tr>
  <td bgcolor="{tablecolora}" id="tablea"><smallfont>
    <div align="center">Schweizer-Forum.ch wird gehostet von <b><a href="http://www.xtra-hosting.ch" target="_blank">xtra-hosting.ch</a></b> Ihr Hosting bereits ab 1.95CHF</div></td>
 </tr>
 <tr>
   <td bgcolor="{tablecolora}" id="tablea2"><div align="center">Unsere Partner:</div></td>
 </tr>
 <tr>
   <td bgcolor="{tablecolora}" id="tablea3"><div align="center"><a href="http://www.ausfluege-online.ch" target="_new"><b><a href="http://www.ausfluege-online.ch" target="_blank">ausfluege-online.ch</a> / <a href="http://www.wallpaper-area.ch" target="_new">wallpaper-area.ch</a></div></td>
 </tr>
</table>
  
  <div align="center"><span class="smallfont"><a href="http://www.woltlab.de" target="_blank" style="text-decoration: none">{$lang->items['LANG_GLOBAL_COPYRIGHT']}</a></span></div></td>
 </tr>
</table><br />
</td>
</tr>
</table>
Maniac_81
so müsste es klappen:
Traumerin
Wenn ich jetzt dort in der Linken spalte ein neues Template aufrufen möchte dann muss ich dort einfach hinschreiben $linkespalte und ein template erstellen das heisst linkespalte ? oder seh ich das falsch wenn ich das nämlich mache erscheint nichts
Ghostmaster
So leicht ist es dann doch nicht.
Du musst in der global.php noch definieren, dass die Variable $linkespalte ein Templates ist.

Du suchst in der global.php:

code:
1:
eval("\$header = \"".$tpl->get("header")."\";");


und fügst darüber:

code:
1:
eval("\$linkespalte = \"".$tpl->get("linkespalte")."\";");
Traumerin
hmm komisch habs so gemacht wie du gesagt hast

in der linken spalte funkktioniert es

in der rechten spalte leider nicht
auch nicht wenn ich $linkespalte
angebe.

in der global.php hab ichs für beide spalten gemacht

ich denke es stimmt was an der tabellenstruktur nicht kann das sein?
Ghostmaster
Wenn du es im footer auch haben willst dann musst du den Coder hier:

code:
1:
eval("\$linkespalte = \"".$tpl->get("linkespalte")."\";");


überhalb von:

code:
1:
eval("\$footer = \"".$tpl->get("footer")."\";");


setzen. Dann kannst du es sowohl im header als auch im footer verwenden. Augenzwinkern
Traumerin
Danke hat alles bestens funktioniert

Nun hätt ich da noch eine andere Frage

ich möchte dass in dieser spalte noch angezeigt wird welche user sich gerade online befinden.

Wie kann ich sowas machen?