That tells you that you have to give people permissions allowing them to change their boardwatch settings. If you forget to do that, no one will have permission to see the boardwatch module that allows them to change their settings so they all get stuck with whatever default you provided. Go here for more detail on how to set permissions: http://www.phpbb.com/community/viewtopi ... #p10575065Warning
New permission settings have been added. Be sure to check your permission settings and see that they are as you would like them.
Code: Select all
Warning: Call-time pass-by-reference has been deprecated in \includes\acp\acp_users.php on line 1345
Code: Select all
// start mod boardwatch
include($phpbb_root_path . 'includes/functions_boardwatch.' . $phpEx);
boardwatch_draw_acp_prefs(&$data, $user_row);
// end mod boardwatch
Bigger question is how did the validation Team let it slip through?asinshesq wrote:Thanks, Rich. How did I let that slip through
I was very very very careful not to say that, richRMcGirr83 wrote:asinshesq wrote:Bigger question is how did the validation Team let it slip through?
Code: Select all
SQL ERROR [ postgres ]
ERROR: invalid input syntax for integer: " . BOARDWATCH_YES . " []
SQL
SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber, u.user_boardwatchf FROM phpbb_forums_watch fw, phpbb_users u WHERE fw.forum_id = 5 AND fw.user_id NOT IN (1, 2, 62, 66, 54, 57, 58, 64, 53, 55, 63, 61, 60, 56, 65, 54, 57, 58, 64, 53, 55, 63, 61, 60, 56, 65) AND (fw.notify_status = 0 OR u.user_boardwatchf = ' . BOARDWATCH_YES . ') AND u.user_type IN (0, 3) AND u.user_id = fw.user_id
BACKTRACE
FILE: includes/db/postgres.php
LINE: 177
CALL: dbal->sql_error()
FILE: includes/functions_posting.php
LINE: 1195
CALL: dbal_postgres->sql_query()
FILE: includes/functions_posting.php
LINE: 2491
CALL: user_notification()
FILE: posting.php
LINE: 1001
CALL: submit_post()
Are you sure you granted the user in question (e.g. yourself or a group of which you are a member) permission to use boardwatch? The boardwatch options will only show up for a user that has permissions to use boardwatch.shott wrote:...While I thought that I had carefully followed all instructions, I must have missed something. For starters, I don't seem to see the Edit Boardwatch Options under the User Control Panel -> Board Preferences even though I think that I have the appropriate INCLUDE statement in acp_users_prefs.html and also have acp_boardwatch.html in the adm/styles directory. I do, however have BOARDWATCH_EDIT_OPTIONS under ACP -> System -> Module Management -> UCP -> Board Preferences...
shott wrote:...Also, when I post a reply to a message I get the following error message:
Code: Select all
SQL ERROR [ postgres ] ERROR: invalid input syntax for integer: " . BOARDWATCH_YES . " []...[/quote] I know nothing about postgres (I only use mysql), but it looks like maybe it doesn't realize that BOARDWATCH_YES is a constant that means 0. And that could happen if you either (a) forgot to upload the includes/boardwatch constants.php file that comes iwth the mod (or uploaded it to the wrong folder) or (b) forgot to make the first change to includes/functi0ons_posting.php that this mod has you make (that's the one that includes the boardwatch_constants.php file) or made that change in the wrong place. Let me know what you figure out.
Alan .... Bingo!!! That's what I had forgotten to do. I had enabled the module but not allowed anyone to use it.Are you sure you granted the user in question (e.g. yourself or a group of which you are a member) permission to use boardwatch? The boardwatch options will only show up for a user that has permissions to use boardwatch.
If you are trying to turn boardwatch off for all existing users, try this:TheLuBu wrote:Is there an SQL code to set board notification to off? I have set permissions only to administrator but about 30-40 People get the email notification! I don´t now how to turn it off!
lease help me quick, board is getting flooded
TheLuBu
----
Did it, set boardwatch for the whole forum to never for everyone. Could you set boardwatch for the complete forum to "No" as standard from the beginnning?
I´m sorry for my bad english
Code: Select all
UPDATE phpbb_users
SET user_boardwatchb = 2
WHERE 1 = 1;
Code: Select all
ALTER TABLE phpbb_users
MODIFY user_boardwatchb TINYINT(1) UNSIGNED DEFAULT '2' NOT NULL;
I believe that I do have the contstants_boardwatch.php file included properly .... in fact, it seems to be interpreting the constant BOARDWATCH_YES appropriately in the $sql statement that follows "// -- get forum_userids || topic_userids", but then does not get interpreted properly in the "if ($topic_notification)" $sql statement that follows about 20 lines later.General Error
SQL ERROR [ postgres ]
ERROR: invalid input syntax for integer: " . BOARDWATCH_YES . " []
SQL
SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber, u.user_boardwatchf FROM phpbb_forums_watch fw, phpbb_users u WHERE fw.forum_id = 5 AND fw.user_id NOT IN (1, 2, 62, 66, 54, 57, 58, 64, 55, 63, 60, 56, 65, 61, 53, 54, 57, 58, 64, 55, 63, 60, 56, 65, 61, 53) AND (fw.notify_status = 0 OR u.user_boardwatchf = ' . BOARDWATCH_YES . ') AND u.user_type IN (0, 3) AND u.user_id = fw.user_id
BACKTRACE
FILE: includes/db/postgres.php
LINE: 177
CALL: dbal->sql_error()
FILE: includes/functions_posting.php
LINE: 1195
CALL: dbal_postgres->sql_query()
FILE: includes/functions_posting.php
LINE: 2491
CALL: user_notification()
FILE: posting.php
LINE: 1001
CALL: submit_post()
Code: Select all
// -- get forum_userids || topic_userids
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_
notify_type, u.user_jabber, u.user_boardwatch' . (($topic_notification) ? 't' :
'f') . '
FROM ' . (($topic_notification) ? TOPICS_WATCH_TABLE : FORUMS_WA
TCH_TABLE) . ' w, ' . USERS_TABLE . ' u
WHERE w.' . (($topic_notification) ? 'topic_id' : 'forum_id') .
' = ' . (($topic_notification) ? $topic_id : $forum_id) . "
AND w.user_id NOT IN ($sql_ignore_users)
AND (w.notify_status = 0 OR u.user_boardwatch" . (($topi
c_notification) ? 't' : 'f') . ' = ' . BOARDWATCH_YES . ")
AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDE
R . ')
AND u.user_id = w.user_id';
Code: Select all
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang,
u.user_notify_type, u.user_jabber, u.user_boardwatchf
FROM ' . FORUMS_WATCH_TABLE . ' fw, ' . USERS_TABLE . "
u
WHERE fw.forum_id = $forum_id
AND fw.user_id NOT IN ($sql_ignore_users)
AND (fw.notify_status = 0 OR u.user_boardwatchf
= ' . BOARDWATCH_YES . ')
AND u.user_type IN (" . USER_NORMAL . ', ' . USE
R_FOUNDER . ')
AND u.user_id = fw.user_id';
Code: Select all
// -- get forum_userids || topic_userids
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_
notify_type, u.user_jabber
FROM ' . (($topic_notification) ? TOPICS_WATCH_TABLE : FORUMS_WA
TCH_TABLE) . ' w, ' . USERS_TABLE . ' u
WHERE w.' . (($topic_notification) ? 'topic_id' : 'forum_id') .
' = ' . (($topic_notification) ? $topic_id : $forum_id) . "
AND w.user_id NOT IN ($sql_ignore_users)
AND w.notify_status = 0
AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDE
R . ')
AND u.user_id = w.user_id';
Code: Select all
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang,
u.user_notify_type, u.user_jabber
FROM ' . FORUMS_WATCH_TABLE . ' fw, ' . USERS_TABLE . "
u
WHERE fw.forum_id = $forum_id
AND fw.user_id NOT IN ($sql_ignore_users)
AND fw.notify_status = 0
AND u.user_type IN (" . USER_NORMAL . ', ' . USE
R_FOUNDER . ')
AND u.user_id = fw.user_id';
Code: Select all
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang,
u.user_notify_type, u.user_jabber, u.user_boardwatchf
FROM ' . FORUMS_WATCH_TABLE . ' fw, ' . USERS_TABLE . "
u
WHERE fw.forum_id = $forum_id
AND fw.user_id NOT IN ($sql_ignore_users)
AND (fw.notify_status = 0 OR u.user_boardwatchf
= " . BOARDWATCH_YES . ")
AND u.user_type IN (" . USER_NORMAL . ', ' . USE
R_FOUNDER . ')
AND u.user_id = fw.user_id';