![]() |
First I want to thank lierduh for his work on developing this mod and krandall for his fixes. We've been importing 3-years of messages from a large newsgroup this week and all appears working well so far (haven't tried exporting yet).
While it would be best to filter out spam and other junk in the importation phase [killfile], one obviously doesn't know what and who to scan for at first. Has anyone developed a series of mySQL commands for the post-importation of messages to work on cleaning up the spam and bad users? If so, could you please advise a sample here that I and perhaps others can build on? In my case, I would like to: 1) Posts - delete any post with a URL in it (99% spam) - delete any post with certain keywords in them - delete any post by specified users - delete any post with a URL in the User Name 2) Threads - delete any thread with a URL in the title - delete any thread with certain keywords in them - delete any thread by specified users - delete any thread with a URL in the User Name Thanks. -- Rik |
Unfortunately I keep getting an "out of memory" error when I run this hack. Ive used it before with success but for some reason now, it's just not happening. Anyone got any ideas how I can work around the problem? Here is the actual error:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3840 bytes) in /usr/local/psa/home/vhosts/trianglecycling.com/httpdocs/includes/functions_newpost.php(181) : regexp code on line 1" Any ideas? |
Quote:
|
I dont think I can.. the domain is on a Plesk based system and I dont have access to the administrator control panel.
This is happening on the initial import so I feel pretty sure if I could get all the messages imported, the recent postings between intervals wont cause this problem. I'm trying to import two groups tho with a lot of posts so I dont know how long it will take to actually get them all. It would be nice if you could import XX amount of posts, have the script terminate and then restart to get them all. I dont think memory usage was ever a consideration to the original author of the hack. |
Shouldn't a dedicated (?) server have much memory available?
|
Depends on how the server is configured. If you run a lot of forums on one machine, you kind of need to keep scripts in check so nothing goes out of control and slows everything else down.
The box I have the partiulcar forum Im testing this hack on isnt mine and the way its configured, PHP scripts are limited to 8mb of memory. |
Quote:
My php.ini contains this row: memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) ... and I don't have any problem with the gateway-script. Strange? |
Quote:
My webhost uses cPanel which used to support custom php.ini files. Unfortunately though, it doesn't work anymore after they upgraded to PHP5 (I guess cPanel was also upgraded). |
How to check incoming posts for valid forum users
I use this mod as a mailing list gateway. Many of the people on our mailing lists are also forum members. So I thought it would be good to check for valid forum users. No guarantees whatsoever but if anyone's interested, here's how I did it. In gateway.php, look for: Code:
//Separate name and email address Code:
//Check if the sender is a user Code:
$postid = insert_post($threadid, $forumid, $foruminfo, $subject, $from_name, $from_email, $date, $parentid); Code:
$postid = insert_post($threadid, $forumid, $foruminfo, $subject, $from_name, $userid, $from_email, $date, $parentid); Code:
function insert_post($threadid, $forumid, $foruminfo, $subject, $from_name, $from_email, $date, $parentid = 0) Code:
function insert_post($threadid, $forumid, $foruminfo, $subject, $from_name, $userid, $from_email, $date, $parentid = 0) Code:
'" . stripslashes($from_name) . "', 0, '" . $date . "', Code:
'" . stripslashes($from_name) . "', " . $userid . ", '" . $date . "', |
Hey,
I'm not getting pictures, can pictures be included in posts? Almost all posts I'm getting have images. Here is my forum for the posts: http://www.deuceace.com/forumdisplay.php?f=24 It also doesn't seem to be showing much text, am I able to change this or is it a limitation of what I am allowed to take from the sites? |
All times are GMT. The time now is 01:56 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|