How can I stop all members posting external links on my forum regardless to how long they have been a member
4 posters
Stop posting external links
FIB- Forumember
- Posts : 491
Reputation : 2
Language : English
Location : UK
- Post n°1
Stop posting external links
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°2
Re: Stop posting external links
Hi @FIB,
I suppose one way to do this would be to hide the links via CSS. For example, add the following CSS to your stylesheet :
with your domain.
That way it should only show links from your domain, and hide external links.
I suppose one way to do this would be to hide the links via CSS. For example, add the following CSS to your stylesheet :
- Code:
.postbody a {
display:none;
}
.postbody a[href^="/"], .postbody a[href^="#"], .postbody a[href^="javascript"], .postbody a[href*="help.forumotion.com"], .postbody a:not([href]) {
display:inline;
}
|
That way it should only show links from your domain, and hide external links.
Kirbs- Forumember
- Posts : 628
Reputation : 18
Language : English
- Post n°3
Re: Stop posting external links
Hi ange, what if those links are pictures put in signatures or topics as img bbcodes, would they still show or not?
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°4
Re: Stop posting external links
If it's linking to an image, you'll have to whitelist the image host. ( or extension ) For example, add this selector to the set to display links to servimg :
- Code:
.postbody a[href*="servimg.com"]
FIB- Forumember
- Posts : 491
Reputation : 2
Language : English
Location : UK
- Post n°5
Re: Stop posting external links
Thanks @Ange TuteurI'll give both a try
Last edited by FIB on November 7th 2015, 8:06 am; edited 1 time in total
brandon_g- Manager
- Posts : 10113
Reputation : 923
Language : English
Location : USA
- Post n°6
Re: Stop posting external links
Hello,
@FIB I just wanted to let you know, your not really tagging Ange when you are trying to tag him, instead you are tagging a different Ange. I know it is difficult to tag bim because he has a space in his username.
Whenever someone has a space in their username, you must the username in between " marks, so to tag Ange you would have to do it like this:
Its a common mistake, one that I made for awhile as well, until I learned how to tag usernames with spaces in it .
Just wanted to let you know for future refrence .
Have a great day, hope you find a solution to your problem .
-Brandon
@FIB I just wanted to let you know, your not really tagging Ange when you are trying to tag him, instead you are tagging a different Ange. I know it is difficult to tag bim because he has a space in his username.
Whenever someone has a space in their username, you must the username in between " marks, so to tag Ange you would have to do it like this:
- Code:
@"Ange Tuteur"
Its a common mistake, one that I made for awhile as well, until I learned how to tag usernames with spaces in it .
Just wanted to let you know for future refrence .
Have a great day, hope you find a solution to your problem .
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
FIB- Forumember
- Posts : 491
Reputation : 2
Language : English
Location : UK
- Post n°7
Re: Stop posting external links
Thanks for the tip @brandon_g
brandon_g- Manager
- Posts : 10113
Reputation : 923
Language : English
Location : USA
- Post n°8
Re: Stop posting external links
Your welcome, anytime .
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points