The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Different color for links on different pages

2 posters

Go down

Different color for links on different pages Empty Different color for links on different pages

Post by lustromlingmech November 29th 2012, 7:56 pm

How do I make the forum so that all the main links (the links to topics, forums, usernames' links, etc) remain black, while the links within the posts are all blue, even if the user doesn't type something similar to this:

Code:
[url=http://myrandomurl.com/][color=blue]a random url[/color][/url]
avatar
lustromlingmech
Forumember

Male Posts : 66
Reputation : 1
Language : English

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee November 30th 2012, 5:29 am

Different color for links on different pages 4fOZ3

You can change it there.

ACP < Display < Colors < Change < Save Smile
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by lustromlingmech November 30th 2012, 5:34 am

That changes every link in the forum. I want only the links in the user messages to be blue, while everything else is black. Think I have to put CSS in the site, but I don't know how to do it.
avatar
lustromlingmech
Forumember

Male Posts : 66
Reputation : 1
Language : English

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee November 30th 2012, 5:39 am

Well, putting in a

a.hover
a.link and the liking would primarily adjust everything as well so yeah, I don't think that's possible unless you allow the HTML in your forum name and then instead of putting in a name for the specified forum, have it done by making an internal CSS in the description and as well as with the Forum Topic in the following forum which would require a lot of work ._.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by lustromlingmech November 30th 2012, 5:43 am

There's got to be some kind of class the messages are in. If we look at a page's source, like this current page, the text must be in a <div> tag, and there must be a class attribute in the tag. Could you read the source code of this page and see what there is?


Last edited by lustromlingmech on November 30th 2012, 5:51 am; edited 2 times in total
avatar
lustromlingmech
Forumember

Male Posts : 66
Reputation : 1
Language : English

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee November 30th 2012, 5:46 am

I really don't wanna get sued so I'd rather not ._.

Anyway, that's what I'm saying, in the forum description, this is the code I was talking about but this one's just a sample:

Code:
div#topic
{a.hover: blah blah blah
a.link: blah blah blah
}
<body>
<div id="topic">Lalala</div>
</body>

Or something near to that proximity since the code provided is a bit insufficient.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by lustromlingmech November 30th 2012, 6:00 am

I don't think you would get sued. Developers encourage other developers to do it (at least, the book I'm learning HTML and CSS recommends it). Why else would there be a button that says "view source code" in Firefox and Safari?

Anyways, I'll just play around on my forum with and try different things. I'll probably post what I am doing about it on this topic.
avatar
lustromlingmech
Forumember

Male Posts : 66
Reputation : 1
Language : English

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee November 30th 2012, 7:11 am

Please do, but yeah, ...

Anyway, I'll adjust the code for you if needed, just place the code in the forum Description as stated in the former posts above and see if it'll work.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee November 30th 2012, 1:12 pm

Rideem, he wants 2 colors. Shouldn't he add an a.hover stuff and then the name of the forum name since he wants it specified?
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by lustromlingmech November 30th 2012, 3:37 pm

Actually that's what I wanted. If I'm not mistaken, that will only affect the tags <a> in a <div class="postbody"> tag. I basically needed to know what class the post body was in, then I could do the rest.
avatar
lustromlingmech
Forumember

Male Posts : 66
Reputation : 1
Language : English

Back to top Go down

Different color for links on different pages Empty Re: Different color for links on different pages

Post by Kaizer Lee December 1st 2012, 4:39 am

Well then, you can just use Google Chrome to find out the class names, id names you need in the inspect element in right click and stuff.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum