Module: Forum Subscriptions
Posted by Joe Curia
Re: Module: Forum Subscriptions February 12, 2011 10:53AM |
Registered: 15 years ago Posts: 753 |
Hello Joe, there's apparently a difference between the mail generated by cron-jobs, and mail generated by code the cron job runs. The code that the cron job runs can set it's own 'From' and 'Reply-to' just like any other code. At this moment Emails (sent by your module) contain the addresses of the host server but not the correct 'From' and 'Reply-to' info from Phorum, making it difficult to redistribute replies back to Phorum (Ext. Mail Module from Thomas). Can you help?
Re: Module: Forum Subscriptions February 14, 2011 03:34PM |
Registered: 15 years ago Posts: 753 |
Re: Module: Forum Subscriptions February 14, 2011 04:50PM |
Admin Registered: 20 years ago Posts: 8,532 |
"vroot" is not a setting that is stored in the settings table. It's a field in the forums table. So no, that's not the problem.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Forum Subscriptions February 14, 2011 05:39PM |
Registered: 15 years ago Posts: 753 |
In forum_subscriptions_after_post.php Joe is using $PHORUM["vroot"] in an array declaration together with $PHORUM['title']. That made me think that "vroot" might be also a field within the Phorum settings.
When Joe is fetching the read_url's using phorum_get_url(PHORUM_READ_URL,...), I believe that $PHORUM["http_path"] is just not present within this function which leads to the links without the base-part being posted within the digests. But why? Thank you for your thoughts!
When Joe is fetching the read_url's using phorum_get_url(PHORUM_READ_URL,...), I believe that $PHORUM["http_path"] is just not present within this function which leads to the links without the base-part being posted within the digests. But why? Thank you for your thoughts!
Re: Module: Forum Subscriptions February 15, 2011 10:03AM |
Registered: 15 years ago Posts: 753 |
Quote
When Joe is fetching the read_url's using phorum_get_url(PHORUM_READ_URL,...), I believe that $PHORUM["http_path"] is just not present within this function which leads to the links without the base-part being posted within the digests. But why? Thank you for your thoughts!
During a cron-job I read out $PHORUM["http_path"]. The result was "http://:". I guess I need to infuse the correct link at this location. Any idea how this could happen? I work with the newest release and the event log is clean.
Re: Module: Forum Subscriptions February 15, 2011 11:57AM |
Admin Registered: 20 years ago Posts: 8,532 |
Just a hunch: maybe you are running the module for having dynamic HTTP Path settings. From a cron job, there is no server environment, which might trip that module. The module could make use of the default HTTP Path setting when no URL can be derived automatically or the module could have a configuration option to configure the URL to use from there for such cases.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Forum Subscriptions February 15, 2011 02:39PM |
Registered: 15 years ago Posts: 753 |
Re: Module: Forum Subscriptions February 19, 2011 03:34PM |
Registered: 15 years ago Posts: 753 |
Re: Module: Forum Subscriptions February 20, 2011 04:12AM |
Admin Registered: 20 years ago Posts: 8,532 |
I cannot replicate the behavior. That module only mangles the http_path setting when SCRIPT_URI or HTTP_HOST is set in the $_SERVER data. In a CLI / cron environment, these should not be set.
You can try version 1.0.6. I changed the isset() check to an empty() check, so a set but empty $_SERVER['http_host'] variable will not mangle the URL.
If you keep having troubles, then you're out of luck. I really don't see where your issue is originating from.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
You can try version 1.0.6. I changed the isset() check to an empty() check, so a set but empty $_SERVER['http_host'] variable will not mangle the URL.
If you keep having troubles, then you're out of luck. I really don't see where your issue is originating from.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Forum Subscriptions February 22, 2011 12:28AM |
Registered: 15 years ago Posts: 753 |
Sorry, only registered users may post in this forum.