The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to change the color of links inside a post?

View previous topic View next topic Go down

How to change the color of links inside a post?

Post by Biker on December 8th 2013, 10:20 am

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?

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 1:28 pm

Hello,
What is the address of your forum ?

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 2:50 pm

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

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 2:57 pm

Add to your CSS Stylesheet
Code:

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 3:07 pm

Thank you very much! works just fine!

Any solution about my second problem?

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 3:14 pm

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 3:28 pm

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

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 3:35 pm

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
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 4:00 pm

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

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 4:13 pm

This should work.
Code:

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 4:37 pm

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



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

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 4:50 pm

Try this:
Code:

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 5:00 pm

Nope, same result.

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 5:09 pm

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
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 5:14 pm

No. Slightly improved though!

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 8th 2013, 5:16 pm

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 8th 2013, 5:34 pm

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!

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by SLGray on December 9th 2013, 12:19 am

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


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


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

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

Post by Biker on December 9th 2013, 1:20 am

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.

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

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

Post by Legolas on December 9th 2013, 2:45 pm

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
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

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

Post by Biker on December 9th 2013, 6:51 pm

Sorry, same thing.

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

Biker
Forumember

Male Posts : 95
Reputation : 1
Language : greek

http://www.mototrail.net

Back to top Go down

View previous topic View next topic Back to top


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