Ankündigung und Wichtige Themen ...

mario367
... farblich darstellen -wie ?

also habe ankündigung in blau und wichtige themen in rot - siehe screenshot !

[IMG]http://img3.imagebanana.com/img/t5kvulrs/screen_03.gif[/IMG]

möchte aber das die links dazu auch in der gleichen farbe sind und zwar nur die wichtigen themen und die ankündigung - wie geht das , weiss das jmd zufällig ?

besten dank ....
[kamui]
Öffne das Template board_threadbit. Dort stößt du auf 2 Stellen:
code:
1:
<b>{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</b>

code:
1:
<b>{$lang->items['LANG_BOARD_IMPORTANT']}</b>


Das sind die 2 wichtigen Stellen. Dann suchst du dir eine Farbe aus, schaust, wie diese im "hexacode" heißt (-> http://tomheller.de/theholycymbal/html-farben.html)

Hast du diesen Code, kannst du die Codes wie folgt verändern:
code:
1:
<b><span style="color:#FARBE_FUER_ANKUENDIGUNGEN;">{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</span></b>

code:
1:
<b><span style="color:#FARBE_FUER_WICHTIGES;">{$lang->items['LANG_BOARD_IMPORTANT']}</span></b>


Den Text ("FARBE_FUER_ANKUENDIGUNGEN" und "FARBE_FUER_WICHTIGES") kannst du durch die "hexacodes" ersetzen. Achte darauf, dass vor dem Code eine Raute - "#" - und nach dem Code ein Semikolon - ; - steht.
mario367
links bleiben schwarz und passen sich nicht farblich an wie gewünscht !!

da muss irgendwo ein fehler in deiner beschreibung sein ????????? !

siehe tpl.

edit: im sprachpaket wurde es auch bearbeitet !!



php:
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?threadid=$threads[threadid]&amp;goto=firstnew{$SID_ARG_2ND}"><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><span style="color:#0000FF;">{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</span></b> </then>
  </if>
  
  <if($threads['important']==1)>
   <then><b><span style="color:#FF0000;">{$lang->items['LANG_BOARD_IMPORTANT']}</span></b> </then>
  </if>
  
  <if($threads['pollid']!=&& $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]<if($search[searchstring])><then>&amp;hilight=$search[searchstring]</then></if><if($search[searchuserid])><then>&amp;hilightuser=$search[searchuserid]</then></if>{$SID_ARG_2ND}">$threads[topic]</a>   <if($filename=="board.php" && $thx_usercount>0)>
   <then><br /><span class="smallfont">$thx_usercount x Danke</span></then>
  </if></span>$multipages<span class="smallfont">
  
  <if(isset($favorites) && $favorites)>
   <then><br /><b><a href="addreply.php?threadid=$threads[threadid]{$SID_ARG_2ND}">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?threadid=$threads[threadid]&amp;action=removesubscription{$SID_ARG_2ND}">{$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_ARG_2ND}">$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_ARG_2ND}">$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_ARG_2ND}">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
    <td nowrap="nowrap"><span class="smallfont">&nbsp;<a href="thread.php?threadid=$threads[threadid]&amp;goto=lastpost{$SID_ARG_2ND}"><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>