YourWBB


yourWBB » yourWBB Misc * » Das Proggen » HTML, XHTML, JavaScript & CSS » Die Zeilen für Ankündigungen andersfarbig hervorheben » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 3.234 Views | | Thema zu Favoriten hinzufügen

Neues Thema erstellen Antwort erstellen

Zum Ende der Seite springen Die Zeilen für Ankündigungen andersfarbig hervorheben
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
B.SCHEUERT
Mitglied


images/avatars/avatar-3644.gif

Dabei seit: 02.06.04
Beiträge: 25
Herkunft: (D) Gelsenkirchen-Buer, NRW
Forenversion: 2.1.6

Text Die Zeilen für Ankündigungen andersfarbig hervorheben Antworten Zitieren Editieren Melden       UP

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.

__________________
Sorry for my stupid English, but I'm an old and unteachable Kraut.
I've no prejudices, I hate anybody.
Visit my little Footballforum!
21.04.06 13:45 B.SCHEUERT ist offline E-Mail WWW Finden Als Freund hinzufügen MSN Passport-Profil von B.SCHEUERT anzeigen
Broken Sword Broken Sword ist männlich
Mitglied


images/avatars/avatar-5300.jpg

Dabei seit: 18.06.04
Beiträge: 537
Forenversion: 2.3

Antworten Zitieren Editieren Melden       UP

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/

Dieser Beitrag wurde 2 mal editiert, zum letzten Mal von Broken Sword: 21.04.06 21:47.

21.04.06 21:45 Broken Sword ist offline WWW Finden Als Freund hinzufügen
B.SCHEUERT
Mitglied


images/avatars/avatar-3644.gif

Dabei seit: 02.06.04
Beiträge: 25
Herkunft: (D) Gelsenkirchen-Buer, NRW
Forenversion: 2.1.6

Themenstarter Thema begonnen von B.SCHEUERT
Antworten Zitieren Editieren Melden       UP

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.

__________________
Sorry for my stupid English, but I'm an old and unteachable Kraut.
I've no prejudices, I hate anybody.
Visit my little Footballforum!
21.04.06 22:37 B.SCHEUERT ist offline E-Mail WWW Finden Als Freund hinzufügen MSN Passport-Profil von B.SCHEUERT anzeigen
Broken Sword Broken Sword ist männlich
Mitglied


images/avatars/avatar-5300.jpg

Dabei seit: 18.06.04
Beiträge: 537
Forenversion: 2.3

Antworten Zitieren Editieren Melden       UP

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&amp;threadid=$threads[threadid]&amp;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]&amp;sid=$session[hash]<if(isset($search['searchstring']) && $search['searchstring'])><then>&amp;hilight=$search[searchstring]</then></if><if(isset($search['searchuserid']) && $search['searchuserid'])><then>&amp;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]&amp;sid=$session[hash]">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?action=removesubscription&amp;threadid=$threads[threadid]&amp;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]&amp;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]&amp;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]&amp;sid=$session[hash]">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
    <td nowrap="nowrap"><span class="smallfont">&nbsp;<a href="thread.php?goto=lastpost&amp;threadid=$threads[threadid]&amp;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&amp;threadid=$threads[threadid]&amp;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]&amp;sid=$session[hash]<if(isset($search['searchstring']) && $search['searchstring'])><then>&amp;hilight=$search[searchstring]</then></if><if(isset($search['searchuserid']) && $search['searchuserid'])><then>&amp;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]&amp;sid=$session[hash]">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?action=removesubscription&amp;threadid=$threads[threadid]&amp;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]&amp;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]&amp;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]&amp;sid=$session[hash]">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
    <td nowrap="nowrap"><span class="smallfont">&nbsp;<a href="thread.php?goto=lastpost&amp;threadid=$threads[threadid]&amp;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?

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Broken Sword: 21.04.06 23:00.

21.04.06 22:59 Broken Sword ist offline WWW Finden Als Freund hinzufügen
B.SCHEUERT
Mitglied


images/avatars/avatar-3644.gif

Dabei seit: 02.06.04
Beiträge: 25
Herkunft: (D) Gelsenkirchen-Buer, NRW
Forenversion: 2.1.6

Themenstarter Thema begonnen von B.SCHEUERT
Antworten Zitieren Editieren Melden       UP

Danke, das hilft mir weiter. Bei mir hilft meist nur der Wink mit dem Zaunpfahl! Augenzwinkern

__________________
Sorry for my stupid English, but I'm an old and unteachable Kraut.
I've no prejudices, I hate anybody.
Visit my little Footballforum!
21.04.06 23:14 B.SCHEUERT ist offline E-Mail WWW Finden Als Freund hinzufügen MSN Passport-Profil von B.SCHEUERT anzeigen
Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » yourWBB Misc * » Das Proggen » HTML, XHTML, JavaScript & CSS » Die Zeilen für Ankündigungen andersfarbig hervorheben