![]() |
Send author PM on thread move
Disclaimer:
-No support is offered for this hack. If you PM or email for support, it will be joyfully ignored. When I have time, I will answer questions in this thread. PM on Thread Move Design Spec: Alert users that their post has been moved by sending the original author a private message. This helps prevent clogging the forums with those ugly moved markers. An additional checkbox will be shown allowing you to add the PM. Steps for installation: -edit one file 'postings.php' -edit one template 'threads_move' Tested: 2.2.1 Updated: Will now put a checkbox option to send the PM instead of changing the default move action. |
Thanks, it works great! You also seem to be on a roll on new hacks..
|
Welcome.. It's all stuff I've already written for my site and that I'm in the process of transferring to a client's site. So as I'm transferring I'm writing them up for release. I have about 3 dozen more like this :D
|
just keep posting dem!!! heheh
|
Very cool hack. :D Thanks.
Would it be possible to modify this so that there is still an option to just move the thread with no action accompanying it? |
Yes, I like that way much better. I've changed the text file up above so it provides a checkbox option, instead of changing the default action.
If you've already installed this: you'll have to revert your postings.php by deleting out the part you added and then following the instructions again. Same with the template. |
Great! :)
I think there may be some kind of issue here with replacing already included attachment files. The attachment appears to be the same. |
OK, should be fixed, re-uploaded with a new name.
And here it is again in case your browser is caching the attachment file. |
I was thinking renaming the file would be a work around too, but I still get the same file as before, name and all. I wonder if this is an issue only native to this board or if it affects all 2.2.1 boards? :\
|
Very useful hack for a board with many forums, thanks Overgrow!!! :D
|
Very useful hack.
Just I found should be better replace the main two lines in postings.php with the following: Code:
$movemessage="Your thread entitled ".$threadinfo[title]." has been moved to the $bburl[/COLOR]/forumdisplay.php?forumid=".$foruminfo[forumid]."\"]".$foruminfo[title]." forum. You can find it by clicking:\n\n$bburl[/COLOR]/showthread.php?threadid=".$threadid."\"]$bburl/showthread.php?threadid=".$threadid."\n\nThis is an automated message, DO NOT REPLY.\n"; First, of couse, cause mine .txt linked to YOUR homepage... Second, because I didn't like any move thread PM should sent with the same Admin (user 1) author... I'd prefer the original mover as the sender of the PM. Thanks. Bye |
Thanks a lot for the hack Overgrow, I have been waiting for this hack for 2 years! I have a question and a suggestion for you:
1. What happens if the person has disabled using PM's? 2. This shouldn't be very hard for you, can you make a different version of the hack so that it will send a PM on deleting the thread? My request can be found here, I just posted it a month ago. Thanks |
>>What happens if the person has disabled using PM's?
Admins don't care if people have their PMs disabled :) They get the PM anyway.. they'll have to turn them on to read it. >>different version of the hack so that it will send a PM on deleting the thread? No sweat.. in postings.php, find this twice: PHP Code:
PHP Code:
>>cause mine .txt linked to YOUR homepage... OOPS! Sorry, I had fixed that once. I will fix it again.. Sly aren't I? Getting people to register on MY board from your error ;) |
Well, actually it does not. I'd really appreciate it if you could test it and maybe release as a different hack when you have time :)
Thanks |
What doesn't work about that? What is the error? Deleting threads causes big delays on my site so I don't want to test this since I don't want to install it. The code looks like it should work, what goes wrong?
|
I have one more request for an addition to this hack. One I think may be easy, but I could be wrong.
Would it be possible for his hack to also perform an email notification of the PM by default as well? I noticed that while doing some testing that even when the recipient has email notify turned on for their PMs, this particular hack skips that and does not send an email notification. I really like this hack a lot and thank you for providing it as well as modifying it to be a selectable option. :) |
Tell me if this works?
find: } // END PM HACK above it put PHP Code:
|
Nope, it didn't work. =/
I moved a thread with the options selected, got the PM and checked my mail, no message. I waited a few minutes and still no mail, so I sent myself a PM to check and make sure the mail system was functioning alright and recieved the email notify for it in seconds. |
Apparently the $userid that this PM is coming from, is 1, however, I am user #2 and i wish for the PM to come from my name. Can you tell me where to change that? Thanks
|
NSex...
look for this: Code:
(NULL,$firstpostinfo[userid],$firstpostinfo[userid],1,'Your post has been moved.' Good stuff overgrow, thanks! |
Thanks... I appreciate it...http://www.sportsnimports.com/forums...s/thumbsup.gif
|
Overgrow, hi :)
You can make small add-on for this hack? I need send PM to all user's who replies in thread, if thread moving :) If you can make this, please make :) |
For those interested in having the Mod/Admin who moved the thread being the originator of the PM instead of Member #1 (or a set Member you choose) here's the change:
In postings.php Change This: Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid, Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid, Hope this helps someone. Thanks for the great hack! |
thank you thank you thank you
|
This is great but there is a slight issue with it...if the thread is moved to a private forum, the recipient gets told to visit the new thread in the private forum. Of course, then they click on the link and get Permission Denied.
It would be great if it was moved to a private forum, it just said "Your thread was removed" or something, instead of specifiying the new forum. Thanks :D |
Why would you move a user's thread to a forum they can't access in the first place?
|
Because you want it gone from public view but maybe want to save it for record keeping. I do the same in my forum and would love this add-on.
Also, is there a way to include a reason for the thread move in the PM? |
Thanks you for this wonerfull hack Overgrow.
|
that's very useful.thank u very much
i will try it now |
I also couldn't get the PM on delete to work. Anyone have any ideas? (I removed all line returns and tried adding a couple things)
|
Great Hack!
Keeps the forums nice and clean. *Clicks Install* :D |
All worked well, but the only problem i have is the Post icon (<img src="" alt="" border="0">) won't show up, do you guys have any clue what caused that?
Check my attachement... |
This works great. One thing I did was comment out the $movemessage in the postings.php edit. Then I added a text box called movemessage, so that I can customize the message every time. I've needed this forever!
Thanks! |
Brilliant hack cheers :)
I am having the same problem as Aaron has mentioned above. Anyone know how to work around that? Cheers Baz |
Installed this on a hacked-up vb2.3.3 board and it works fine.
However, there is a typo in the install file which adds an extra 'http://' to the topic address which the system PMs them. To fix it look for this line in the instructions: PHP Code:
PHP Code:
- To make the PM icon change from a sad smilie to a ! (exclamation) mark, search for this part of code in the instructions: PHP Code:
PHP Code:
- I also created a new user called "MoveAlert" and disabled PMs for him. I then made the hack use that ID for all messages... just for presentation really. 1. Add a new user 2. Make note of the User ID number 3. Find this line: PHP Code:
Finally I put a pair of quote marks around the title as it appears in the private message to make it look neater... Find: PHP Code:
PHP Code:
|
Is there an update for this hack for VB3x ?
Thanks. |
Quote:
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|