MyBB Central

Full Version: [Stylesheet] Edit something in link from post and thread only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I make the links in threads and posts be underlined without letting all other links be?

I know I could edit a:link, but that will make almost every links be that color..
I only wants this to happens to links from posts, that members make.

Any clue?
Don't think this is possible, you could create a mycode tho
Do you think it can be done this way?
Adding both?
Code:
\[url=(.*?)\](.*?)\[/url\]

<a href="$1" target="_blank">$2</a>


Code:
\[url\](.*?)\[/url\]

<a href="$1" target="_blank">$1</a>
And add a style to it also.
Just edit the postbit template so post have a class then edit link styles for that class.

Eg:

Add <div class="post-content">

then in your CSS add

.post-content a:link {
text-decoration: underline;
}
Thanks.
This sounds logic enough.
Will do this Big Grin