News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Link text colour and posting links

Started by goaskanna, June 28, 2008, 05:10:03 AM

Previous topic - Next topic

goaskanna

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


ThorstenE

you should install URL Popup
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.

greyknight17

Anna, is this issue resolved? The default link color should be blue unless you changed the style as mentioned earlier.

goaskanna

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

Rumbaar

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;
}
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

goaskanna

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

goaskanna

Whoot! That worked perfectly! Thank you so much!

Anna

goaskanna

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

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

goaskanna

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

Advertisement: