B.SCHEUERT
Hi,
ich würde gerne die Zeile (Zellen) bei den Ankündigungen andersfarbig hervorheben, so dass sie einfacher einfacher von den Themen zu untescheiden sind. Leider habe ich dazu bisher nichts gefunden.
Wo und wie kann ich das ändern?
Cheers.
Broken Sword
Das schaffste im Template "board_threadbit"
da einfach in den td-tags
code: |
1:
2:
3:
|
class="tablea"
|
|
(oder halt "tableb")
mit
code: |
1:
2:
3:
|
class="<if($threads['important']==2)><then>table_annoucement</then><else>tablea</else></if>"
|
|
(oder halt "tableb")
ersetzen
im designpack im css bereich musst dann nur noch klasse "table_annoucement" anlegen und fertisch is \o/
B.SCHEUERT
Da komme ich gerade nicht ganz mit. In meinem Template "board_threadbit" steht:
code: |
1:
2:
3:
|
<if($threads['important']==2)>
<then><b>{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</b> </then>
</if> |
|
Ich habe nun der Einfachheit halber mein Template mit dem folgenden Code erweitert:
code: |
1:
|
table_annoucement</then><else>tablea</else> |
|
Nun habe ich in der CSS die Klasse "table_annoucement" angelegt.
Es hat sich nichts verändert.
Wo, in welchem Template finde ich die Variable für Erstellung der Ankündigungen? Dort könnte ich doch direkt eine Klasse ändern oder eine ID erfassen - je nachdem.
Das mit dem PHP behersche ich nämlich dummer Weise nicht.
Ich habe auch mal versucht ein <br /> dahinter zu packen, das hatte auch keine Auswirkungen.
Broken Sword
so sieht dein template aus (jungfräudig):
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:
|
<tr align="center">
<td class="tablea"><img src="{$style['imagefolder']}/$foldericon.gif" border="0" alt="" title="" /></td>
<td class="tableb">$threadicon</td>
<td class="tablea" style="width:80%" align="left"><span class="normalfont">
<if($threads['attachments'])>
<then><img src="{$style['imagefolder']}/paperclip.gif" border="0" alt="{$LANG_BOARD_ATTACHMENTS}" title="{$LANG_BOARD_ATTACHMENTS}" /> </then>
</if>
<if($firstnew==1)>
<then><a href="thread.php?goto=firstnew&threadid=$threads[threadid]&sid=$session[hash]"><img src="{$style['imagefolder']}/firstnew.gif" alt="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" title="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" border="0" /></a> </then>
</if>
<span class="prefix">
<if($threads['closed']==3)>
<then><b>{$lang->items['LANG_BOARD_MOVED']}</b> </then>
</if>
<if($threads['important']==2)>
<then><b>{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</b> </then>
</if>
<if($threads['important']==1)>
<then><b>{$lang->items['LANG_BOARD_IMPORTANT']}</b> </then>
</if>
<if($threads['pollid']!=0 && $threads['closed']!=3)>
<then><b>{$lang->items['LANG_BOARD_POLL']}</b> </then>
</if>
<if($threads['prefix']!="")>
<then>$threads[prefix] </then>
</if>
</span>
<a href="thread.php?threadid=$threads[threadid]&sid=$session[hash]<if(isset($search['searchstring']) && $search['searchstring'])><then>&hilight=$search[searchstring]</then></if><if(isset($search['searchuserid']) && $search['searchuserid'])><then>&hilightuser=$search[searchuserid]</then></if>">$threads[topic]</a></span>$multipages<span class="smallfont">
<if(isset($favorites) && $favorites)>
<then><br /><b><a href="addreply.php?threadid=$threads[threadid]&sid=$session[hash]">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?action=removesubscription&threadid=$threads[threadid]&sid=$session[hash]">{$lang->items['LANG_BOARD_REMOVE_SUBSCRIPTION']}</a></b></then>
</if>
<if($filename=="search.php")>
<then><br />{$lang->items['LANG_SEARCH_BOARD']} <b><a href="board.php?boardid=$threads[boardid]&sid=$session[hash]">$threads[title]</a></b></then>
</if>
</span></td>
<td class="tableb"><span class="normalfont"><a href="javascript:who($threads[threadid])">$threads[replycount]</a></span></td>
<td class="tablea" style="width:20%"><span class="normalfont"><if($threads['starterid']!=0)><then><a href="profile.php?userid=$threads[starterid]&sid=$session[hash]">$threads[starter]</a></then><else>$threads[starter]</else></if></span></td>
<td class="tableb"><span class="normalfont">$threads[views]</span></td>
<if($board['allowratings']==1)><then><td class="tablea" nowrap="nowrap">$threadrating</td></then></if>
<td class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>" align="left"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr align="right" class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>_fc">
<td align="right" nowrap="nowrap"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />
{$lang->items['LANG_BOARD_FROM']} <if($threads['lastposterid']!=0)><then><b><a href="profile.php?userid=$threads[lastposterid]&sid=$session[hash]">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
<td nowrap="nowrap"><span class="smallfont"> <a href="thread.php?goto=lastpost&threadid=$threads[threadid]&sid=$session[hash]"><img src="{$style['imagefolder']}/lastpost.gif" alt="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" title="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" border="0" /></a></span></td>
</tr>
</table></td>
</tr>
|
|
und so siehts danach aus
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:
|
<tr align="center">
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tablea</else></if>"><img src="{$style['imagefolder']}/$foldericon.gif" border="0" alt="" title="" /></td>
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tableb</else></if>">$threadicon</td>
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tablea</else></if>" style="width:80%" align="left"><span class="normalfont">
<if($threads['attachments'])>
<then><img src="{$style['imagefolder']}/paperclip.gif" border="0" alt="{$LANG_BOARD_ATTACHMENTS}" title="{$LANG_BOARD_ATTACHMENTS}" /> </then>
</if>
<if($firstnew==1)>
<then><a href="thread.php?goto=firstnew&threadid=$threads[threadid]&sid=$session[hash]"><img src="{$style['imagefolder']}/firstnew.gif" alt="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" title="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" border="0" /></a> </then>
</if>
<span class="prefix">
<if($threads['closed']==3)>
<then><b>{$lang->items['LANG_BOARD_MOVED']}</b> </then>
</if>
<if($threads['important']==2)>
<then><b>{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</b> </then>
</if>
<if($threads['important']==1)>
<then><b>{$lang->items['LANG_BOARD_IMPORTANT']}</b> </then>
</if>
<if($threads['pollid']!=0 && $threads['closed']!=3)>
<then><b>{$lang->items['LANG_BOARD_POLL']}</b> </then>
</if>
<if($threads['prefix']!="")>
<then>$threads[prefix] </then>
</if>
</span>
<a href="thread.php?threadid=$threads[threadid]&sid=$session[hash]<if(isset($search['searchstring']) && $search['searchstring'])><then>&hilight=$search[searchstring]</then></if><if(isset($search['searchuserid']) && $search['searchuserid'])><then>&hilightuser=$search[searchuserid]</then></if>">$threads[topic]</a></span>$multipages<span class="smallfont">
<if(isset($favorites) && $favorites)>
<then><br /><b><a href="addreply.php?threadid=$threads[threadid]&sid=$session[hash]">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?action=removesubscription&threadid=$threads[threadid]&sid=$session[hash]">{$lang->items['LANG_BOARD_REMOVE_SUBSCRIPTION']}</a></b></then>
</if>
<if($filename=="search.php")>
<then><br />{$lang->items['LANG_SEARCH_BOARD']} <b><a href="board.php?boardid=$threads[boardid]&sid=$session[hash]">$threads[title]</a></b></then>
</if>
</span></td>
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tableb</else></if>"><span class="normalfont"><a href="javascript:who($threads[threadid])">$threads[replycount]</a></span></td>
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tablea</else></if>" style="width:20%"><span class="normalfont"><if($threads['starterid']!=0)><then><a href="profile.php?userid=$threads[starterid]&sid=$session[hash]">$threads[starter]</a></then><else>$threads[starter]</else></if></span></td>
<td class="<if($threads['important']==2)><then>table_announcement</then><else>tableb</else></if>"><span class="normalfont">$threads[views]</span></td>
<if($board['allowratings']==1)><then><td class="<if($threads['important']==2)><then>table_announcement</then><else>tablea</else></if>" nowrap="nowrap">$threadrating</td></then></if>
<td class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>" align="left"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr align="right" class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>_fc">
<td align="right" nowrap="nowrap"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />
{$lang->items['LANG_BOARD_FROM']} <if($threads['lastposterid']!=0)><then><b><a href="profile.php?userid=$threads[lastposterid]&sid=$session[hash]">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
<td nowrap="nowrap"><span class="smallfont"> <a href="thread.php?goto=lastpost&threadid=$threads[threadid]&sid=$session[hash]"><img src="{$style['imagefolder']}/lastpost.gif" alt="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" title="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" border="0" /></a></span></td>
</tr>
</table></td>
</tr>
|
|
alles klar?
B.SCHEUERT
Danke, das hilft mir weiter. Bei mir hilft meist nur der Wink mit dem Zaunpfahl!