PDA

View Full Version : Auto Post Google Alerts


Jafo232
01-31-2006, 10:00 PM
I will no longer be supporting this hack as 3.6.x supports feeds, making this hack obsolete.

This hack will automatically post to a forum of your choice, as a user of your choice, any Google alert received. In fact, it should work for any alert service.

If you do not know what Google Alerts are, see this page (http://www.google.com/alerts):

Google Alerts are email updates of the latest relevant Google results (web, news, etc.) based on your choice of query or topic.

Requirements:

A POP email box to receive Google Alerts.

Install is simple. Upload the PHP file, install the product, define the settings in adminCP, test, and set up a scheduled task in the adminCP then:

Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=106905)

You can limit who can post alerts by restricting domains allowed to email the POP box. I advise you use a secret, previously unused POP box/email address. Any mail in the POP box that is not in the domain list is deleted, otherwise it is posted.

I will offer support as I can here, or in the forum at my website at www.worldwidecreations.com (http://www.worldwidecreations.com)

This modification is FREE of charge, but if you wish to reward me for my work, and encourage future modifications by me, please donate below:

https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sales%40worldwidecreations%2ecom&item_name=Hack_Donation&item_number=Auto_Alerts&no_shipping=2&no_note=1&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)

The Chief
02-01-2006, 04:46 PM
this looks awesome, ill surely check it out!!

TTG
02-01-2006, 05:46 PM
Loading Directly.

Warning: imap_open(): Couldn't open stream {localhost:110/pop3/tls/novalidate-cert} in /vbox.php on line 24

Warning: imap_num_msg(): supplied argument is not a valid imap resource in /vbox.php on line 26
done processed 0 of mails


and if I add my email details the same message appears !?

Jafo232
02-01-2006, 05:50 PM
Either the popserver, username, port or password are wrong or, on some servers, you may be required to edit vbox.php where it says:

/pop3/tls/novalidate-cert

To:

/pop3

Snake
02-01-2006, 06:06 PM
How about a screeny?

Jafo232
02-01-2006, 06:15 PM
Screen added of a google alert based on the keyword "bush" and a screen of the settings in adminCP..

GamerJunk.net
02-01-2006, 06:21 PM
Do the posts add to the user defined post count?

Jafo232
02-01-2006, 06:24 PM
Do the posts add to the user defined post count?

No it does not.

bashy
02-01-2006, 06:37 PM
Hi

I am 99% sure i done this right....
When i run the script it says

Loading Directly.
done processed 0 of 0 mails

Even though i have run the test and have sent an email to the address used...

I know my domain has pop and i have inserted the mail.*****.com into the domian box, is this correct?

swa
02-01-2006, 06:48 PM
thanks!

Jafo232
02-01-2006, 07:16 PM
Hi

I am 99% sure i done this right....
When i run the script it says

Loading Directly.
done processed 0 of 0 mails

Even though i have run the test and have sent an email to the address used...

I know my domain has pop and i have inserted the mail.*****.com into the domian box, is this correct?

If you want to test this first, here is what you do.. Use a mail client like outlook to check the POP box and make sure email is arriving to it. If you know how to, set the option on the mail client to NOT delete mail when it retrieves it.

This way at least you can validate that mail is actually arriving to the mailbox.

Also, MAKE SURE, no other mail client is accessing the same box, otherwise, it will delete the mail before the script can get it.

bashy
02-01-2006, 07:30 PM
Cheers for that, I forgot to keep mail on server...
Right...its processed the email now but didnt post it in the forum specified.
Does it not do this yet or should it have done it?

Like i said, it processed it and deleted it from the mailbox lol

If you want to test this first, here is what you do.. Use a mail client like outlook to check the POP box and make sure email is arriving to it. If you know how to, set the option on the mail client to NOT delete mail when it retrieves it.

This way at least you can validate that mail is actually arriving to the mailbox.

Also, MAKE SURE, no other mail client is accessing the same box, otherwise, it will delete the mail before the script can get it.

AN-net
02-01-2006, 07:32 PM
possible security problem...could someone with malicious intent fake the domain from which the emails come from. giving an authorized person access to post on your forums what ever content they want. i remember some at vb.com telling me that using a domain from an email came from is unreliable since it can be easily modified. it was for my suggestion on alternative to email confirmations but them sending emails to confirm themselves.

Jafo232
02-01-2006, 07:32 PM
Cheers for that, I forgot to keep mail on server...
Right...its processed the email now but didnt post it in the forum specified.
Does it not do this yet or should it have done it?

You must make sure that the user ID is correct, and that user has permissions to post to the forum ID you specified.

Make sure you are using ID's here and NOT names. It is a numeric value.

Jafo232
02-01-2006, 07:37 PM
possible security problem...could someone with malicious intent fake the domain from which the emails come from. giving an authorized person access to post on your forums what ever content they want. i remember some at vb.com telling me that using a domain from an email came from is unreliable since it can be easily modified. it was for my suggestion on alternative to email confirmations but them sending emails to confirm themselves.

Yes of course, which is why you must keep the mailbox secret so only google (and yourself) knows the email address.

You could also setup something in say Spamassassin that will verify email comes from where it says it comes from, but to me that seems to be a bit overkill.

The content posted, can only be posted in the forum you choose. No user can actually spoof the identity as far as logging in and changing anything.

Is it 100% secure? No. Can anything malicous be done with it? I doubt it. If you are really worried about it, set the user so everything they post is moderated.

bashy
02-01-2006, 07:42 PM
I am using my ID which is 1 so i couldnt have gone wrong there really lol
Also there forum id is deffo correct!!

Your hack is processing the email and not posting it, but deleteing it from the mailbox!

You must make sure that the user ID is correct, and that user has permissions to post to the forum ID you specified.

Make sure you are using ID's here and NOT names. It is a numeric value.

Jafo232
02-01-2006, 07:47 PM
I am using my ID which is 1 so i couldnt have gone wrong there really lol
Also there forum id is deffo correct!!

Your hack is processing the email and not posting it, but deleteing it from the mailbox!

Are you sure you entered the correct setting in the domains? What does the script say when it does retrieve the email?

bashy
02-01-2006, 07:49 PM
hi..

It says

Loading Directly.
Ignoring ntlworld.com
done processed 1 of 1 mails


Are you sure you entered the correct setting in the domains? What does the script say when it does retrieve the email?

Jafo232
02-01-2006, 07:52 PM
hi..

It says

Loading Directly.
Ignoring ntlworld.com
done processed 1 of 1 mails

Then you didn't enter ntlworld.com into the "Domains to accept email from" setting.. It is ignoring your email..

bashy
02-01-2006, 07:57 PM
But....

My email.....Oh i see now...just for the test, add NTL...ok 2 secs lol

Then you didn't enter ntlworld.com into the "Domains to accept email from" setting.. It is ignoring your email..

bashy
02-01-2006, 08:02 PM
Right ok...sorry about the thicko minute...

Sorted now, although it didnt post the actual email body only yhe subject
i take it thats cause its setup for googles email templates or sommat, i dont know lol

Anyway...will keep you informed when i get my 1st proper email from them :)

Now to setup the scheduled task

Thanks again for ya help and a great hack

TTG
02-01-2006, 08:42 PM
Either the popserver, username, port or password are wrong or, on some servers, you may be required to edit vbox.php where it says:

/pop3/tls/novalidate-cert

To:

/pop3

Same error !?

Jafo232
02-01-2006, 08:44 PM
Then your username, pass, server, or port is incorrect.

its_me_that_guy
02-02-2006, 04:36 PM
Can this be configured to run multiple alerts and post them in multiple forums?

Jafo232
02-02-2006, 04:38 PM
Can this be configured to run multiple alerts and post them in multiple forums?

It can handle multiple alerts, but it does not post into multiple forums.

its_me_that_guy
02-02-2006, 04:44 PM
So in order to post to multiple forums, what would you suggest?

Example. My site has a forum for star wars, warcraft, and dark and light. Would like 1 alert posting star wars news in star wars forum, 1 posting for warcraft, etc.

Would I just rename your files, and setup 3 times?

Jafo232
02-02-2006, 05:18 PM
So in order to post to multiple forums, what would you suggest?

Example. My site has a forum for star wars, warcraft, and dark and light. Would like 1 alert posting star wars news in star wars forum, 1 posting for warcraft, etc.

Would I just rename your files, and setup 3 times?

Hmm.. Well, if you really want to do that, what I would do is make a copy of vbox.php for each forum you wish to post to. Edit each vbox.php script to find all of the:

$vbulletin->options['variable']

Replace them with your own variables that you define at the beginning of the script.. For example, create a variable for your popserver:

$popserver = 'localhost';

Then find:

$vbulletin->options['gvbpopserver']

Replace that in the script wherever you find it with $popserver.

Same thing with :

$vbulletin->options['gvbuser'] - pop username
$vbulletin->options['gvbpport'] - pop port
$vbulletin->options['gvbpass'] - pop password
$vbulletin->options['gvbfuser'] - user ID to post as
$vbulletin->options['gvbforum'] - forum ID to post to

Then you can call each script as you want through the scheduled task or manually.

You will have to set up a separate POP box for each alert.

That is the only way I can suggest at the moment.

its_me_that_guy
02-03-2006, 01:38 PM
Installed. Gonna work on what you said for multiple tho too.

WNxWakko
02-11-2006, 01:54 AM
I did the test, the vbox.php said checked and the post was created, subject title there, however the body of the post only stated the email it came from and no body message.

Schahab
02-11-2006, 11:14 AM
Hello,

is it possible to defince several Google Alers for differens forums?

Like Graffiti Alerts only in the Graffiti Forum

or Breakdance only in Breakdance?

That would be very cool!

Annapurna
02-11-2006, 05:19 PM
I've got exactly the same error as TTG, but my infos are correct.

Okay, what is the correct servername?
"localhost"
or "Twister" (my Mailserver)
or "pop3.domain.tld" which is necessary for setting up POP3 accounts at OutlookExpress

how do I find out, which port is the correct one?

Andreas

junaid
02-13-2006, 05:29 PM
Hello Jafo232

I have got this error


Unable to add cookies, header already sent.
File: /usr/local/psa/home/vhosts/xxxxxxx.com/httpdocs/vbox.php
Line: 14

Jafo232
02-13-2006, 05:32 PM
When do you get this error?

Schahab
02-14-2006, 01:08 PM
Hello,

i now got the same error:

In Germany:

Loading Directly.

Die Cookies konnten nicht gesetzt werden, da der Header schon an den Browser geschickt wurde.
Datei: /www/htdocs/hegbtnfd/community/vbox.php
Zeile: 14

bada_bing
02-14-2006, 02:03 PM
This looks cool I am going to test first and if I like I will click install

Annapurna
02-14-2006, 08:15 PM
First I've got the same error like TTG
Now I get the same error like Junaid and Schahab resp.

There must be somthing very strange as we all get the same errors!
I've deleted the cache, but still the same!

Andreas

Schahab
02-18-2006, 07:06 AM
Some help please...

Tralala
02-18-2006, 07:36 AM
Forgetting about Google or other alerts for a moment, could this be used as a simple way for me to start new threads on the road, directly off my Treo 650?

(Just set up a special email addy, and email to it?) Or would there be special customization needed to make it work in that capacity?

Annapurna
02-18-2006, 07:43 AM
Forgetting about Google or other alerts for a moment, could this be used as a simple way for me to start new threads on the road, directly off my Treo 650?

(Just set up a special email addy, and email to it?) Or would there be special customization needed to make it work in that capacity?Errors have nothing to do with Google. And it is already what you wanted. Sending eMail to an eddy which posts into the threads. No matter whether the mail comes from your Laptop or from Google Alert.

So problems have to be solved before!

Andreas

Tralala
02-18-2006, 06:33 PM
Either the popserver, username, port or password are wrong or, on some servers, you may be required to edit vbox.php where it says:

/pop3/tls/novalidate-cert

To:

/pop3


I too get an error when trying to invoke this manually
(by going to http://www.myforumname.com/forums/vbox.php)

Here is the error I get:

Loading Directly.

Fatal error: Call to undefined function: imap_open() in /home/.odell/mydir/myforumname.com/forums/vbox.php on line 24

I tried changing /pop3/tls/novalidate-cert to /pop3 in the vbox.php file... same error. Changed it back again, same error.

I know my popserver, username, port and password are correct, since I am able to log into it using the exact same information at mail2web.com's "Advanced" login page. But vbox.php doesn't succeed for some reason.

Any help would be appreciated.

Tralala
02-18-2006, 06:47 PM
Errors have nothing to do with Google. And it is already what you wanted. Sending eMail to an eddy which posts into the threads. No matter whether the mail comes from your Laptop or from Google Alert.


Wow, well then allow me to submit that this hack's TITLE sells it's usefulness a bit short. It's basically an email gateway to vBulletin thread creation, then. The email doesn't have to be from Google or an alert at all.

(Jafo232, you may want to reconsider the title of your excellent hack, as some folks will overlook this as yet another RSS scraper/poster, when it can be so much more.)

I'd very much enjoy this as a way to create threads on the go when I don't have speedy web access. Hopefully I'll get the error (posted above) sorted out so I can see it in action.

Jafo232
02-18-2006, 09:46 PM
I too get an error when trying to invoke this manually
(by going to http://www.myforumname.com/forums/vbox.php)

Here is the error I get:

Fatal error: Call to undefined function: imap_open() in /home/.odell/mydir/myforumname.com/forums/vbox.php on line 24

I tried changing /pop3/tls/novalidate-cert to /pop3 in the vbox.php file... same error. Changed it back again, same error.

I know my popserver, username, port and password are correct, since I am able to log into it using the exact same information at mail2web.com's "Advanced" login page. But vbox.php doesn't succeed for some reason.

Any help would be appreciated.

Your version of PHP was not compiled with imap support, this hack will not work for you. If it was compiled with imap support, then the function imap_open would be defined.

TTG
02-18-2006, 09:54 PM
anyone actually got this to work yet ?

Jafo232
02-18-2006, 09:56 PM
I use it everyday, works for me.

Tralala
02-18-2006, 11:48 PM
Your version of PHP was not compiled with imap support, this hack will not work for you. If it was compiled with imap support, then the function imap_open would be defined.

Bummer. I thought this hack was working via POP, not IMAP.

Glad your hack is working for you, though.

Jafo232
02-19-2006, 06:42 PM
Bummer. I thought this hack was working via POP, not IMAP.

Glad your hack is working for you, though.

It does use POP, but PHP must be compiled with imap support because the imap_open function is used for opening both imap and POP boxes.

Annapurna
02-20-2006, 05:34 PM
Would it work using a pure IMAP account? As I can easily turn POPs into IMAPs.

Or do I have to change anything in PHP.ini?

Sorry if that are dumb questions...

Andreas

Jafo232
02-21-2006, 12:49 AM
Would it work using a pure IMAP account? As I can easily turn POPs into IMAPs.

Or do I have to change anything in PHP.ini?

Sorry if that are dumb questions...

Andreas

If you get the "undefined function" error, then no. It isn't about what type of box it is, it is the fact that your version of PHP was not compiled with the --with-imap option.

dbarry
02-28-2006, 02:52 AM
Jafo,
**Excellent Hack** Been waiting for something like this for years!

Thanks!
Don

dbarry
03-01-2006, 02:43 AM
Wow, well then allow me to submit that this hack's TITLE sells it's usefulness a bit short. It's basically an email gateway to vBulletin thread creation, then. The email doesn't have to be from Google or an alert at all.

(Jafo232, you may want to reconsider the title of your excellent hack, as some folks will overlook this as yet another RSS scraper/poster, when it can be so much more.)

I'd very much enjoy this as a way to create threads on the go when I don't have speedy web access. Hopefully I'll get the error (posted above) sorted out so I can see it in action.

Yes, this is the true email posts to forum tool!
I made one small change so that it would accept any email message...
In VBOX.PHP, change line 33 from
if (!in_array($from[0]->host, $domains)) {
to
if (in_array($from[0]->host, $domains)) {

This way only domains listed will be ignored (versus permitted).

Don

dbarry
03-03-2006, 02:24 AM
I noticed that this doesn't increment the "last post" information, although it is posting up the messages. Am I missing something?

rmd708
03-07-2006, 03:01 PM
I get this error:

Loading Directly.

Unable to add cookies, header already sent.
File: /home/XXXXX/XXXXX/XXXXXXX/vbox.php
Line: 14

Has anyone found a solution to this error yet?

rmd708
03-07-2006, 03:44 PM
I got it to work by commenting out this line:

# echo 'Loading Directly.<P>';

rmd708
03-07-2006, 05:39 PM
How to remove the double spacing at all paragraphs? It's putting two spaces for each <enter> instead of one.

rmd708
03-08-2006, 04:03 AM
I will pay $10 if anyone can answer my question about the doube <enters> between each line.

I guess I have to go over to rent a code. :(

ldove
03-30-2006, 03:40 PM
Im not getting anywhere. I tried changing the /pop3/tls/novalidate-cert to /pop3 as well, no results. It only gets to where it says 'Loading Directly' when I test it, and no further. I notice though that the path above is not on my win machine. Is this only valid for *nix machines?

Any advise?

win2k3 standard
1gb ram
IIS 6.x
PHP 4.3.10

System Windows NT LOSCBIT168 5.2 build 3790
Build Date Dec 14 2004 17:46:48
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib

dilbert
03-30-2006, 06:35 PM
Looks nice, I installed and got this error:


Loading Directly.

Fatal error: Maximum execution time of 30 seconds exceeded in D:\inetpub\bloodbanktalk\forum\includes\class_core .php on line 2967

ldove
03-30-2006, 07:28 PM
Hello Jafo232

I have got this error


Unable to add cookies, header already sent.
File: /usr/local/psa/home/vhosts/xxxxxxx.com/httpdocs/vbox.php
Line: 14

I'm getting the same thing now also.

Loading Directly.

Unable to add cookies, header already sent.
File: D:\websites\xxxxxxx.com\etd\vbox.php
Line: 14

Help?

dilbert
03-31-2006, 01:19 PM
Bump :)
Looks nice, I installed and got this error:


Loading Directly.

Fatal error: Maximum execution time of 30 seconds exceeded in D:\inetpub\bloodbanktalk\forum\includes\class_core .php on line 2967

dilbert
04-02-2006, 10:13 PM
Jafo,
Any advice?

sandalwood
04-03-2006, 12:34 PM
hey, i can't seem to get your script to send any packets at all. all the settings are correct, however it just doesn't try to connect to the pop server at all. i am watching with a sniffer.

sandalwood
04-03-2006, 12:38 PM
I got it to work by commenting out this line:
# echo 'Loading Directly.<P>';

WTF... THIS WORKED.

i don't understand how commenting that line can make the difference between even making the pop3 connection at all but THANK YOU rmd708! :) :banana:

dilbert
04-03-2006, 05:42 PM
WTF... THIS WORKED.

i don't understand how commenting that line can make the difference between even making the pop3 connection at all but THANK YOU rmd708! :) :banana:

Hmm, didn't work for me, I edited it out and have this error:
Fatal error: Maximum execution time of 30 seconds exceeded in D:\inetpub\bloodbanktalk\forum\includes\class_core .php on line 2967

Jafo, are you still supporting this mod?
Thanks,
Cliff

dilbert
04-05-2006, 01:19 AM
OK, so I got it to work. :) It's pretty cool.
My problem is I created a new forum just for these alerts. Then when you are at the forum homepage, it says that forum has 0 posts, so no one will know they are there.
Can it be changed to have these count?

Thanks,
Cliff

ldove
04-06-2006, 01:21 PM
OK, so I got it to work. :) It's pretty cool.
My problem is I created a new forum just for these alerts. Then when you are at the forum homepage, it says that forum has 0 posts, so no one will know they are there.
Can it be changed to have these count?

Thanks,
Cliff


How'd you resolve it. It sounds like we may have similar setups for the backend.

Thanks,

H@K@N
04-29-2006, 03:58 PM
Awesome hack, clicks install ...

And how do i create a cron for this ? Just copy vbox.php > includes/cron and create the cron ?

th@nks

TheMusicMan
05-14-2006, 07:02 PM
Hi

I installed this plug-in but am trying to use it in a slightly different manner than originally intended. I am after a hack/plugin that would allow me (Admin) to be able to send an email to a specified address which then creates a new thread on my forums in a specified forumID with the email subject being the title of the thread.

So, I installed this and it does work - up to a point - but I need some advice if this is OK please as it isn't working as I want it to.

I set the userID, the forumID and the pop mail account details in the AdminCP, and then sent an email to it. The thread does indeed get created and posted by the userID in the specified forum, the email subject is mapped to the thread title, but none of the content of the email gets entered as the content of the thread.

All I see in the thread is: Sent from myemail@address.com

How can I make this so that the content of the text in the email gets mapped to the message text of the thread that is created...? or should this already occur?

Thanks.

TheMusicMan
05-14-2006, 08:28 PM
Update:

To all those asking the same question I did (sorry... without looking through the thread first!!) as in the email content not being mapped through to the thread content... the answer is simple.

Make sure you send the email in Plain Text format. The vBox.php file filters out all html code and even after this, if the format of the email is of HTML type, it uses an if else statement to show the senders email address as the content rather than the content of the email.

Hope this helps...

valentine
05-16-2006, 08:38 AM
If, when I try to run this from the scheduled tasks CP, absolutely nothing happens, what is the likely cause?

I know that the settings are right in VB Options, because its set up the same as MailWasher, which I use to filter out my spam. So, mailwasher can see that the email is sitting there on the server, but the script doesn't actually appear to run.

If I change the POP server to something like 'notthishost', then I get an error like below


Warning: imap_open(): Couldn't open stream {notthishost:110/pop3/tls/novalidate-cert} in /vbox.php on line 24

Warning: imap_num_msg(): supplied argument is not a valid imap resource in /vbox.php on line 26
done processed 0 of mails

Done


so I know the script is there and working - but it doesn't appear to be. So this'd make me think my settings are wrong... but I'm certain they're not!

Anyone? Seems like a useful script but I don't want to waste much more time on it than I have done already.

H@K@N
05-16-2006, 10:39 AM
OK, so I got it to work. :) It's pretty cool.
My problem is I created a new forum just for these alerts. Then when you are at the forum homepage, it says that forum has 0 posts, so no one will know they are there.
Can it be changed to have these count?

Thanks,
Cliff


same Issue here, any Solution for this ?


gr33tz

valentine
05-17-2006, 12:50 PM
Can't get this to work, yet I'm adamant that my settings are correct.

No offence, but why say it's supported when it doesn't appear to be (or at least not for some time, anyway).

Uninstalled! :confused:

TheMusicMan
05-17-2006, 02:37 PM
^ What exactly doesn't work? What are you experiencing?

valentine
05-17-2006, 02:48 PM
Nothing at all - when I go to run the script manually, nothing happens - it doesn't process anything. I've tried changing permissions on the file, running it in different folders - everything I can think of, all to no avail.

TheMusicMan
05-17-2006, 02:54 PM
When you run vbox does it say 'Loading Directly'??

valentine
05-17-2006, 03:02 PM
do you mean if I try to access the script from the browser? If so, it doesn't do anything - its like the script isn't there. Very weird.

Likewise, if i 'run now' from admincp/scheduled tasks, nothing happens - the window doesn't say anything at all, just sits there on the scheduled tasks page with the eggtimer flipping itself over and over. However if I change settings inside vbox.php it throws an error when I go to run the task manually, so it is there... :confused:

Jafo232
05-17-2006, 04:05 PM
Sounds like it is timing out. I am thinking you are using an invalid POP server setting. It should just be the domain name of the POP server, or localhost should work if the mail server is on the same machine as the web server.

Another possibility is there is a huge amount of mail in the POP box. Empty it.

valentine
05-17-2006, 05:20 PM
Yeah that's what I thought too - I'd created an POP3 box specifically for it.

However, it's using exactly the same settings as Outlook and Outlook Express, which will poll and pick up the Google Alerts fine - so I can't figure it.

I presume that "pop3.mydomain.net" (which is what I use in O and OE) works - there doesn't need to be any additional text?

valentine
05-17-2006, 05:34 PM
Also, i guess I have vbox.php in the right location?

My forums are at http://www.netnuptials.net/community - so the location for the script is ./vbox.php, right?

As I say, all my settings are the same as they would be for my email client - again, I assume this is correct?

I'm pretty baffled as to why it doesn't work to be honest - seems like a pretty simple script and I wouldn't normally bother - but I actually think it'd be quite useful, certainly for someone like me who has a pretty new forum.

EDIT:

Having left the eggtimer running for a while, I've got this error:

Warning: imap_open(): Couldn't open stream {pop3.netnuptials.net:110/pop3/tls/novalidate-cert} in /vbox.php on line 24

Warning: imap_num_msg(): supplied argument is not a valid imap resource in /vbox.php on line 26
done processed 0 of mails

Done


Any ideas?

Jafo232
05-17-2006, 06:38 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=887823&postcount=4" target="_blank">https://vborg.vbsupport.ru/showp...23&postcount=4</a>

valentine
05-17-2006, 07:11 PM
Yeah I tried that, but I did edit it with DW8 so this time I've used Wordpad and I now get the following (although it does produce this result straight away, rather than taking an age to do so like before)


Warning: imap_open(): Couldn't open stream {pop3.netnuptials.net:110/pop3 in /vbox.php on line 24

Warning: imap_num_msg(): supplied argument is not a valid imap resource in /vbox.php on line 26
done processed 0 of mails

Done




Thanks for your help so far - I'm sure I'm just being a bit thick.

EDIT: There is no 'Loading Directly' script before this - just what I've written here.

Jafo232
05-17-2006, 07:12 PM
Did you try localhost instead?

valentine
05-17-2006, 07:18 PM
Yeah just tried that, same result.

Don't know if it makes a difference but when I run the script direct from the browser, I do get the 'Loading Directly' bit.

Loading Directly.


Warning: imap_open(): Couldn't open stream {pop3.netnuptials.net:110/pop3 in /vbox.php on line 24

Warning: imap_num_msg(): supplied argument is not a valid imap resource in /vbox.php on line 26
done processed 0 of mails

Jafo232
05-17-2006, 07:19 PM
Hmm, not sure why it cannot open your server. Are you sure it is running on port 110?

valentine
05-17-2006, 07:21 PM
110% certain - I've checked and double checked the settings that I have on Outlook/Outlook Express, they both use 110 and will pick up the mail just fine, and they both use the same pop3/server/pass details as I've got setup in AdminCP.

Jafo232
05-17-2006, 07:58 PM
I have no clue then. For some reason, your server is not allowing it to connect. Rather at a loss.

H@K@N
05-25-2006, 12:29 PM
OK, so I got it to work. :) It's pretty cool.
My problem is I created a new forum just for these alerts. Then when you are at the forum homepage, it says that forum has 0 posts, so no one will know they are there.
Can it be changed to have these count?

Thanks,
Cliff

Jafo232,

any clou how to solve this, because if new alerts are posted into the Forum, nobody knows it because Forumhome says No Threads.

th@nks

Annapurna
05-25-2006, 08:33 PM
just don't work :confused:

*uninstall*

MikeBlah
05-26-2006, 04:47 PM
Any chance this will work on version 3.0?

Jafo232
05-30-2006, 03:06 PM
Any chance this will work on version 3.0?

Will not work for 3.0, only the 3.5 series.

hypnoticpimp
05-31-2006, 04:40 AM
When i go to my vbox.php page i get this error

Loading Directly.



Unable to add cookies, header already sent.
File: /home/wshh/public_html/forums/vbox.php
Line: 14






How can i fix it

Jafo232
05-31-2006, 12:51 PM
If that is the only error you get, that is fine. The error will not happen if it is loaded via the cronjob.

hypnoticpimp
05-31-2006, 04:26 PM
i dont understand , How is this fine? lol i cant use this page , if i get that error, so how do i fix it

Jafo232
05-31-2006, 05:06 PM
i dont understand , How is this fine? lol i cant use this page , if i get that error, so how do i fix it


You do not call the vbox.php script directly, only for testing purposes.

blogtorank
06-02-2006, 04:45 PM
Great addon, ever changing content is always good to keep the engines running. Now all we need is a complete list to receive email alerts from all the sources out there, off I go to start compiling :)

Edited and added for others to see here for a nice list: http://www.journalismnet.com/choose/newsalerts.htm

blogtorank
06-02-2006, 06:55 PM
Found something pretty annoying within the E-Mails received that are posting to the threads:


Remove this Google Alert:

http://www.google.com/alerts/remove?s=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=en

Create another Google Alert:

http://www.google.com/alerts?hl=en

Sign in to manage your alerts:

http://www.google.com/alerts/manage?hl=en

Sent from googlealerts-noreply@google.com


Well to fix that, open up vbox.php inside whatever editor you use and search for the following line:


if ($vbulletin->options['gvbfilter']) {


Add above:

$content = substr($content, 0, strpos('- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -', $content));

What this does is get rid of the junk signature from the emails ;)

Hope this helps anyone out! Still an awesome hack! :banana:

All the best!

Alphaline
08-02-2006, 12:38 PM
Will not work for 3.0, only the 3.5 series.

Hi Jafo

Nice to see you here. I have utilized some of your scripts at your site wwc.... however, when you say the 3.5 series I just wanted to make sure it also includes the 3.5.4

Otherwise, great job........ very useful for my needs. [have clicked install] :-)

Alphaline

Jafo232
08-02-2006, 02:35 PM
Hi Jafo

Nice to see you here. I have utilized some of your scripts at your site wwc.... however, when you say the 3.5 series I just wanted to make sure it also includes the 3.5.4

Otherwise, great job........ very useful for my needs. [have clicked install] :-)

Alphaline

Yes, works fine for 3.5.4. :)

Neo_obs
08-17-2006, 06:33 PM
I have a question we cant get this to work right. We want it so that all posts are moderated first and preapproved as some google alerts have no reference and we dont want those on our site as it is supposed to be family friendly.

I have edited usergroups, usergroup permissions, forum permissions, and everything else I could think of even putting the user into the moderated users group.

Anyone help by making it wait for approval?

Brandon Sheley
10-24-2006, 03:55 PM
will this work on 3.6.2 ?

Jafo232
10-24-2006, 04:39 PM
This is not necessary on 3.6.2. 3.6 has an advanced FEED feature which will do the exact same thing.

In case your wondering how, just go to news.google.com, enter the search terms that you want to be notified, click search, click RSS Feed. Enter that URL in the FEED feature of Vbulletin in the admin section.

dbarry
10-24-2006, 06:11 PM
This is not necessary on 3.6.2. 3.6 has an advanced FEED feature which will do the exact same thing.

Nope, not really... the extra special thing this mod does is the mail2forum feature functionality... it can take specific emails and post them into a forum.

We use it to suck up email feeds from several Yahoo Groups!

FWIW, it works fine on 3.6.2

Jafo, sorry to see this one fade away .. it pretty much saved our forum!

Don

Brandon Sheley
10-24-2006, 06:13 PM
okay thanks

charkman
08-24-2012, 09:56 AM
Thanks bro ;)