vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   PM on Thread Move v1.0 (https://vborg.vbsupport.ru/showthread.php?t=98029)

Alan @ CIT 10-09-2005 10:00 PM

PM on Thread Move v1.0
 
A New Version of This Hack has been Released with Support for most Moderation Functions!

Get it from: https://vborg.vbsupport.ru/showthread.php?t=115677

Please UNINSTALL this mod before installing the new one :)



Description
This is a simple little plugin which will send a PM to the thread owner when one of their threads is moved to a different forum, and a re-direct is NOT used.

Quite often the problem arrises of re-directs cluttering up a forum, but if you move a thread without a redirect, then users cannot find it.

This plugin should solve that problem.

Installation
Just upload the attached product XML file. It will add 2 new hooks, and 2 new phrases.

Notes
This currently only works if you move the thread using either the ajax inline moderation, or the Thread Tools menu. If you move the thread from within the ModCP or the AdminCP, then it will not send a PM.

The PM subject and text are stored in the GLOBAL phrases "q_pm_on_move_message_subject" and "q_pm_on_move_message_text" respectivly

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D

theArchitect 10-10-2005 09:24 AM

Many thanks. I use to have a mod on my 3.0.* board which would PM the thread starter on any form of moderatoin. ie. move, close, delete etc.

I would love to see these other aspects of moderation added to this mod too.

Though it is still very handy in its existing form, thanks for sharing it.

Alan @ CIT 10-10-2005 10:40 AM

Good idea. I've started work on this now, I'll (hopefully) have it finished in the next day or so.

devguru 10-10-2005 10:43 AM

thanks. it works great for me.

OmaniMan 10-10-2005 12:24 PM

Great :) ... Installed
We need also for : " Delete, Merge, Spilt, Stick, UnStick ... Other :) ... "

Valter 10-10-2005 12:54 PM

Hi Alan @ CIT

Can you add an option "Send a user PM info about moving thread" or something like that because I don't wish to send this PM every time I move thread.

Nice work, thanks.

Alan @ CIT 10-10-2005 01:45 PM

Glad to hear it's working ok.

OmaniMan: The other moderation options (close, sticky, delete, etc) will be included in the next release. I'm working on it now, and hope to have it finished in a day or 2.

Cybernetec: Good idea, I'll try and work it into the next release.

Jacuma 10-10-2005 03:58 PM

thx Alan great idea... Installed!!

michaelbenson 10-10-2005 05:11 PM

Quote:

Originally Posted by OmaniMan
Great :) ... Installed
We need also for : " Delete, Merge, Spilt, Stick, UnStick ... Other :) ... "

I am eagerly anticipating this addition too.
Good work here :)

Alan @ CIT 10-10-2005 05:32 PM

The next update is coming along nicely now. I've finished adding the PM code to the other options when using the "Thread Tools" menu, just starting on the Ajax ones now :)

twitch 10-10-2005 06:12 PM

Quote:

Originally Posted by Alan @ CIT
The next update is coming along nicely now. I've finished adding the PM code to the other options when using the "Thread Tools" menu, just starting on the Ajax ones now :)

saweet

ben_erhan 10-10-2005 08:10 PM

I want to ask a thing.
For example sometime we move the thread a forbidden area.And the users dont know where th thread.If we send pm they know where it is.For example Administrator room.
I dont want this.Because they musnt not know this room.

In my opinion we can change this code.But how?If any person please reply.I want to give only url.Like this. http://www.myforum.com//forumdisplay.php?f=123456

New Forum: {5} we should be able to change this code

fortnox 10-10-2005 08:12 PM

Thanks !

*klicks install* :banana:

Neal-UK 10-10-2005 08:22 PM

Who ID number will this send the message from as on my forum I am 2

utw-Mephisto 10-10-2005 08:39 PM

Very nice and working *installed*

smokering 10-11-2005 02:07 AM

another good one thank you as i click install

Keyser S?ze 10-11-2005 05:01 AM

Quote:

Originally Posted by theArchitect
Many thanks. I use to have a mod on my 3.0.* board which would PM the thread starter on any form of moderatoin. ie. move, close, delete etc.

I would love to see these other aspects of moderation added to this mod too.

Though it is still very handy in its existing form, thanks for sharing it.

yea i agree, in vb 2.3 i think it was, there was a hack that would send a PM on move, close or delete, that was a nice hack

but a step further id like to see the PM state "who" did it, and if a reason was put in (like when its deleted) that included too

also the option to turn on/off each notification in the admincp, and wether u want a PM sent even if there is a redirect

q8manar 10-11-2005 05:55 AM

Great

I installed it and it is a great product

Thanks

Alan @ CIT 10-11-2005 07:30 AM

First off, thanks to everyone who installed it :)

ben_erhan: I'll be sure to add permission checking into the next release. If the user doesn't have permission to view the forum it's being moved to, then it won't tell them about the forum.

nealparry: It sends the PM from whoever moderateted the thread (you, one of your moderators, etc).

Keyser S?ze: The PM is currently sent from the person who did the thread move (ie, the moderator), and I've added the "reason" (ie, for deletions, etc) into the next release, so it tells them what it was. Also, the options have been added to the AdminCP for the next release, and it supports all of the other mod functions (including move with redirects) :-)

I'm hopefull to have the next release out by Friday, but don't hold me to that :D

q8manar 10-11-2005 09:43 PM

Thank Alan

If I want to make the sender is one person (like user id = 10) .
Please tell me what is the modification that need in the product.

Please .

Sadie Frost 10-12-2005 01:22 AM

Thank you so much - this is the one hack I cannot live without! :D

Alan @ CIT 10-12-2005 06:10 AM

q8manar,

In the hooks inlinemod_domovethread and threadmanage_move_simple, find the following code:

PHP Code:

// Fill in the blanks
$pm->set('fromuserid'$vbulletin->userinfo['userid']);
$pm->set('fromusername'$vbulletin->userinfo['username']) 

This is the code you need to change. For example, if you wanted to send it from userid 10, and the username of ModBot, you would change it to:

PHP Code:

// Fill in the blanks
$pm->set('fromuserid'"10");
$pm->set('fromusername'"ModBot"

I'll make this an option in the next version.

Startinfresh 10-13-2005 08:45 PM

Ok, I am new to this. Where do I upload the file to?

TIA

mtha 10-13-2005 09:28 PM

Great hack

Did it check if $threadinfo['postuserid'] = 0 (post created by guests)?

Mr Chad 10-13-2005 09:52 PM

very nice. This should be a standard option.

mtha 10-13-2005 10:01 PM

Quote:

Originally Posted by Alan @ CIT
... and I've added the "reason" (ie, for deletions, etc) into the next release, so it tells them what it was. Also, the options have been added to the AdminCP for the next release, and it supports all of the other mod functions (including move with redirects) :-)

well, supposed that the option to PM on move is turn on (in AdminCP) (I guest), or like right now, it's always PM on move, if you have "reason to send to thread poster", you can also add an option above it, asking of the Mod want to send the PM or not. Sometime, when you need to move something, and you dont really need to PM first poster, especially when you re-organize your posts, or your group's work space that the group know where the new location should be.


extend this, Admin can disable this option for mod in admincp.

The eyes lover 10-14-2005 02:31 AM

Great hack :)

I've 1 question..How can I change the the sender number, when I install the hack it sending by the member number 1 it's the administrator, I wanna change the sender please,

Thanks in advance

Paul M 10-14-2005 02:45 AM

Quote:

Originally Posted by The eyes lover
Great hack :)

I've 1 question..How can I change the the sender number, when I install the hack it sending by the member number 1 it's the administrator, I wanna change the sender please,

Thanks in advance

Try looking about six posts up ^^^^^

Alan @ CIT 10-14-2005 05:51 AM

Hi,

Quote:

Originally Posted by Startinfresh
Ok, I am new to this. Where do I upload the file to?

TIA

In your vBulletin AdminCP, go to:

Plugin System -> Manage Products -> Add/Import Product

And follow the instructions from there.

piXelatedEmpire 10-14-2005 10:13 AM

wow.. some of the new features you are speaking of sound fabulous! I can't wait to see the new release

dutchbb 10-14-2005 12:39 PM

Great, we use to have it on 3.0 and it's very user-friendly to send an auto pm for these actions. Just waiting for the new release to install :)

Basit 10-15-2005 01:37 AM

Installed. Waiting for new version with all other necessary features.

Thanks.

Yorixz 10-15-2005 11:45 AM

Very nice mod, would be totally perfect if it also pmed users if their thread was deleted or closed - the ultimate addition ;)

karrerax 10-15-2005 01:12 PM

Installed!
Excellent Plugin :squareeyed:

ben_erhan 10-15-2005 08:45 PM

Quote:

Originally Posted by Alan @ CIT
First off, thanks to everyone who installed it :)

ben_erhan: I'll be sure to add permission checking into the next release. If the user doesn't have permission to view the forum it's being moved to, then it won't tell them about the forum.

nealparry: It sends the PM from whoever moderateted the thread (you, one of your moderators, etc).

Keyser S?ze: The PM is currently sent from the person who did the thread move (ie, the moderator), and I've added the "reason" (ie, for deletions, etc) into the next release, so it tells them what it was. Also, the options have been added to the AdminCP for the next release, and it supports all of the other mod functions (including move with redirects) :-)

I'm hopefull to have the next release out by Friday, but don't hold me to that :D


Thanks alot for your explain Alan

Kihon Kata 10-17-2005 09:47 PM

Quote:

Originally Posted by theArchitect
Many thanks. I use to have a mod on my 3.0.* board which would PM the thread starter on any form of moderatoin. ie. move, close, delete etc.

I would love to see these other aspects of moderation added to this mod too.

Though it is still very handy in its existing form, thanks for sharing it.

BAM! Installs. This hack was a HUGE hit with my all my mods

SVZ 10-18-2005 11:42 PM

the only thing is it only sends a PM once. Like if you move the same thread twice, it won't PM the second time.

Alan @ CIT 10-19-2005 07:32 AM

Hi SVZ,

It works fine here. The plugin doesn't keep track of if a threads been moved before, it just gets called everytime the domove code is run.

Are you certain your moving the thread without a redirect the second time?

COBRAws 10-19-2005 09:53 AM

Quote:

Originally Posted by Alan @ CIT
First off, thanks to everyone who installed it :)

ben_erhan: I'll be sure to add permission checking into the next release. If the user doesn't have permission to view the forum it's being moved to, then it won't tell them about the forum.

nealparry: It sends the PM from whoever moderateted the thread (you, one of your moderators, etc).

Keyser S?ze: The PM is currently sent from the person who did the thread move (ie, the moderator), and I've added the "reason" (ie, for deletions, etc) into the next release, so it tells them what it was. Also, the options have been added to the AdminCP for the next release, and it supports all of the other mod functions (including move with redirects) :-)

I'm hopefull to have the next release out by Friday, but don't hold me to that :D

looking foward D:

Xajel 10-23-2005 09:31 AM

Wow great plug man...

- add an option to make it send email rather than PM or send both, or send email for users less than X posts as some forums admins uses the ( Disable PM's for users less than X posts )

- What If we can have an option to enable/disable pming while doing mod stuff; something like checkbox..

- under that checkbox ( send or not ), we can have a small text area if we would like to inform the thread writer for moving/closing/deleting reasons..

- Some Forums have a special Forum for deleted threads, so when they want to delete a thread; they simply move the thread to that forum.. so you can put a forum id's targets wich uses the ( Thread Deleted ) Template rather than ( Thread Moved )


All times are GMT. The time now is 05:27 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
  • Page Generation 0.01421 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete