vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto Post Google Alerts (https://vborg.vbsupport.ru/showthread.php?t=106905)

Jafo232 01-31-2006 10:00 PM

Auto Post Google Alerts
 
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:

Quote:

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

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

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

The Chief 02-01-2006 04:46 PM

this looks awesome, ill surely check it out!!

TTG 02-01-2006 05:46 PM

Quote:

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:

Code:

/pop3/tls/novalidate-cert
To:

Code:

/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

Quote:

Originally Posted by RasMasta
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

Quote:

Originally Posted by bashy
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

Quote:

Originally Posted by Jafo232
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

Quote:

Originally Posted by bashy
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

Quote:

Originally Posted by AN-net
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!

Quote:

Originally Posted by Jafo232
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

Quote:

Originally Posted by bashy
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


Quote:

Originally Posted by Jafo232
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

Quote:

Originally Posted by bashy
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

Quote:

Originally Posted by Jafo232
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

Quote:

Originally Posted by Jafo232
Either the popserver, username, port or password are wrong or, on some servers, you may be required to edit vbox.php where it says:

Code:

/pop3/tls/novalidate-cert
To:

Code:

/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

Quote:

Originally Posted by its_me_that_guy
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

Quote:

Originally Posted by its_me_that_guy
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

Quote:

Originally Posted by Tralala
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

Quote:

Originally Posted by Jafo232
Either the popserver, username, port or password are wrong or, on some servers, you may be required to edit vbox.php where it says:

Code:

/pop3/tls/novalidate-cert
To:

Code:

/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:

Quote:

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.


All times are GMT. The time now is 04:56 AM.

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.01449 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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