vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Moderation Auto-PM v3.0.1 (https://vborg.vbsupport.ru/showthread.php?t=192344)

Delphiprogrammi 09-29-2008 10:00 PM

Moderation Auto-PM v3.0.1
 
hi Folks,

This is a port of this for vBulletin 3.0.3 (long time ago)

I ported it to vBulletin 3.5.4 with the permission of the original author here

i see user requested it for vBulletin 3.7.3 here

so this hack does
  • send a pm to the threadstarter upon moderation actions
  • The pm content is completely phrased to allow easy translation for people not running an english board
  • the pm automatically comes from the moderator who actually performes the moderation(if you leave the setting forthis blank)
  • no pm when a user edits / deleted his own threads / posts
  • support for the inlinemod system
this hack does not
  • send an email instead of a pm
  • split thread / posts not supported
Installation:

upload all *.php files to /includes
import the product xml (set allow overwrite to yes if you are updating from a previous version) There are three setting groups look under vbulletin options -> modpm_*

that's it

Blackhat 09-30-2008 07:32 PM

This is good stuff. You should try make it possible so the mod who is moderating is also the sender :up:

Keyser S?ze 09-30-2008 10:22 PM

are u going to later code support for those things not supported?

good hack been using it since vb3.x

Delphiprogrammi 10-01-2008 05:49 AM

Quote:

Originally Posted by Keyser S?ze (Post 1634250)
are u going to later code support for those things not supported?

good hack been using it since vb3.x


Well an email instead of a pm that should not be a problem but ....

split threads = this is a good place for possible errors because the user who's posts are getting splitted might not be the original threadstarter i don't know if you can get around this

inlinemod = well you do not want to send 100's of pm's (or emails for that matter) at once do you ? your host will be yelling at you !

Delphiprogrammi 10-01-2008 07:15 AM

hi,

Email instead of pm option is added (but not uploaded yet) i'm testing this.It's a switch in the admincp if you have users on your board yelling at you they hate private messages :D

logicuk 10-01-2008 07:45 AM

Looking forward to this addon which should be included in vb by default

Keyser S?ze 10-01-2008 02:41 PM

question, if i delete a post in a thread, just that post not the thread itself, shouldnt the person get an auto PM?

Delphiprogrammi 10-01-2008 03:02 PM

Quote:

Originally Posted by Keyser S?ze (Post 1634721)
question, if i delete a post in a thread, just that post not the thread itself, shouldnt the person get an auto PM?

yes it should depending on the settings you have i will check right now on my testboard

edit

it is indeed not sending anything if you edit a post within a thread (go advanced and choose delete there) hmmmz that is not what i wanted naughty vBulletin

Delphiprogrammi 10-01-2008 03:37 PM

hi,

Fixed in cvs as they say it is sending the message now when deleting a post but i want to perform some more tests before i upload an update also i added the reason field for example if a moderator typed "please do not spam" the pmed / emailed user will see that there one downside to that that field (reason) is not defined everywhere only on editpost and deletepost so sometimes it is empty i don't know of a way to hide in this case yet

Keyser S?ze 10-01-2008 07:43 PM

wouldnt it be something like <if=!""> code code code </if>

Delphiprogrammi 10-01-2008 08:31 PM

Quote:

Originally Posted by Keyser S?ze (Post 1634963)
wouldnt it be something like <if=!""> code code code </if>


no that is template code that will not work within the textarea where the modpmtext is defined

R-D 10-01-2008 09:54 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1635010)
no that is template code that will not work within the textarea where the modpmtext is defined

You can probably use empty() or even isset(). If you don't know what the difference is, there's a comparison on the empty() link.

wwolf27 10-02-2008 01:19 AM

does anyone know where I can find out how to get a thread to post automatically for a certain number post count (100 posts...500 posts...1000 posts) I have looked but I guess I am not doing that right, hence my post.

Shaheen 10-02-2008 01:44 AM

Cool Work . Thanks

Keyser S?ze 10-02-2008 08:45 AM

just a little pointless feedback here but this is a good mod but the title sucks, i think a better one would be like this

Moderation Auto-PM v1.01

parseforum 10-02-2008 09:26 AM

thank you for converting

pnosko31 10-02-2008 10:21 AM

you should make it so that if the thread is deleted, the pm includes the reason added

Bluefin221 10-02-2008 10:28 AM

It PM's when you delete a thread, but not when you edit a thread.

pnosko31 10-02-2008 10:52 AM

can you make this work on POST deletions and not just thread

Delphiprogrammi 10-02-2008 12:23 PM

hi,

the system now
  • pm / emails when editing
  • pm / emails when deleting (yes on posts to)
  • pm / emails include the reason (if provided and on edit and delete actios only)

i'm just a little annoyed that if that if a moderator doesn't provide a reason or an action is performed where the reason field is not included the pm / emails show this as empty this might cause confusion.I do know isset(); or empty(); functions but again this will not work on a predefined text in a textarea within the admincp as you cannot put PHP code in there maybe i should add a "deault reason"

the screenshots in the first post have been updated by the way

Keyser S?ze 10-02-2008 12:55 PM

is it possible to like, if no reason is given instead of having it empty have it say "no reason given" or maybe have what it says editable in the admin cp

pnosko31 10-02-2008 03:05 PM

thanks for the upgrade

pnosko31 10-02-2008 03:16 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1635555)
hi,

the system now
  • pm / emails when editing
  • pm / emails when deleting (yes on posts to)
  • pm / emails include the reason (if provided and on edit and delete actios only)

Unfortunatly NONE of those new options work for me

pnosko31 10-02-2008 03:24 PM

ok it worked on editing. (and gave the reason)

when i deleted the thread it said "$reason" as the reason even though i put one

and when i deleted a post it didn't do anything

Keyser S?ze 10-03-2008 06:05 AM

i nominated this for MOTM, but i seriously think u should change the title

good luck

Delphiprogrammi 10-03-2008 06:15 AM

Quote:

Originally Posted by Keyser S?ze (Post 1636248)
i nominated this for MOTM, but i seriously think u should change the title

good luck

done (the title change)

pnosko31 10-03-2008 10:37 AM

I'd nominate it if it worked as advertised

Delphiprogrammi 10-03-2008 10:52 AM

Quote:

Originally Posted by pnosko31 (Post 1635698)
ok it worked on editing. (and gave the reason)

when i deleted the thread it said "$reason" as the reason even though i put one

and when i deleted a post it didn't do anything

you are requirerd to edit a post => go advanced and edit / delete from there it wil not work through the inlinemod system

pnosko31 10-03-2008 01:34 PM

ok i tried it that way and it worked BUT it sent two PM's....one about the deletion but also one about editing the post

Keyser S?ze 10-03-2008 02:34 PM

seems like since i installed this, if i or anyone else, even the posts owner try to edit a post

Database error in vBulletin 3.7.3:

Invalid SQL:
SELECT username,userid FROM user WHERE userid=;

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 1
Error Number : 1064
Request Date : Friday, October 3rd 2008 @ 11:32:20 AM
Error Date : Friday, October 3rd 2008 @ 11:32:20 AM
Script :
Referrer :
IP Address :
Username : Ice
Classname : vb_database
MySQL Version : 4.1.22-standard

princeedward 10-03-2008 04:05 PM

thanks....this is definitely nice and useful mod...but...i guess it's not workin properly yet... like the reasons is not workin good after merging or moving post/thread...and find also the grammar failure here...

The post is located at this URL here

post whas edited because :

=============================================
Edited: For My Version!
=============================================

Hi $username,

This message is to advise that your $type titled "$threadinfo" has been $action by $modby.

$type Location:
PHP Code:

[COLOR="Red"][b]$url[/b][/COLOR]< (Deleted Is Red

$type $action Reason:

===================================
PHP Code:

[COLOR="Red"][b]$reason[/b][/COLOR]< (Reason Is Red

===================================

If you have any questions, you can ask any staff or administrator for further assistance.

Sincerely,
The $bbtitle Staff.

===============================================

Note:

The only thing is merging, moving, stuck/unstuck closed/opening thread or post has no chance to add reason at all...so the $reason is also appear there...and it looks not good at all... :(

i hope you can make it work some of this and also to all staff...at the same time...means an option that all staff can use this mod... using usergroup id

User Who Sends Automatic PM on Moderation
Enter the usergroup ID of the person whose account you'd like to be used when sending Auto Moderation PMs >>> 6,7,5


thanks and best regards for your work....appreciate it...

;)

Delphiprogrammi 10-03-2008 05:07 PM

Quote:

Originally Posted by princeedward (Post 1636560)
User Who Sends Automatic PM on Moderation
Enter the usergroup ID of the person whose account you'd like to be used when sending Auto Moderation PMs >>> 6,7,5
thanks and best regards for your work....appreciate it...
;)

you mean usergroups (6,7,5) this will not work you can enter only one (userid) there

Keyser S?ze 10-04-2008 12:04 AM

what about if u want the PM sent from whoever did the mod, i mean frankly i dont want ppl msging me cuz a mod closed some thread i never even knew exsisted, that would be very ineficciant

Quote:

Originally Posted by Keyser S?ze (Post 1636494)
seems like since i installed this, if i or anyone else, even the posts owner try to edit a post

Database error in vBulletin 3.7.3:

Invalid SQL:
SELECT username,userid FROM user WHERE userid=;

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 1
Error Number : 1064
Request Date : Friday, October 3rd 2008 @ 11:32:20 AM
Error Date : Friday, October 3rd 2008 @ 11:32:20 AM
Script :
Referrer :
IP Address :
Username : Ice
Classname : vb_database
MySQL Version : 4.1.22-standard

confirmed this hack is causing this error, can anyone explain why and how to fix

thanks

pnosko31 10-04-2008 12:10 AM

I never got that error but are you using a prefix? if so it is missing in front of user

Delphiprogrammi 10-04-2008 11:07 AM

Quote:

Originally Posted by pnosko31 (Post 1636849)
I never got that error but are you using a prefix? if so it is missing in front of user


i do use "TABLE_PREFIX" this error might be caused by an empty user who sends the pm i don't get the error

Max Paint 10-04-2008 11:09 AM

I love this mod!

By the way: There should be NO PM/email, if you edit/delete/etc. your OWN Postings or Topics.

Greetings,
Lars

Delphiprogrammi 10-04-2008 11:10 AM

Quote:

Originally Posted by Keyser S?ze (Post 1636844)
what about if u want the PM sent from whoever did the mod, i mean frankly i dont want ppl msging me cuz a mod closed some thread i never even knew exsisted, that would be very ineficciant



confirmed this hack is causing this error, can anyone explain why and how to fix

thanks

to make the pm come from the moderator who actually did the action that would only require a small code change

Delphiprogrammi 10-04-2008 11:11 AM

Quote:

Originally Posted by Max Paint (Post 1637077)
I love this mod!

By the way: There should be NO PM/email, if you edit/delete/etc. your OWN Postings or Topics.

Greetings,
Lars

yes that woul be the most logical since you are doing it yourself i will try to get that out

Max Paint 10-04-2008 11:33 AM

And a second wish: Could you eliminate the hardcoded terms like "deleted", "moved", "topic" and so on and convert it to phrases? I have a german board and that would make it easier for everyone, who hasn't an english board :) (PLEEEAAASE :) )

Delphiprogrammi 10-04-2008 11:45 AM

Quote:

Originally Posted by Max Paint (Post 1637088)
And a second wish: Could you eliminate the hardcoded terms like "deleted", "moved", "topic" and so on and convert it to phrases? I have a german board and that would make it easier for everyone, who hasn't an english board :) (PLEEEAAASE :) )

i'm afraid this is not possible at least not by me phrases relay on a template where you put the "<phrase>" tag this does not use a template i will try through

by the way folks no pm / email when deleting a thread / post are you sure ?


All times are GMT. The time now is 04:48 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.01479 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
  • (13)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