View Full Version : Moderators Functions - Z - X Posts Before Links
Zaiaku
01-02-2010, 10:00 PM
Since VB4 has some build in spam guards for specific sites/users who are widely known for spamming, I felt that it didn't help stop any of the small time and newbie spammers and so I decided to make this mod.
This mod doesn't allow users to post any form of a link without achieving so many posts first. So if they want to posts tons of videos, ftp, images, websites, game servers ... etc this will stop most of them, possibly all. So wether is a whole new thread or a reply in another thread it will stop them. This also work on quicc reply aswell.
I don't have many games installed so the only game with a server I ws able to test was those of the Unreal Tournament series. If you find other kind of links that need to be stopped please let me know.
Z - X Posts Before Links:
all options are in your Admin CP
no template editing needed
Installation:
Import product-z_xpbl.xml
Goto --> Admin CP --> Settings --> Options --> Z - X Posts Before Links and make your settings.
Remember to clicc install.
Version:
1.4 Added Email stopping
1.3 Multiple Usergroup Filtering (added to 1.1)
1.2 A Bunch of New Features (New Product -> Z - Total Link Control)
1.1 Bug fix for People getting Parse Errors
1.0 Initial Version
hilfe-forum
01-03-2010, 06:00 PM
THX for this Mod ;)
tafreeh
01-03-2010, 06:08 PM
does it also work in signature too ? thanks for the mod :)
Zaiaku
01-03-2010, 06:12 PM
No it doesn't work with signatures. I thought there was already one that had that feature so didn't think aout including it.
linuxututs
01-03-2010, 07:16 PM
No it doesn't work with signatures. I thought there was already one that had that feature so didn't think aout including it.
Its a Vb built-in feature. ( In Group-permissions )
Great idea for this Mod.
Fixing to install now. Just hope it doesn't interfere with the permissions from my LDM Mod, but shouldn't sense I have it inheriting the forum permissions.
Thanks for another Great Mod.
Thanks,
Charlie98902
01-03-2010, 07:18 PM
Thanks installed.
linuxututs
01-03-2010, 07:22 PM
Hey Zaiaku,
Great, Installed, but would it be to much trouble to add a "usergroup" option to the Mod?
With that feature this will be one of "The All Time" greats. :)
Thanks,
Boots
01-03-2010, 07:26 PM
What happens if the user tries to post a link?
Kolbi
01-03-2010, 07:27 PM
Thank you!
Zaiaku
01-03-2010, 07:27 PM
I was going to add uergroups on this but didn't see it as much of a point to it.
by default guest and spiders can't post so isn't needed for that.
Admins, SuperAdmins and Moderators are normal on the board for a while.
New Members usually are the only ones effected by this.
What's your ideas with using this on usergroups?
Zaiaku
01-03-2010, 07:28 PM
What happens if the user tries to post a link?
Just shows a small error telling them they aren't allowed to post any kinds of links yet.
linuxututs
01-03-2010, 07:52 PM
Well, lets say I have a new site ( I do ) and want to add some of my webmaster friends etc.. and then they'll have to make x amount of post before they could add a links etc...
Plus I have my site setup with "New Users", then after certain amount of post they move up to "Registered Users", and so on...
Thanks,
BlackJacket
01-03-2010, 09:10 PM
Thanks! Tagged for later.
Vaupell
01-03-2010, 09:30 PM
Thank you installed,,
Short simple, and just what we need..
a true KIS project..
Dr.osamA
01-05-2010, 04:06 AM
Thank you installed
________
Fetish Parties (http://www.++++tube.com/categories/527/parties/videos/1)
VonDoom
01-05-2010, 04:15 AM
Wow this is fantastic, tagged
woffie
01-05-2010, 06:05 PM
I get an error when using this. The thread posted but got an error about the header being sent already. Had to uninstall.
Skyrider
01-05-2010, 06:11 PM
I get an error when using this. The thread posted but got an error about the header being sent already. Had to uninstall.
Yup, causes:
Parse error: syntax error, unexpected T_LOGICAL_AND in /forum/httpdocs/includes/class_dm_threadpost.php(1768) : eval()'d code on line 4
in thread preview for me at the top.
abbasbsp
01-05-2010, 07:20 PM
Yup, causes:
Parse error: syntax error, unexpected T_LOGICAL_AND in /forum/httpdocs/includes/class_dm_threadpost.php(1768) : eval()'d code on line 4
same, at the time of the first post
Zaiaku
01-05-2010, 07:48 PM
woffie, ichal_spy, FF|Skyrider
Are these errors only showing up when posting a new thread?
I just tried this on a clean install with no mods and not getting any errors. Do any of you have any other mods that may interfere liks vbseo or change vb files ... etc?
linuxututs
01-05-2010, 08:19 PM
Hey Zaiaku,
I also got a couple of errors, but they passed so quick I couldn't read them.
But it didn't stop them from linking a link.
But when I ( I'm "them" ) tried to go edit the the link, then I got the message. ( Not enough Post etc... )
I do have vbSEO installed also if that helps.
Thanks,
Zaiaku
01-05-2010, 08:24 PM
is this when making a new therad, quicc reply, full reply .. etc?
Skyrider
01-05-2010, 10:48 PM
New thread seems to be fine for me, through the smilies are showing up a bit weird. But when I preview my thread, I'm getting the error at the top. And yes, I have quite a few mods installed.
linuxututs
01-05-2010, 10:54 PM
I used the "Quick Reply".
Thanks,
Zaiaku
01-05-2010, 11:46 PM
New thread seems to be fine for me, through the smilies are showing up a bit weird. But when I preview my thread, I'm getting the error at the top. And yes, I have quite a few mods installed.
And mod that has to do with links like AME media mod or VBSEO, things like that?
I used the "Quick Reply".
Thanks,
I know its working fine in quicc reply but I have no tried it with vbseo so it might has something to do with it. I will try to figure it out.
linuxututs
01-05-2010, 11:54 PM
Thanks Zaiaku,
I really, really like this Mod, and hope like heck I'll be able to use it.
Wish I knew more about this new code and I'd be of more help to you , but to tell the truth, I'm just getting the template edits down again myself.
Thanks,
Skyrider
01-06-2010, 07:00 AM
And mod that has to do with links like AME media mod or VBSEO, things like that?
I know its working fine in quicc reply but I have no tried it with vbseo so it might has something to do with it. I will try to figure it out.
I have AME installed, just no vBSEO.
VonDoom
01-06-2010, 07:30 AM
This hack is giving my board about three feet of white space under the forums with IE8? lol maybe 7 i cant remember witch version of IE im using.
Boots
01-06-2010, 10:20 AM
Uninstalled due to errors in the code.
Parse error: syntax error, unexpected T_LOGICAL_AND in /home/public_html/includes/class_dm_threadpost.php(1768) : eval()'d code on line 4
Boots
01-06-2010, 10:20 AM
That's when making a new thread btw.
Zaiaku
01-06-2010, 03:18 PM
To everyone getting the parse error I think I got it figured out what's going on and have been able to fix it although I'm been like hell trying to reproduct this error and I can't. So give me a bit of time to go through a few things.
linuxututs
01-06-2010, 07:58 PM
Thanks again Zaiaku,
I got faith in you. :)
Thanks,
Boots
01-06-2010, 09:06 PM
I looked at your code and see the error:
<hookname>threadfpdata_presave</hookname>
<phpcode><![CDATA[// Zaiaku needs data
global $vbulletin;
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($vbulletin->userinfo[posts] < $vbulletin->options['z_xpbl_amount'])) and (stristr($pagetext,'[url') or stristr($pagetext,'://') or stristr($pagetext,'[URL') or stristr($pagetext,'www.')))
{
// Zaiaku doesn't give you permission yet
$this->error('z_xpbl_error');
$return_value = false;
}]]></phpcode>
You have an extra parenthesis in there (highlighted in red) and it's messing up the if statement. Basically you are terminating the if statement and then continuing on with the logical operator which is why PHP throws the error.
I've attached a fixed copy. I'll remove it when you get yours updated.
edit: removed
linuxututs
01-07-2010, 12:01 AM
That fixed it "Zaiaku" !
"Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times."
Freaking A ! Great!
Thank you to "boots" for finding the error in the code to. :)
Thanks,
P.S. Amazing what people can do when they work together......
Zaiaku
01-07-2010, 12:31 AM
That's what I noticed earlier was that extra ")" wierd that it was there. I should have another version of this up tonight, I've been working on my first post artyle mod for vb4 for today.
linuxututs
01-07-2010, 01:18 AM
Looking forward to it. :)
Thanks for all your hard work,
Zaiaku
01-07-2010, 03:13 AM
Version 1.1 is up but I was hoping to get version 1.2 up tonight but for some reason isn't working properly for some odd reason. 1.1 fixes the error people was getting with the Parsing.
Zaiaku
01-07-2010, 04:09 AM
OK Version 1.3 is now available. This can now be assigned to multiple usergroups. I got determined to fixing this so should be good to go.
1.2 was not released publicly becuase it has alot of extra features so it went to a whole other project.
linuxututs
01-07-2010, 04:46 AM
Ok, I'll test it for you. :)
Gladly, and thanks for the option's.
Perfect Mod, can't get any better as far as I can tell......
Thanks,
MOTM !
UPDATE: Tested and working 100% !
Love that error message...Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times.
rajubd
01-07-2010, 05:39 AM
also add mail address in to it bro because some seller spaming with there mail address
saqibnpt
01-07-2010, 06:54 AM
thank you...
Zaiaku
01-07-2010, 09:20 AM
also add mail address in to it bro because some seller spaming with there mail address
Email addresses? You actually have a problem with people posting there email address all over? Wow that's a new one for me.
woffie
01-07-2010, 05:33 PM
Works good, no more error messages.
Boots
01-07-2010, 11:35 PM
Email addresses? You actually have a problem with people posting there email address all over? Wow that's a new one for me.
It's actually VERY common. If you don't add email address support I'll be modifying my copy of the mod :o
webspider
01-08-2010, 12:03 AM
This would be great if you could prevent links completely even better by forum.
Zaiaku
01-08-2010, 12:56 AM
This would be great if you could prevent links completely even better by forum.
Actually you can. Remove all instants of automatically parsing links and disable all BBCodes that involve links.
Zaiaku
01-08-2010, 01:03 AM
Update 1.4
Emails Added (I have never had this problem in any forum I've been an admin on but hey the people need it!)
Boots
01-08-2010, 10:03 AM
Thanks!
rajubd
01-08-2010, 05:33 PM
thnaks bro i will add it now also MOTM Nomination added
Adam H
01-23-2010, 08:12 AM
Excellent nominated for MOTM , ive been suffering from link spammers for the past week and have been waiting for the permissions based on post count mod, glad this is here though , installed :up:
Adam H
01-23-2010, 05:18 PM
Anyone actually tested this ? are you having problems ? People are still posting links on my board even with this hack ?
badawidollah
01-23-2010, 11:57 PM
thanks
installed
rajubd
01-29-2010, 05:10 AM
its not affective when starting new thread only working when post.
marceb
02-13-2010, 07:05 AM
Thx...
Can u add a Spam Words Field...we define in this field a set of 'unwanted' words, while you are parsing the text, if any of these words is found in the text, post will be set for moderation...
Thx again.
e13o13
02-17-2010, 02:51 PM
Got it working - thanks!
Sadikb
03-09-2010, 08:01 AM
I removed the email check from the code because all it was doing was checking for "@". Many people like to type in @ in their posts. But otherwise very good MOD, thanks.
ARPRDcom
03-31-2010, 02:11 PM
Thanks for the Mod, this should help a great deal .....
James
fionix
04-14-2010, 06:20 AM
works perfectyl, just made a few tests and it works as it should.... thank you.
David Rose
04-20-2010, 03:20 PM
Unfortunately it doesn't work for me. I installed and under Setting>options>"Z - X Posts Before Links" I have:
- Post Amount: 15
- Affected Usergroups: Registered Users
I registered as a user and in my first post I'm able to post links, any idea what I did wrong or what I didn't do?
Thanks!
sticky
04-29-2010, 09:39 AM
Is there any way to make this just work on certain usergroups?
I want to limit potential sponsors to not be able to post links until they are moved to the sponsor usergroup.
Edit: Oops, just realized it supports that :) Thanks!
FatalBreeze
07-01-2010, 05:33 AM
Does it also include posting links in private messages?
Hoobastank68
07-20-2010, 11:07 PM
Can you please make this for v3.8?
masterweb
08-21-2010, 06:54 PM
Downloaded and installed on a vBulletin 4.0.5 board without problems. Thanks to developer for this mod :D
Boots
10-12-2010, 10:27 AM
I haven't confirmed 100%, but I think this mod can block the RSS feed poster from working. Going to confirm that now.
YankForum
10-12-2010, 01:23 PM
excellent mod , tnx
scrap19
10-12-2010, 08:26 PM
Installed! Works just as I wanted it to...thanks
paarmis.queen
10-15-2010, 09:50 PM
tnx installed
gamerzhut
10-17-2010, 11:16 AM
Thank you
Insstalled
Boots
10-20-2010, 12:45 PM
I haven't confirmed 100%, but I think this mod can block the RSS feed poster from working. Going to confirm that now.
This mod does indeed block the rss poster task from posting any articles. If I enable it on my forum, all rss posting stops until I disable it.
midgetgrimm
08-14-2011, 12:11 AM
I was also wondering if you can do this for sig linking. THanks!! Installed and working 4.0.7
Can you please make this for v3.8?
Would be great if someone could offer this Addon for vBulletin 3.8!! Or does it work with 3.8?
Best
Eisheth
08-18-2012, 12:51 AM
Loving this mod! The only thing I would like to tweak is the message that the user sees if they attempt to post a link or email. Does anyone know where I might find that? Or if that could be included in future rev's that would be awesome.
charlesr
01-24-2021, 07:32 PM
Anyone know if this works with the latest vb4? I haven't got a staging server enabled at the moment to test on, but if it's supposed to work, I'll fire one up to try it.
webnsn
06-07-2021, 08:26 AM
Please share Add-on for 3.8 version
Hostboard
06-08-2021, 12:21 PM
Please share Add-on for 3.8 version
Checking the authors page he has no 3.x addons.
Maybe someone else made one? It would be listed here:
https://vbulletin.org/forum/forumdisplay.php?f=235
webnsn
06-09-2021, 12:26 PM
Checking the authors page he has no 3.x addons.
Maybe someone else made one? It would be listed here:
https://vbulletin.org/forum/forumdisplay.php?f=235
I tried to check maximum Thread from 3.8 but not found.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.