Version: 1.00, by kreftt
Developer Last Online: Nov 2005
Version: 2.2.x
Rating:
Released: 05-19-2003
Last Update: Never
Installs: 7
Is in Beta Stage
No support by the author.
TESTED ON 2.2.9, SHOULD WORK ON ANY 2.X BOARD
What does it do?
Say you have a newsletter from some site like sitepoint, that you receive and want to make available to your members.
so usually you would check your mailbox, read the mail, do a copy'n'paste and post the newsletter in your forum.
if there is more than one or the one comes quite often the work sums up.
now you can have this hack run by a cronjob or run it manual and have your new newsletters from any pop3-box automatically posted into your board.
detailed features:
no vb file edits at all, just one file to upload and adapt to your needs
check any pop3-mailbox for a newsletter
define as which user thenewsletter should be posted
define in which forum that user should post
basic spam check (checks sender name for a string you define)
url-parsing
cut off unneeded parts in header and footer that are always the same by strings you define
DO NOT BREAK ANY COPYRIGHTS WITH THAT
posted newsletters get deleted after posting from the mailbox, other mails stay intact
with little adaptation to vb3's database scheme it will be vb3-compatible
instructions:
preparation: subscribe to a newsletter
i personally would use a dedicated email-account just for the newsletter/-s to prevent spam
download the attachment, which contains a single php-file
rename the file to whatever you like, like newsletterxyz.php
edit the file and adapt it to your needs, like mailbox-variables and the username as who the newsletter should be posted
Check if you have scott macvicars last post on forumhome hack installed as you have to edit another line in the file then (line 193)
close and upload to [FORUMROOT]
either run it manually once in a while in browser or setup a cronjob if your host supports this
THATS IT
for uninstallation: delete the file off your server
you have to use a new copy of the hack for every newsletter you subscribe to
screenshot wont be provided as you would only see some user having posted some thread, nothing exciting
the hack has run for about a month on my board and has posted about 500 threads so far, without a problem
as i have rearranged the variables so that you can change all variables in the header and dont need to scroll through the whole file, i might have made a mistake in this process.
thats why its in beta for now.
please try it, feel free to comment and ask for support, and please click "install" if you decide to use it
finally: i will not be held responsible for any harm you do to your board by using this hack
EDIT: 27.05.03 trouble with cron when running from admin-dir, updated to have it reside in forumroot
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I followed the instructions, but I keep on getting this error message:
Warning: main(./config.php) [function.main]: failed to create stream: No such file or directory in /www/htdocs/headpres/forum/admin/global.php on line 96
I'm not sure that I've entered the right mailport, but I don't think this is the problem, right?
I've put the file in my /forum directory.
Hope anyone can help, because this hack was about the first thing to come into my mind as a great idea.
Hi kreftt, I've already tried and changed the first line into require("forum/admin/global.php");, but that didn't help. I got more evil messages :classic:
I have also installed VBHome, so my forum is in a different, i.e. forumdirectory.
This is what I have now:
require("forum/admin/global.php");
//these are to determine which "user" shall post
//the newsletter in which forum
$forumid="23";
$postusername="PersberichtenBot";
$userid="259";
No kreftt, that causes the error message I mentioned. So I changed the require-line. But then I've got 3 error messages.
What's the mailport number, by the way? Where can I find that?
Do you have an example of a newsparserscript running on a site? So I can see some output to understand (a bit) what the script is doing.
sorry my board isnt public so i couldnt show you.
is your php-file in /www/htdocs/headpres/forum ? the mailport would be 110, which is standard for pop3...
Another question: if html isn't allowed in a particular forum, I assume that html emails won't get parsed correctly, right? And for html emails to get parsed correctly, I'd have to allow html in the posts? Just wanna be certain.
hmm, ive never seen a mailserver starting with https://, are you sure that is right?
i only guess now, but i think the post gets parsed and checked for html before it gets entered into the database. so if a hack enters the post by a query directly into the db without using newpost.php it SHOULD work. just try it, if it doesnt work, we'll find a workaround...
kreftt, I have followed the directions and still no results and not sure if any factors that might stop this from working
I am not running this via cron but I visit the page manually and reload a few times and get no results, have sent 5 mails to skybot@mydomain.net and I know they are getting there but the emails don't seem to get posted to the forum as they should, any factors you could think that might influence this not happening?