Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Notify
This discussion has been closed.
Comments
Why does it notify people of comments posted in private categories which their role does not allow the viewing of?
Notify is an ex-addon!
[22-Jun-2008 22:03:31] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/XXXX/public_html/live/public/forums/extensions/Notify/default.php on line 252
[22-Jun-2008 22:03:31] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/XXXX/public_html/live/public/forums/extensions/Notify/default.php on line 264
[22-Jun-2008 22:03:31] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/XXXX/public_html/live/public/forums/extensions/Notify/default.php on line 273
Notify 1.2.2 - CHANGES
default.php:
-changed some of the default strings
-changed the User table references to $Context->DatabaseTables['User']
-changed references to columns in the User table to $Context->DatabaseColumns['User']['ColumnName'] (hope I got 'em all; note: the Notify table and columns are still hardcoded)
-fixed a label in the Notify config page; the label for "entire forum" was broken
functions.js
-removed duplicate "$(Elem).innerHTML = NewText;" that was unconditional - this was causing config settings to vanish from the config page on click
-removed Mac folder from base directory
-changed permissions on Notify folder to 755; it was 750 which was causing the extension not to show up on the extensions page
If there is interest and the original author gives his permission, I might be willing to maintain this extension and add any further features to it.
I'm wondering how the email can also display the title of the thread? And the name of user(or forum name would be better) displays?
Thanks for your contribution!
$e->Subject = $DiscussionForm->Context->Configuration['APPLICATION_TITLE'].' "'.$mTitle.'" ';
Joey's was $e->Subject = $DiscussionForm->Context->Configuration[''APPLICATION_TITLE''].' "'.$mTitle.'" ';
Can anyone tell me how I can display forum names instead of {name}? {name} displays whatever is in "Name" field. But I would liek to display forum names.
Thanks.
Thanks.
It may require some adjustments depending on which version do you use, but in general idea should be clear for you.
In function NotifyDiscussion replace the first sql query after the comment #Add all users who have subscribed to all, aren't already notified except the posting user with this one:
SELECT n.UserID, u.Email, u.FirstName, u.LastName FROM {$pfx}Notify AS n, {$pfx}User AS u LEFT JOIN {$pfx}Discussion AS d ON d.DiscussionID = '$DiscussionID' LEFT JOIN {$pfx}CategoryRoleBlock AS b ON d.CategoryID = b.CategoryID AND u.RoleID = b.RoleID WHERE n.Method = 'ALL' AND n.UserID <> '$SelfUser' AND n.UserID = u.UserID AND u.Notified = 0 AND b.Blocked IS NULL
Note I'm using $pfx defined far above in the code as $pfx = $Context->Configuration['DATABASE_TABLE_PREFIX']; for simplicity.
You can use $DiscussionForm->Context->Configuration['DATABASE_TABLE_PREFIX'] or stuff like $DiscussionForm->Context->DatabaseColumns['User']['Email'] instead, it's just a matter of taste.
Provided as is, without warranties. Works fine for me though