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.

How to change the color of links inside a post?

3 posters

Go down

How to change the color of links inside a post? Empty How to change the color of links inside a post?

Post by Biker December 8th 2013, 11:20

Here are my problems.

1)I want to change the color of the links inside a post. 
My problem is that when i try to do it by changing it from the admin panel-> Apperarance -> colors, it changes all the colors of visiting links in the forum. 

I just want to change the color of the links inside the post and nothing else.

2)Also another problem. There are times when a member posts a link, without renaming it by pressing the link button in the bar above. This results into having a link that covers 4 or 5 lines sometimes in the post. I have seen in some forums that when something like this happens, the forum has a script or something that "cuts" the appearance of the link into just some words. Is that possible in forumotion forums?
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 14:28

Hello,
What is the address of your forum ?
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 15:50

It's under my nickname, press the button with the globe on it.Wink
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 15:57

Add to your CSS Stylesheet
Code:

.post-entry a{
color: AddYourColor!important;
}
Do not forget to edit "addyourcolor" with your color Wink !
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 16:07

Thank you very much! works just fine!

Any solution about my second problem?
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 16:14

Your welcome. Can you explain me again and show me an example ? Thanks!
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 16:28

I will try to give you an example manually. 

Let's say a member posts a link in a post and he is not using the link button. He just copies the address and pastes it. So we have a link in the post that goes something like this:

http://gr.omg.yahoo.com/news/quot-%CE%B3%CE%B9%CE%B5-%CE%BC%CE%BF%CF%85-%CF%80%CE%BF%CF%85-%CF%80%CE%B1%CF%82-%CE%BC%CE%AC%CE%BD%CE%B1-%CE%B8%CE%B1-%CE%BA%CE%B1%CE%B2%CE%B1%CE%BB%CE%AE%CF%83%CF%89-161500485.html


Which is not good, as you can understand. Imagine now 3 or 4 links like this in a post...

The thing is i can't teach each member individually how to use the link button (though i have posted a tutorial, but noone reads it).

Is there a way this link to be cut in fewer words, but still be ok?

I have seen something like that in some forums. They use the first words of the link, and the last. It must be somekind of script. The result comes on screen as something like this:

http://gr.omg.yahoo.com/news/....CF%89-161500485.html
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 16:35

Well, this appers like this because it's on another language, and the links only support english characters (a,b,c,d etc) not characters like ă â ©..
If you want short liks, you can try http://goo.gl/ . It's from Google, you can count clicks and you'll have short links like http://goo.gl/fvKChu
Hope this helps you!
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 17:00

Hmm, it doesn't work for me, because if it is to teach them this way, i prefer to teach them the link button. 

But i don't think it has something to do with the language. There, this is in English, and still is a long link:
http://www.ebay.co.uk/itm/Honda-VTR1000R-SP1-SP2-SP-1-SP-2-RC51-Dan-Kyle-Racing-USA-Custom-Shock-Linkage-/321226953199?pt=UK_Motorcycle_Parts_13&hash=item4aca9e51ef
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 17:13

This should work.
Code:

.post-entry a{
display: block!important;
width: 55px!important;
height: 20px!important;}
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 17:37

it partly works. It squeezes the linκ too much and spoiles the post.

How to change the color of links inside a post? F8910560-9fb1-4fab-94a8-4278eaee4e0b

I want to have the cut link, only in a single line. Half of line actually.
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 17:50

Try this:
Code:

.post-entry a{
display: block!important;
width: 20px!important;
height: 20px!important;}
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 18:00

Nope, same result.
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 18:09

But this ?
Code:
.post-entry a:visited, .post-entry a:active, .post-entry a:link{
display: block;
max-width: 10%!important;
max-height: 15px!important;}
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 18:14

No. Slightly improved though!
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 8th 2013, 18:16

Can you let visitor to see the links, in one forum ? Thanks. After this, please give me address of that forum/topic..
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 8th 2013, 18:34

http://www.mototrail.net/t3842-topic#79285

I 'll leave it open for quests for the next couple of hours.


Note that the last one we 've tried ruins the photo links.

Edit: I have removed the last piece of code because the members of my forum couldn't see any photos. 
If you find a way that works, please post in this topic.

Thanks for all the help you are providing and for your effort!
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by SLGray December 9th 2013, 01:19

Are you referring to this:
Code:
[url=LINK]Text[/url]
Code:
[url=http://www.ebay.co.uk/itm/Honda-VTR1000R-SP1-SP2-SP-1-SP-2-RC51-Dan-Kyle-Racing-USA-Custom-Shock-Linkage-/321226953199?pt=UK_Motorcycle_Parts_13&hash=item4aca9e51ef]Example[/url]
Example: Example


How to change the color of links inside a post? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 9th 2013, 02:20

No. Check the 7th and 9th posts. I pretty much explain what i want.

The first part of my problem was solved by Legolas. Now the second part remains to be solved.
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Legolas December 9th 2013, 15:45

I can't understand why is not working, on my forum it's working fine. Let try with javascript Wink . Add this javascript code and tick just topics..
Code:

$(document).ready(function(){
$('.post-entry a').css({"width":"20px","height":"20px","display":"block"});
});
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to change the color of links inside a post? Empty Re: How to change the color of links inside a post?

Post by Biker December 9th 2013, 19:51

Sorry, same thing. How to change the color of links inside a post? Mouais 

Must be an invision board thing. Perhaps it works fine on punBB.
avatar
Biker
Forumember

Male Posts : 96
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

Back to top


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