Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2010-12-27, 03:51 AM
(This post was last modified: 2010-12-27, 03:55 AM by Yaldaram.)
(2010-12-26, 12:03 PM)TheGodFather Wrote: i mean completely disabling the minimum post count required to post links.
certain groups must not be able to post links forever. Find; (in-line)
&& $posts > $postcount
and remove.
(2010-12-26, 12:03 PM)TheGodFather Wrote: and with the option you included, is good. but i dont want to activate this on all forums. i need 5-10 forums must be links postable and remaining 30-40 forums not. so if we have excluding option - we just enter those 5-10 forums, where the other forums are included with the links posting restriction.
Open plugin and find inline;
in_array($fid,$forums)
and replace it with;
!in_array($fid,$forums)
Now add "excluded forums" only..
(2010-12-26, 06:03 PM)killer Wrote: yes, I did "ON" the plugin..
but perhaps it is a bug, that when I try a URL without http://, it post it and do not give any notification, however if I include http://, it give the limit notification..
technically, a url with or without http:// both are clickable, so this plugin should not let the user post a user, without or without http:// FYI, yaldaram.com is not click-able link. http://yaldaram.com is..
(2010-12-26, 06:03 PM)killer Wrote: One more problem I'm having after activating this version 0.2, is forum give error when posting/replying any thread, please see attachment.
Fixed.
Posts: 180
Threads: 40
Joined: Sep 2009
Reputation:
1
(2010-12-27, 03:51 AM)Yaldaram Wrote: (2010-12-26, 06:03 PM)killer Wrote: yes, I did "ON" the plugin..
but perhaps it is a bug, that when I try a URL without http://, it post it and do not give any notification, however if I include http://, it give the limit notification..
technically, a url with or without http:// both are clickable, so this plugin should not let the user post a user, without or without http:// FYI, yaldaram.com is not click-able link. http://yaldaram.com is.. but www.yaldaram.com is clickable, if you just make a post, and using yaldaram.com or www.yaldaram.com, and click on post reply, mybb make it clickable automatically..
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2010-12-27, 11:53 AM
(This post was last modified: 2010-12-27, 11:54 AM by Yaldaram.)
No, if you write yaldaram.com then its not click-able. If you write http://yaldaram.com
then it makes the links automatically click-able. Like; http://yaldaram.com
Posts: 180
Threads: 40
Joined: Sep 2009
Reputation:
1
2010-12-27, 12:58 PM
(This post was last modified: 2010-12-27, 12:59 PM by killer.)
(2010-12-27, 11:53 AM)Yaldaram Wrote: No, if you write yaldaram.com then its not click-able. If you write http://yaldaram.com then it makes the links automatically click-able. Like; http://yaldaram.com
Well If I was not clear before, then let me clear, that I meant to say, that a url with www (without http://) is also a clickable link,,
you can try a post with just www[dot]test.com
replace [dot] with .
and this plugin will still let it go without showing any warning.
Thanks.
Posts: 689
Threads: 72
Joined: Aug 2010
Reputation:
16
2010-12-27, 01:06 PM
(This post was last modified: 2010-12-27, 02:12 PM by TheGodFather.)
This user has been denied support.
http://www.yaldaram.com/
http://yaldaram.com/
https://www.yaldaram.com/
https://yaldaram.com/
www. yaldaram.com
user must not be able to post links when they use any of the above format.
thats what killer means.
Posts: 180
Threads: 40
Joined: Sep 2009
Reputation:
1
2010-12-27, 01:37 PM
(This post was last modified: 2010-12-27, 01:57 PM by killer.)
(2010-12-27, 01:06 PM)TheGodFather Wrote: http://www.yaldaram.com/
http://yaldaram.com/
https://www.yaldaram.com/
https://yaldaram.com/
user must not be able to post links when they use any of the above format.
thats what killer means. thanks dear for your clarification.
this plugin only give warning, when http:// is included in url, however if I try to post a url "with www" + "without http://" (www[dot]test.com), it let it post without any warning, however a url with www +without http:// is still a clickable url.
Also I have a request to make, that the warning it show
Please correct the following errors before continuing:
You cannot post clickable links to this forum threads and posts.
Isnt it possible to add number of posts in this warning like
Please correct the following errors before continuing:
You cannot post clickable links to this forum threads and posts unless you have more then xx posts.
I'm not a programmer but I just made some edit in your plugin to complete my request, that to add number of posts in warning message.
I replaced
$post->set_error(sprintf("You cannot post clickable links to this forum threads and posts.", "No Links Allowed"));
$post->set_error(sprintf("You cannot post clickable links to this forum threads and posts. Unless you have ".$posts." posts", "No Links Allowed"));
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
2010-12-27, 02:50 PM
(This post was last modified: 2010-12-27, 02:51 PM by Yaldaram.)
I think you are not understanding killer.
Try to post the following links;
http://www.yaldaram.com [error]
http://yaldaram.com [error]
www.yaldaram.com
[No-error]
yaldaram.com [no-error]
Here first two shows errors while the rest of two don't throw error. Because first two are using "http://" in there URLs. This plugin restrict the use of http:// in links, because this makes the links "click-able".
In the rest of two links, yaldaram.com is NOT click-able because it is not "click-able", www.yaldaram.com shows error because when you try to post with www , MyBB automatically adds http:// as a prefix of www. which makes the links "click-able".
This plugin is designed to restrict the use of such click-able links, other wise if you restrict the use of even www, then I would have to say that you are going to lose your users by annoying them.
---------
(2010-12-27, 01:37 PM)killer Wrote: I'm not a programmer but I just made some edit in your plugin to complete my request, that to add number of posts in warning message.
I replaced
$post->set_error(sprintf("You cannot post clickable links to this forum threads and posts.", "No Links Allowed"));
$post->set_error(sprintf("You cannot post clickable links to this forum threads and posts. Unless you have ".$posts." posts", "No Links Allowed"));
Its a nice suggestion, I've added this in the new version, available for download on the first post.
Posts: 180
Threads: 40
Joined: Sep 2009
Reputation:
1
okies
Posts: 13,283
Threads: 159
Joined: Oct 2010
Reputation:
1,291
Thanks for your suggestions too killer
Posts: 180
Threads: 40
Joined: Sep 2009
Reputation:
1
(2010-12-27, 03:26 PM)Yaldaram Wrote: Thanks for your suggestions too killer
you're welcome
|