Author |
Message |
rajaram
Joined: 21 Aug 2006 Posts: 6
|
Posted: Mon Aug 21, 2006 5:40 am Post subject: License |
|
|
Can i make any changes with the unregistered version. Will you give the details about the license. Just eager to know.
ps: The MOD rocks |
|
|
admin Site Admin
Joined: 18 Apr 2006 Posts: 805 Location: Saint-Petersburg, Russia
|
Posted: Tue Aug 22, 2006 1:47 am Post subject: |
|
|
Hi rajaram, yes, you can make any changes in code. |
|
|
rajaram
Joined: 21 Aug 2006 Posts: 6
|
Posted: Thu Aug 24, 2006 5:25 am Post subject: |
|
|
Thanks for response.
Kindly help me in this regard:
Currently no url is allowed to post.
But in my case, a guest should not post more than 2 urls. help me to handle this.
Thanks in advance. |
|
|
admin Site Admin
Joined: 18 Apr 2006 Posts: 805 Location: Saint-Petersburg, Russia
|
Posted: Fri Aug 25, 2006 1:49 am Post subject: |
|
|
In "includes/funcions_bbas.php", find the following fragment:
Code: |
// No contact information -- no more work
//
if (! count($contacts)) {
return;
}
|
and change it to:
Code: |
// Not more than 2 links -- no more work
//
if (count($contacts) <= 2) {
return;
}
|
I haven't tested this change, but I think it should work. Drop me a note on results. |
|
|
rajaram
Joined: 21 Aug 2006 Posts: 6
|
|
|
admin Site Admin
Joined: 18 Apr 2006 Posts: 805 Location: Saint-Petersburg, Russia
|
Posted: Sat Aug 26, 2006 2:18 am Post subject: |
|
|
Hi!
Yes, it is so, it's made intentionally, and I think it's the right way. If you prefer calculate it as 3 links, edit ""includes/funcions_bbas.php" again, replacing
Code: | return array_unique($ret); |
by just
|
|
|
Guest
|
Posted: Tue Aug 29, 2006 6:14 am Post subject: |
|
|
How'd I do?
http://www.anyurl.com |
|
|
rajaram
Joined: 21 Aug 2006 Posts: 6
|
|
|
rajaram
Joined: 21 Aug 2006 Posts: 6
|
Posted: Tue Aug 29, 2006 1:40 pm Post subject: |
|
|
HI!
ONE MORE.
when a guest posts a reply by quotting the previous post(posted by registered user) which contains three links, the mod prevents him from posting, as it considers those links into count. This shouldn't happen. links inside quote tag has to be ignored.(this could be added as a feature with the mod....just my thought....ignore if i'm wrong)..
kindly help in this regard. |
|
|
admin Site Admin
Joined: 18 Apr 2006 Posts: 805 Location: Saint-Petersburg, Russia
|
Posted: Wed Aug 30, 2006 4:11 am Post subject: |
|
|
bbAntiSpam tries to find links as aggressively as possible using several methods, therefore the same link can be calculated as several links. In additional to the previous changes, find in the "includes/funcions_bbas.php"
Code: |
$str = bbencode_second_pass($str, 0);
$str = make_clickable($str);
|
and comment it out:
Code: |
//$str = bbencode_second_pass($str, 0);
//$str = make_clickable($str);
|
I hope it works. If not, then the feature "not more than N urls" can't be implemented with the current version of bbAntiSpam.
Quote: | Links inside quote tag has to be ignored |
I thought about it, but decided it's not good. If it were implemented, spammers would put spam links inside the "QUOTE" tag. |
|
|
rajaram
Joined: 21 Aug 2006 Posts: 6
|
Posted: Wed Aug 30, 2006 4:58 am Post subject: |
|
|
Thank you. That works fine. |
|
|
Ok.