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)

Tralala 02-18-2006 06:47 PM

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by junaid
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.

Code:

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 :)
Quote:

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

Quote:

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

Quote:

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

Quote:

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

Code:

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

Quote:

Originally Posted by dilbert
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:

Code:

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)

Code:

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.


All times are GMT. The time now is 04:30 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
  • Page Generation 0.01348 seconds
  • Memory Usage 1,836KB
  • 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
  • (4)bbcode_code_printable
  • (12)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