Limit the number of links inserted in posts?
Limit the number of links inserted in posts?
Hello, I am a member from Vietnam, are happy to proceed forumotion.
I have a difficulty in managing posts of other members. I need people to help: Please guide me how to Restrict some links inserted in posts?Example: Members Only insert up to 3 links in posts
If members inserted more than 3 links will appear a warning!
I would like to thank everyone, I love #forumotion!
ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Re: Limit the number of links inserted in posts?
Hãy giúp tôi, làm ơn 

ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Re: Limit the number of links inserted in posts?
@ZuniThoang wrote:Hãy giúp tôi, làm ơn
Please speak in English, as this is an English support forum. If you need support in another language, please look at the widget to the right that says ''Official Support Forums.''
|


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray- Administrator
-
Posts : 48821
Reputation : 3409
Language : English
Location : United States
Re: Limit the number of links inserted in posts?
Sorry @SLGray because I do not understand, everyone please help me with this, please guide me as I presented the request at the post
ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Re: Limit the number of links inserted in posts?
Please Don't mark your thread as solved until it is really 100% solved
I have changed the Icon back to in progress
I have changed the Icon back to in progress
Ape- Administrator
-
Posts : 16324
Reputation : 1757
Language : fluent in dork / mumbojumbo & English haha
Re: Limit the number of links inserted in posts?
ok try
- Code:
$(function () {
$(function () {
if (/\/t\d+/g.test(window.location.pathname)) {
var A = document.forms.post.message;
$(A).sceditor('instance').updateOriginal();
$(A).sceditor('instance').keyUp(function () {
var
C = $(A).sceditor('instance').val().match(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/ig),
D = 5,
E = C && C.length;
E == D && alert('you have ' + E + ' links, for reply, remove ' + Number(E - D));
});
}
});
});
Ch@lo Valdez- Forumember
-
Posts : 138
Reputation : 50
Language : spanish
ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Re: Limit the number of links inserted in posts?
@Ch@lo Valdez
This code does not work on my forum, Please help me make the code could work on my forum
I use phpbb3 forum
Thank you very much
This code does not work on my forum, Please help me make the code could work on my forum
I use phpbb3 forum
Thank you very much
ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Ch@lo Valdez- Forumember
-
Posts : 138
Reputation : 50
Language : spanish
ZuniThoang- Forumember
-
Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi
Re: Limit the number of links inserted in posts?
works fine?

if you're happy with my work, maybe you can thanks in the code post

if you're happy with my work, maybe you can thanks in the code post
Ch@lo Valdez- Forumember
-
Posts : 138
Reputation : 50
Language : spanish
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum