Besuchte Links sollen sich nicht in der Faebe verändern

Alles zu Styles, Templates, Icons und Smilies für phpBB 2.0, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Knoepfchen
Mitglied
Beiträge: 33
Registriert: 20.02.2007 16:17

Besuchte Links sollen sich nicht in der Faebe verändern

Beitrag von Knoepfchen »

Hallo, an welcher Position in der CSS kann ich einstellen das ein besuchter Link nicht die Farbe ändert wenn man ihn angeklickt hat?

Vielen Dank!
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Hm, bei phpBB3 ist es so:


In der colours.css

Suche dort einfach nach

Code: Alles auswählen

visited
Alle Bereiche, die ein "visited" beinhalten sollten nagepasst werden.

Beispiel:

Code: Alles auswählen

a:visited
Bei phpbb2 ( wenn die CSS Dateien aktiviert worden sind ) kannst Du genauso vorgehen.
Knoepfchen
Mitglied
Beiträge: 33
Registriert: 20.02.2007 16:17

Beitrag von Knoepfchen »

Also ich zeig mal meine CSS:

*/


/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #339933;
scrollbar-face-color: #339933;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #339933;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #;
scrollbar-track-color: #ffff99;
scrollbar-darkshadow-color: #98AAB1;
}

/* General font families for common tags */
font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link, a:active, a:visited { color : #339933; }
a:hover { text-decoration: underline; color : #339933; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}


/* This is the border line & background colour round the entire page */
.bodyline { background-color: #ffff99; border: 1px #ffff99 solid; }

/* This is the outline round the main forum tables */
.forumline { background-color: #339933; border: 2px #339933 solid; }


/* Main table cell colours and backgrounds */
td.row1 { background-color: #ffff99; }
td.row2 { background-color: #ffff99; }
td.row3 { background-color: #339933; }


/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #339933;
background-image: url('images/cellpic2.jpg');
background-repeat: repeat-y
}

/* Header cells - the blue and silver gradient backgrounds */
th {
color: #ffff99; font-size: 11px; font-weight : bold;
background-color: #; height: 25px;
background-image: url('images/cellpic3.gif');
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
background-image: url('images/cellpic1.gif');
background-color:#D1D7DC; border: medium solid #339933; height: 28px
}


/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat, td.catHead, td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR {
font-weight: bold; border: #339933; border-style: solid; height: 28px; }
td.row3Right, td.spaceRow {
background-color: #D1D7DC; border: #339933; border-style: solid; }

th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle, h1, h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen, .genmed, .gensmall { color : #000000; }
a.gen, a.genmed, a.gensmall { color: #; text-decoration: none; }
a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #339933; text-decoration: underline; }


/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : 11px; color : #000000 }
a.mainmenu { text-decoration: none; color : #; }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }


/* Forum category titles */
.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #}
a.cattitle { text-decoration: none; color : #ffff99; }
a.cattitle:hover{ text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #339933; }
a.forumlink { text-decoration: none; color : #339933; }
a.forumlink:hover{ text-decoration: underline; color : #339933; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: 11px; color : #000000;}
a.nav { text-decoration: none; color : #339933; }
a.nav:hover { text-decoration: underline; }


/* titles for the topics: could specify viewed link colour too */
.topictitle { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link { text-decoration: none; color : #339933; }
a.topictitle:visited { text-decoration: none; color : #339933; }
a.topictitle:hover { text-decoration: underline; color : #339933; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails { font-size : 10px; color : #000000; }


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


/* Quote & Code blocks */
.code {
font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}


/* Form elements */
input, textarea, select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #000000;
}

/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
background-color : #ffff99;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
background-color : #FAFAFA;
font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: #339933; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");


Vor dem Visited steht schon ein a: aber trotzdem werden verändern die besuchten links ihre farbe.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Bitte entferne Deinen langen Code und verlinke die css Datei als TXT Datei.


Hast Du mal einen Link zu Deinem Forum ?

Zudem:

Code: Alles auswählen

a.postlink:visited { text-decoration: none; color : #5493B4; } 
a.postlink:hover { text-decoration: underline; color : #DD6900} 
Links in Beiträgen werden also noch anders markiert.
Knoepfchen
Mitglied
Beiträge: 33
Registriert: 20.02.2007 16:17

Beitrag von Knoepfchen »

www.ac-germania.com/forum

Wenn man auf Die Forenkategorien (Verein usw) geht und diese Links verfolgt und dann wieder zurück geht werden diese nichtmehr dargestellt.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17473
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Das ist richtig.

Diese Links haben dann den Status "active"

Du musst also noch die CSS Werte für "active" anpassen.
Knoepfchen
Mitglied
Beiträge: 33
Registriert: 20.02.2007 16:17

Beitrag von Knoepfchen »

Un dwo stehen diese werte ??
Antworten

Zurück zu „phpBB 2.0: Styles, Templates und Grafiken“