Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM Auto Reply Details »»
PM Auto Reply
Version: 1.25, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-21-2006 Last Update: 06-27-2006 Installs: 71
DB Changes Uses Plugins Template Edits
 
No support by the author.

So, a little something this time I had on my mind for quite a while now....

PM Auto-Reply MOD by ---==> HELLCAT <==---
This adds an "auto responder" to the PMs.

When enabled, everytime you get sent a PM the sender is automatically returned a PM containing a predefined message (editable in options).
To tell the sender you're offline for a while and answer should be expected sometime later or such....

Features:
  • Adds an auto responder (auto reply) option to the PMs
  • Can be turned ON and OFF in useroptions
  • A date can optionally be specified between automated replies are sent
  • Another user can optionally be specified to whom a copy of the recieved PM is forwarded to
  • Admin can specify usergroups not allowed to use the auto responder

Installation:
  • Import the product .XML
  • One tiny template edit:
    Open template "modifyoptions " (in "Modify Useroptions" group) and FIND THIS:
    Code:
    $customfields[messaging]
    AFTER it, ADD:
    Code:
    $pmautoreply_option
    Save the template.
Done, and enjoy!

The admin option for excluding usergroups is in "vBulletin Options" -> "Private Messaging Options" at the bottom: "Exclude usergroups from using the PM auto reply feature"

I intentionally didn't do it with usergroup permissions since that would require a .XML file to be uploaded and I wanted to stay this as a single product/plugin file

[hint]I'd also like something like this on vb.org [/hint]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-23-2006, 11:06 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ha!

Just uploaded an updated version.
Hopefully fixed the two bugs ("blahblah missing bleh error in whatdoiknow.php" and the excluding issue) and added (by special request of a special Boofo ) some replacement variables:
{name}, {from} and {to}
Reply With Quote
  #23  
Old 05-23-2006, 11:11 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All right! You da man!
Reply With Quote
  #24  
Old 05-23-2006, 12:48 PM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed from previous download and got error but I am re-installing with new file. Looks like this will be a great little addition to my site.
Thanks!

*** clicks install ***


PS: bug was fixed, auto reply works great! Thanks again Michael !
Reply With Quote
  #25  
Old 05-23-2006, 04:26 PM
vBulletin THEN DAYLIGHT vBulletin THEN DAYLIGHT is offline
 
Join Date: Oct 2005
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ever since installing this plugin I have been getting a MySQL error when sending PM's to someone with a # in their username, I never had the problem before.

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT userid, pmautoreplystatus, pmautoreplytext, pmautoreplydate FROM vb_user WHERE username='vaughan's #1 fan';

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 's #1 fan'' at line 1
Error Number : 1064
Date : Tuesday, May 23rd 2006 @ 01:13:06 PM
Script : http://www.cricket247.net/forum/private.php
Referrer : http://www.cricket247.net/forum/priv...do=newpm&u=197
IP Address : 87.113.26.175
Username : Rob
Classname : vb_database


Scott MacVicar had this to say:

Quote:
Its the unescaped ' and that is an SQL Injection and a serious security issue.

The query is a non standard vBulletin query from an auto reply hack.
I recommend no one installs this until the problem is sorted.

*disables
Reply With Quote
  #26  
Old 05-23-2006, 06:20 PM
BoYagoob BoYagoob is offline
 
Join Date: Jan 2005
Location: Doha
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ..
Reply With Quote
  #27  
Old 05-23-2006, 09:22 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ouch....
Never trust vB's cleanGPC() again, I guess....
I'll add an escaping of all input and upload an updated version later, once I get home!

Thanks for bringing this to my attention!

[EDIT]
UPDATED VERSION HAS BEEN UPLOADED!
SECURITY ISSUE SHOULD BE FIXED!


I added an additional escaping of the username inside the SQL query!
Reply With Quote
  #28  
Old 05-24-2006, 03:33 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hellcat, thank you for your support for releasing good addons
Reply With Quote
  #29  
Old 05-24-2006, 06:17 PM
vBulletin THEN DAYLIGHT vBulletin THEN DAYLIGHT is offline
 
Join Date: Oct 2005
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Hellcat
Reply With Quote
  #30  
Old 05-25-2006, 01:26 AM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stangsta
I feel honored to find the first bug!

I have a usergroup say....ID #5 (administrator) and I have another usergroup say....ID #15 registered users. If I exclude ID 15 from the options, it will exclude ID #5 as well. Same with #16 & #6.....#17 &#7 and so on.
Still having same problem
Reply With Quote
  #31  
Old 06-08-2006, 08:23 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Howdy

[high]Concerning vBulletin 3.6 (beta 1):[/high]
This seems to be working fine under vB3.6b1.

At least I didn't encounter any problems while testing
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:09 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.04640 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete