Version: 1.01, by kall
Developer Last Online: Aug 2021
Version: 3.0.3
Rating:
Released: 09-07-2004
Last Update: 04-12-2005
Installs: 50
DB Changes
No support by the author.
What does this Hack do?
When a thread is Opened/Closed, Stuck/Unstuck, Moved, Split, Merged, or a Post is deleted, a PM will be automatically sent to the Poster to inform them of this.
If you don't want to have a PM sent for a specific action, just don't add the code for that bit.
Sensational idea for a hack, but i am getting the following DB error when i try and moderate a thread:
Code:
Invalid SQL:
SELECT postid, post.title, pagetext, post.threadid, thread.title AS threadtitle
FROM post AS post
INNER JOIN thread AS thread USING(threadid)
WHERE postid =
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
mysql error number: 1064
Add $modby to your PM text in the Admin CP options.
Where exactly does $modby go?
@Tundrasoul: In the part in the AdminCP where you define what the message will be - it's in the User Posting part from memory.
@omaniman: Another good idea, but again, something I couldn't work out how to do.
@futureye: if you are using vBs built in SQL thingame, one command at a time. If you are using phpmyadmin you can copy and paste the entire queries and run them at once.
@theArchitect: I don't know why you are getting that error, it looks like it's not getting the postid for some reason.
@Ageel: I agree, but I couldn't work out how to do that easily. If someone wants to write the code for that I can add it to the first post and credit them.
can't get this working i installed tested it did a post with my "test user" logged out looged back in as admin locked the thread and finally checked the pm's on the test account but nope ... no errors at all but no pm either
Fixed install file uploaded...I think that's correct, it's 11PM here and I'm rapidly losing consciousness.
Thanks for the fix Kall, but there's still another problem ... if you "soft delete" a thread or post, and restore the same thread or post later later, no notification is sent when the thread was retored. Also, the delet fix didn't work. The $action variable is not storing values.
i can't get this to work pm's on my testaccount are on i did the database querys you instructions tell us todo then i edit postings.php i upload the modified file (overwriting the existing one) then i close a thread and login with the test account but no pm ??????
Hello,
I have found one problem in your script. When deleting one of any posts in the topic then confirmation message has been sending not to the author of the post but to the author of the topic. Could you please fix it?