There is a phpBB function that creates a refresh meta tag, ex:
Code: Select all
meta_refresh(3, $this->u_action);
Code: Select all
meta_refresh(3, $this->u_action);
That's not a phpBB function. https://en.wikipedia.org/wiki/Meta_refreshMarkDHamill wrote:I believe bots can be denied permissions. Bots are still external entities and there is no guarantee when they will hit a board and they are never continuously active, but can access the board at any time.
There is a phpBB function that creates a refresh meta tag, ex:
Code: Select all
meta_refresh(3, $this->u_action);
Code: Select all
if ($this->manual_mode)
{
$email_templates_path = './../ext/phpbbservices/digests/language/en/email/';
$cache_path = './../ext/phpbbservices/digests/cache/';
}
else
{
$this->user->add_lang_ext('phpbbservices/digests', array('info_acp_common', 'common')); // Language strings are already loaded if in manual mode
$email_templates_path = './ext/phpbbservices/digests/language/en/email/';
$cache_path = './ext/phpbbservices/digests/cache/';
$this->template->set_style(array('/ext/phpbbservices/digests/styles', 'styles')); // Necessary because for system crons no styling information is set when the template class is instantiated, so template rendering can't happen. Likely phpBB bug/enhancement request.
}
Code: Select all
// Paths should be adjusted if calling program is in either the /bin/ (for system cron) or /adm/ (for manual mailer) directories
$path_prefix = (strstr($referer, '/adm/') || strstr($referer, '/bin/') || strstr(__FILE__, '/bin/')) ? './../' : './';
$email_templates_path = $path_prefix . 'ext/phpbbservices/digests/language/en/email/';
$cache_path = $path_prefix . 'ext/phpbbservices/digests/cache/';
if (!$this->manual_mode)
{
// cron.php and phpbbcli.php assumes an interface where language variables and styles won't be needed, so it must be told where to find them.
$this->user->add_lang_ext('phpbbservices/digests', array('info_acp_common', 'common'));
$this->template->set_style(array($path_prefix . 'ext/phpbbservices/digests/styles', 'styles'));
}
Yes, I see now.. strange thing uses the same name.MarkDHamill wrote:meta_refresh is a phpBB function in includes/functions.php that creates a HTML <meta http-equiv="refresh"> tag. You assign the return value of the function to a template variable which should go into the <head> section of a HTML document.
Yes, it's also possible to send a HTTP header that does the same thing. The only difference is one shows in the markup and one does not.
Regardless, a browser is needed to interpret the header or the <meta> tag so that a refresh takes place.
http://temp.pytalhost.de/phpBB3/cron.php?cron_type=cron.task.cron_task
with the internal phpBB cron (ACP > Server settings > Run periodic tasks from system cron: No). This only triggers the delivery of digests, not the other tasks. So it is a workaround for exotic phpBB-users like me who have a shared hosting environment without cron. It works and I received my first digest now without any visitors inside my test-board.Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/phpbb/db/migration/tool/module.php on line 198: Undefined index: auth
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbservices/digests/ucp/main_module.php on line 210: Undefined index: user_digests_type
[phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbservices/digests/ucp/main_module.php on line 243: Undefined index: user_digests_type
Good news. I am attempting a retrofit of the mailer so that if necessary it can send digests for more than one hour, based on when digests were last sent successfully. It seems to be working but needs further testing.Praggle wrote:Well, Mark, I think it would be more important, to prevent a digest from getting lost totally, because of missing cron activity. From my view it is still better to get a digest late than getting the expected digest never.
Thanks. The first issue is not mine, I don't think. The second can be fixed by changing each instance to user_digest_type, per an earlier post in this topic. Maybe it will fix the other issue.leschek wrote:I just started to test this extension on localhost and when I enable it in ACP I get this message:
also, in the basics tab in UCP I have this message:Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/phpbb/db/migration/tool/module.php on line 198: Undefined index: auth
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbservices/digests/ucp/main_module.php on line 210: Undefined index: user_digests_type [phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbservices/digests/ucp/main_module.php on line 243: Undefined index: user_digests_type
I found it and it fixed the issue, but it didn't fix the first issue:MarkDHamill wrote:The second can be fixed by changing each instance to user_digest_type, per an earlier post in this topic.
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/phpbb/db/migration/tool/module.php on line 198: Undefined index: auth
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbservices/digests/cron/task/digests.php on line 1702: Undefined variable: row
<h4>{L_UCP_DIGESTS_BASICS} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_FORUMS_SELECTION} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_POST_FILTERS} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_ADDITIONAL_CRITERIA} {L_OPTIONS}:</h4>
Code: Select all
'DIGESTS_LIST_USERS' => array(
1 => '1 User',
2 => '%s Users',
),
Code: Select all
'TOTAL_USERS' => sprintf($user->lang['DIGESTS_LIST_USERS'], $total_users),
I do it the same way.MarkDHamill wrote:You can simulate other languages by moving the British England language files into a directory based on your language code, for example for French move /phpbbservices/digests/language/en to /phpbbservices/digests/language/fr. You will still see English but you can translate these if you want.
I can replicate it on live (testing) board too. Just try to enable:MarkDHamill wrote:Not sure what is causing the other issues except you are the first to report them. It suggests maybe the migration program didn't work right but an error should have been reported when it was installed. Disabling, removing the extension and then trying again might solve the problem.
Code: Select all
@define('DEBUG', true);
@define('DEBUG_CONTAINER', true);
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/phpbb/db/migration/tool/module.php on line 198: Undefined index: auth
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
As I wrote before there are some multiple language string in row:MarkDHamill wrote:If there are other examples you can point me to that cause issues, please let me know.
The problem is that we write words in sentences in different order than it is in English. Also, there could be problem with translating extensions if authors of extensions use language strings from core phpBB. It is OK in English, but it doesn't look good in other languages.leschek wrote:for example in file digest_html.txt are:
<h4>{L_UCP_DIGESTS_BASICS} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_FORUMS_SELECTION} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_POST_FILTERS} {L_OPTIONS}:</h4>
<h4>{L_UCP_DIGESTS_ADDITIONAL_CRITERIA} {L_OPTIONS}:</h4>