Search found 91 matches

by dangerousprototypes
Mon Feb 14, 2011 2:45 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

One final update. It looks like the zombie registration cleanup is working. Here's a picture of the log entry with all the script registrations being deleted. These accounts signed up, but did not post within 24 hours. The old script purged only 4 hours ago, so this represents about a 4 hour period ...
by dangerousprototypes
Mon Feb 14, 2011 12:45 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

My final version: *Tested zombie registration purge, added to cron and should run every two hours, see updated install instructions on the wiki *Added class source to SVN for version tracking To do (not pressing): 1. Sliding window based on first post time 2. Better "cron" integration for zombie pur...
by dangerousprototypes
Mon Feb 14, 2011 10:06 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

This is probably close to my final version: *Protects PMs, allows non-spam PMs for sleeper agents to get help if needed *All options are available from the ACP *updated to v03 link search terms *optimized to prevent repeated calls of the same functions *tested with no spam in over 72 hours :) I adde...
by dangerousprototypes
Sun Feb 13, 2011 1:39 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

In progress update. Includes these new features: *Minor bug fixes *can search a range or all unicode characters and reject posts separately from the word check *if you enter a help link (maybe a post in your forum) it will show it when it displays an error. This can let users know the conditions of ...
by dangerousprototypes
Sat Feb 12, 2011 4:07 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Using this: if(preg_match('/([\u0400-\u04FF]|[\u0500-\u05FF])+u/', $str, $m)==1){ //add s if newline, but we already pulled it out (match one character from any of the ranges, treat as utf-8 //illegal character } And these unicode guides: http://www.fileformat.info/info/unicode/block/index.htm I thi...
by dangerousprototypes
Sat Feb 12, 2011 3:40 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

[\u0400-\u04FF]+ This seems to be the magic regex for the cyrillic utf8 group. It's just a matter of finding the ranges to exclude for the characters you'll never use, and figuring out how to chain them together if not contiguous (| in between I think). I think the previous method (% utf8) will wor...
by dangerousprototypes
Sat Feb 12, 2011 3:32 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

No worries, I can walk you through the php and SQL. I'm guessing this will do it for the new values, the thing I'm not sure on is if config_value will take strings or only numbers, but I'm assuming its variable characters (varchar in phpmyadmin) and will work. INSERT INTO phpbb_config (config_name, ...
by dangerousprototypes
Sat Feb 12, 2011 2:05 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Thanks! Next question for any script writers out there then, is "how to list an array of domain references, and spam words into the admin, via the database? I think the existing code can be recycled. Just create new database entries, then add a field to the ACP. Enter the values as a plain text, com...
by dangerousprototypes
Sat Feb 12, 2011 1:35 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Very nice, it picks up just about everything ? Everything I could think of at least. I should maybe look into the scum issue you encountered with the filter, but it would probably be a lot of work for little payoff. I prefer to tell the user what is filtered so they can fix it. Bot scripts don't ca...
by dangerousprototypes
Sat Feb 12, 2011 8:59 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Further cleanup of the class: *optimized to only setup the arrays if we are going to filter the user *cleaner structure and returns *store results in accessible variables *Option to limit new user group only (untested) *option to show the word that triggered the filter so the user isn't left hanging...
by dangerousprototypes
Fri Feb 11, 2011 5:35 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

I spent some more time cleaning up the source and adding a few easy features. Updates: *set ie $f->load_values_from_db=true; to use the class with the existing mod database values (kinda) *age and time variables can be set manually as well with: public $load_values_from_db=false; //enable to use wit...
by dangerousprototypes
Fri Feb 11, 2011 4:24 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Couple areas for improvement and further development: (functionality added, needs ACP support) *Search terms could be entered in a single comma delimited list in the ACP and split apart. That would eliminate the issue of multiple entries you mentioned earlier. Edited:did some research and modified t...
by dangerousprototypes
Fri Feb 11, 2011 2:51 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

This was a fun project and I couldn't stop :) I turned this into a class for easy tweaking, installing, and reuse. Maybe it will be helpful. Has tested ok on my live site, tested from multiple accounts (permissions). This is for phpbb 3.0.8. It does the following: *disables links and bad words for n...
by dangerousprototypes
Fri Feb 11, 2011 12:36 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

A little bug in my ucp_profile.php code - ther eis no $current_time variable, so that needs to be updated to (time()) in both places it is used.
by dangerousprototypes
Fri Feb 11, 2011 12:01 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Disable links for new users & guests
Replies: 134
Views: 33368

Re: [RC] Disable links for new users & guests

Here's a plug for the other holes where spammers can put URLs. I think with these mods the forum is completely firewalled from dirty URL (assuming you purge sleeper users faster than the trust time). First, implementing the disable links and dirty words scan for the signiture field: Find in /include...

Go to advanced search