Seite 1 von 1

Signatur / Link andere Farbe

Verfasst: 01.10.2004 17:21
von Elvis
Hallo,
wenn man in seiner Signatur einen Link postet, welcher Abschnitt ist das i nder CSS Datei um die Farbe zu ändern wobei aber die Links in den posting nicht geändert werden sollen ?

zb postlink soll rot
Signaturlink blau

Verfasst: 01.10.2004 17:23
von Smith
Hallo,

finde in der subSilver bzw. in der overall_header.tpl

Code: Alles auswählen

.postbody
Füge dahinter:

Code: Alles auswählen

.signature { font-size : 12px;}
a.postlink:link 	{ text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}
Öffne viewtopic_body.tpl und finde:

Code: Alles auswählen

<span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span>
...und ersetze mit:

Code: Alles auswählen

<span class="signature">{postrow.MESSAGE}{postrow.SIGNATURE}</span>
Smith

Verfasst: 01.10.2004 17:25
von Elvis
habe ich mir gedacht, also kann cih nicht für die Sig eine Extrafarbe geben oder ?

Code: Alles auswählen

/* The content of the posts (body of text) */
.postbody { font-size : 12px;  color : #CCCCFF}
a.postlink:link	{ text-decoration: none; color : #66CCFF }
a.postlink:visited { text-decoration: none; color : #66CCFF; }
a.postlink:hover { text-decoration: underline; color : #DD6900}
irgendwie in der Art habe ich mir gedacht

Code: Alles auswählen

/* The content of the posts (body of text) */
.postbodysig { font-size : 12px;  color : #CCCCFF}
a.postlinksig:link	{ text-decoration: none; color : #66CCFF }
a.postlinksig:visited { text-decoration: none; color : #66CCFF; }
a.postlinksig:hover { text-decoration: underline; color : #DD6900}
und das ganze natürlich im span Tag in der viewtopic_body.tpl setzten bzw den Sig Code. aber das Funktioniert irgendwie nicht :/

Verfasst: 01.10.2004 17:28
von Smith
Hab mal bearbeitet...
(mein post)

Verfasst: 01.10.2004 17:32
von Elvis
mhh das klappt aber nicht..

Code: Alles auswählen

/* The content of the posts (body of text) */
.postbody { font-size : 12px;  color : #CCCCFF}
a.postlink:link	{ text-decoration: none; color : #66CCFF }
a.postlink:visited { text-decoration: none; color : #66CCFF; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* The content of the signatur */
.signature { font-size : 10px;}
a.postlink:link    { text-decoration: none; color : #ff0000 }
a.postlink:visited { text-decoration: none; color : #ff0000; }
a.postlink:hover { text-decoration: underline; color : #ff0000}

<span class="postbody">{postrow.MESSAGE}</span><span class="signature">{postrow.SIGNATURE}</span>

Verfasst: 01.10.2004 17:36
von Smith
Elvis hat geschrieben:mhh das klappt aber nicht..

Code: Alles auswählen

/* The content of the posts (body of text) */
.postbody { font-size : 12px;  color : #CCCCFF}
a.postlink:link	{ text-decoration: none; color : #66CCFF }
a.postlink:visited { text-decoration: none; color : #66CCFF; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* The content of the signatur */
.signature { font-size : 10px;}
a.postlink:link    { text-decoration: none; color : #ff0000 }
a.postlink:visited { text-decoration: none; color : #ff0000; }
a.postlink:hover { text-decoration: underline; color : #ff0000}

<span class="postbody">{postrow.MESSAGE}</span><span class="signature">{postrow.SIGNATURE}</span>
Lies mal bitte genau. Den HTML Teil nicht in die CSS...

Verfasst: 01.10.2004 17:39
von Elvis
das weis ich nicht in der CSS Datei.

ich will ja nur in der Signatur den unterschied haben und nicht in den postings.
in der Signatur im Userprofile trage ich eine ganznormalen Link ein (http://www.google.de) der soll meinetwegen Rot dargestellt werden und wenn ich den gleichen im posting poste sol lder meinetwegen Blau dargestellt werden.

Verfasst: 01.10.2004 20:37
von Acid
Ich wüsste jetzt nicht wie phpBB unterscheiden sollte, ob der Link (der normalerweise mit .postlink definiert wird) in einem Beitrag geschrieben wurde oder in der Signatur enthalten ist. :oops:

Die einzige Möglichkeit wäre wie oben beschrieben, nur wird damit die komplette Signatur angepasst, nicht nur ein eventueller Link.

PS: Und wenn der User Farben in seiner Signatur benutzt, wäre das sowieso hinfällig. :wink:

Verfasst: 01.10.2004 22:09
von Elvis
PS: Und wenn der User Farben in seiner Signatur benutzt, wäre das sowieso hinfällig.
Stimmt ja, garnicht drann gedacht :roll:
dann hat sich das Thema ja erledigt.