vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - Z - X Posts Before Links (https://vborg.vbsupport.ru/showthread.php?t=232061)

Zaiaku 01-02-2010 10:00 PM

Z - X Posts Before Links
 
1 Attachment(s)
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:
  1. Import product-z_xpbl.xml
  2. 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

Quote:

Originally Posted by Zaiaku (Post 1946196)
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

Quote:

Originally Posted by Boots (Post 1946269)
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

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

Quote:

Originally Posted by woffie (Post 1948081)
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:
Quote:

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

Quote:

Originally Posted by FF|Skyrider (Post 1948084)
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

Quote:

Originally Posted by FF|Skyrider (Post 1948296)
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?

Quote:

Originally Posted by linuxututs (Post 1948303)
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

Quote:

Originally Posted by Zaiaku (Post 1948332)
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

1 Attachment(s)
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.

Quote:

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:

Code:

                        <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...
Quote:

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


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01408 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete