News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

color of link in massege

Started by qse, October 09, 2005, 08:28:45 AM

Previous topic - Next topic

qse

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
eski smfci

xenovanis

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  ;)
"Insanity: doing the same thing over and over again and expecting different results."

qse

eski smfci

xenovanis

Try this:


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

.post a:hover
{
      color: #000000;
      text-decoration: underline;
}
"Insanity: doing the same thing over and over again and expecting different results."

qse

eski smfci

xenovanis

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?
"Insanity: doing the same thing over and over again and expecting different results."

qse

my theme is Elemet and smf 1.0.5
eski smfci

xenovanis

Can you post a link to your forum?
"Insanity: doing the same thing over and over again and expecting different results."

qse

I sent a link to my forum and same again
an ı try on hi:ha theme but same ::)
eski smfci

xenovanis

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.  ;)
"Insanity: doing the same thing over and over again and expecting different results."

qse

eski smfci

vaga

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...

Advertisement: