Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: goaskanna on June 28, 2008, 05:10:03 AM

Title: Link text colour and posting links
Post by: goaskanna on June 28, 2008, 05:10:03 AM
I'm using 1.1.5 and the deafult core theme.

When people post links in my forum they have the same colour (black) as the rest of the post. How/where can I change this to make the links show up as blue instead of black?

Also, I like text links, but can't quite figure out how to do that with the bbcode?

Example: I want this to be a text link pointing somewhere (//http://) (I would also want it to be blue instead of black)

I type in the words, click on the Insert Hyperlink and that's where I get stuck, as I would expect a popup box where I could actually insert the link and it would make the text into a clickable link. Is there any simple way I can do this?

Thanks

Anna

Title: Re: Link text colour and posting links
Post by: ThorstenE on June 28, 2008, 08:39:06 AM
you should install URL Popup (http://custom.simplemachines.org/mods/index.php?mod=451)
manual linking a text is done by:
[url=http://custom.simplemachines.org/mods/index.php?mod=451]URL Popup[/url]


for changing a hyperlink's color you have to edit the styles.css from your theme ..
Look for Tags like a:hover, a:visited, a:active and a
they need an attribute 
color: #0000FF for blue as example.
Title: Re: Link text colour and posting links
Post by: greyknight17 on July 05, 2008, 08:18:29 PM
Anna, is this issue resolved? The default link color should be blue unless you changed the style as mentioned earlier.
Title: Re: Link text colour and posting links
Post by: goaskanna on July 11, 2008, 02:24:07 PM
I tried installing the url popup but it didn't work for me, sadly.

I'm searching through the styles css but not having much luck. Not to worry, it's not utterly mega important, would have just been nice.

Thanks for the info though :D

Anna
Title: Re: Link text colour and posting links
Post by: Rumbaar on July 15, 2008, 03:13:07 AM
The help section of your forum is always a good source for bbcode references
http://www.simplemachines.org/community/index.php?action=help;page=post#bbcref

Now at the very top of your style.css file holds the style for URL link colors etc:
/* Normal, standard links. */
a:link
{
color: #476C8E;
text-decoration: none;
}
a:visited
{
color: #476C8E;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}
Title: Re: Link text colour and posting links
Post by: goaskanna on July 18, 2008, 07:39:50 AM
Ahh, I found it, thanks so much, mine looks different to that, so I'm thinking I just change the numbers?

/* Normal, standard links. */
a:link
{
color: #000000;
text-decoration: none;
}
a:visited
{
color: #000000;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}


Thanks for that :)

Anna
Title: Re: Link text colour and posting links
Post by: goaskanna on July 18, 2008, 07:42:53 AM
Whoot! That worked perfectly! Thank you so much!

Anna
Title: Re: Link text colour and posting links
Post by: goaskanna on July 18, 2008, 07:50:09 AM
Hmm, maybe I was too quick, that actually changed every link in the forum; people names, thread titles, visited threads, non visited threads etc.

Back to the drawing board ;)

Anna
Title: Re: Link text colour and posting links
Post by: Rumbaar on July 18, 2008, 08:01:49 AM
Yes that will affect all links.  You might be able to define a new style for the URL links via the bbcode in Subs.php, but that too would affect all link created by bbcode as well.
Title: Re: Link text colour and posting links
Post by: goaskanna on July 18, 2008, 08:06:19 AM
Ahh, ok, I guess it'll just have to stay black until I can find a colour that works well with my forum then :)

Thanks anyway, at least now I know where to change it when that time comes! :D

Anna