Limit the number of links inserted in posts?
4 posters
Page 1 of 1
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!
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.
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
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
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
Re: Limit the number of links inserted in posts?
APE wrote:Please Don't mark your thread as solved until it is really 100% solved
I have changed the Icon back to in progress
Thank you #APE <3 You are friendly and wonderful
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
Ch@lo Valdez- Forumember
- Posts : 138
Reputation : 50
Language : spanish
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