Quote:
Originally posted by tkeil69575
I installed your hack today, unfortunately im not getting emails from subrcribed forums. I looked at your code
if ($enableemail and $visible)
I presume that means, that users must be Visible and must have emails actived. I have my board setup so that emails-Adresses from users are not shown and quite a few users are not visible. Does that mean thats why its not working?
What would happen if I just removed this if clause?
|
$enableemail is controlled from the admin control panel ("Enable Email features?"). The user cp option for admin emails does not matter (as with thread subscriptions).
$visible is generally used for moderated threads. It is true if (the poster is a moderator) OR (the thread is not moderated) OR (the thread is not a poll). If the thread is to be moderated ($visible == false), the hack's notification is delegated to the mod/moderate.php file. If your forums do not moderate new threads, $visible isn't necessary nor the changes to mod/moderate.php.
One error that I do have in this hack is the poll path. Obviously, I made no modifications to poll.php so nothing is sent. I'll put that on my to-do list.
My only suggestion on testing is to
(1) subscribe to a forum,
(2) log in using an alternate account,
(3) post a new thread to the forum subscribed to in (1).
Also, my instructions may be unclear. The inserted code for file newthread.php needs to be
outside the braces (i.e immediately before the line "// redirect"). Let me know if my instructions are unclear in this area. If this code is put in the wrong spot, the checks will be in the wrong
if clause and highly unlikely to work.