Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: qse on October 09, 2005, 08:28:45 AM

Title: color of link in massege
Post by: qse on October 09, 2005, 08:28:45 AM
hello ...
I need a mod about color of link in masseges I think links must be different color and I try to do it from style.css but all links be same I need only make a change in massages links

thanx
Title: Re: color of link in massege
Post by: xenovanis on October 09, 2005, 08:35:15 AM
Try to add something like this to your stylesheet


.post a:link, .post a: visited
{
      color: #ffffff;
}

.post a:hover
{
      color: #000000;
      text-decoration: underline;
}


Not sure if it will work, though, but it's worth a try  ;)
Title: Re: color of link in massege
Post by: qse on October 09, 2005, 08:46:36 AM
xenovanis not work  :'(
Title: Re: color of link in massege
Post by: xenovanis on October 09, 2005, 08:54:51 AM
Try this:


.post a:link, .post a:visited
{
      color: #ffffff;
}

.post a:hover
{
      color: #000000;
      text-decoration: underline;
}
Title: Re: color of link in massege
Post by: qse on October 09, 2005, 09:05:29 AM
no again :'(
Title: Re: color of link in massege
Post by: xenovanis on October 09, 2005, 09:06:58 AM
Really? I had this working on my site. Try hitting ctrl-f5 to clear your cache. What version of SMF are you using? Are you using a custom theme?
Title: Re: color of link in massege
Post by: qse on October 09, 2005, 09:11:15 AM
my theme is Elemet and smf 1.0.5
Title: Re: color of link in massege
Post by: xenovanis on October 09, 2005, 09:13:11 AM
Can you post a link to your forum?
Title: Re: color of link in massege
Post by: qse on October 09, 2005, 09:16:45 AM
I sent a link to my forum and same again
an ı try on hi:ha theme but same ::)
Title: Re: color of link in massege
Post by: xenovanis on October 09, 2005, 09:24:12 AM
Ah, I found the problem. 1.1 uses the postclass, 1.0 doesn't. In Display.template.php find


<div style="overflow: auto; width: 100%;">', $message['body'], '</div>


replace with

<div class="post" style="overflow: auto; width: 100%;">', $message['body'], '</div>


then the addition to the stylesheet should work.  ;)
Title: Re: color of link in massege
Post by: qse on October 09, 2005, 09:29:41 AM
yes its work so so thaxx   ;D
Title: Re: color of link in massege
Post by: vaga on October 30, 2005, 12:52:59 PM
Quote from: xenovanis on October 09, 2005, 09:24:12 AM
Ah, I found the problem. 1.1 uses the postclass, 1.0 doesn't. In Display.template.php find


<div style="overflow: auto; width: 100%;">', $message['body'], '</div>


replace with

<div class="post" style="overflow: auto; width: 100%;">', $message['body'], '</div>


then the addition to the stylesheet should work.  ;)

i don't found code like that in my display.template.php

is this in there ? /themes/default/Display.template.php
or themes/mytheme/Display.template.php ??

i found only like that code..(both)

<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

and i'm using 1.1rc smf...