PDA

View Full Version : PM Auto Reply


Hellcat
05-21-2006, 10:00 PM
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:
$customfields[messaging]AFTER it, ADD:
$pmautoreply_optionSave 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 :)

I'd also like something like this on vb.org ;)

Boofo
05-21-2006, 10:20 PM
Can the date be eneterd into the PM also?

Hellcat
05-21-2006, 10:38 PM
You can enter any text you like for the auto PM :)

Boofo
05-21-2006, 10:40 PM
I was referring to a time variable. ;)

Hellcat
05-21-2006, 10:42 PM
Yeah, could be done.
Wouldn't even be hard to do. But why not just type it in your PM text? ;)

DementedMindz
05-21-2006, 11:33 PM
another great mod from a great coder thanks...

Ntfu2
05-22-2006, 12:28 AM
score, i've been wondering if something like this existed.

Boofo
05-22-2006, 01:22 AM
Yeah, could be done.
Wouldn't even be hard to do. But why not just type it in your PM text? ;)

In case you ever wanted to change it I guess and still use a standard message.

Ziki
05-22-2006, 03:47 AM
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

:):):)

Import the product .XML

Zia
05-22-2006, 03:58 AM
:) ah hellcat..alive :)

nice to see a hack from u ..after a long time....

Tc.

Stangsta
05-22-2006, 04:04 AM
Instead of usergroups to exclude, why not groups to INCLUDE?

Ntfu2
05-22-2006, 04:12 AM
Just wondering if there is built in protection from this looping all day until pm boxes are full

User A pms UserB who sets this up

User A also has this setup which returns his to USers B

User B then begins the madness with another reply of his away message

repeat till pm box is full

Stangsta
05-22-2006, 04:12 AM
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  and so on.

Ntfu2
05-22-2006, 04:18 AM
Just wondering if there is built in protection from this looping all day until pm boxes are full

User A pms UserB who sets this up

User A also has this setup which returns his to USers B

User B then begins the madness with another reply of his away message

repeat till pm box is full


after testing the answer is that it does not loop like i thought it would

Nice hack indeed

projectego
05-22-2006, 06:59 AM
Nice idea, I'll check this out now. ;)

Snake
05-22-2006, 08:33 AM
Another great hack by Hellcat. You are awesome man!

Thanks, will install this tonight. ;)

Hellcat
05-22-2006, 09:07 PM
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  and so on.
Huh?
You're sure it'not the other way round, when excluding #5 it also excludes #15?
I think I know why, will take a look and upload a fixed version tomorrow :)

bada_bing
05-22-2006, 09:54 PM
Cool when the exclude thing is fixed I will install

Nathan2006
05-23-2006, 02:51 AM
Thank you Hellcat :D

This is great!

Install

Just one problem I receive is this error below when The redirect message appears after sending the pm.

Thanks for any help :)

Warning: Missing argument 2 for set_recipients() in /includes/class_dm_pm.php on line 231

Cybertims
05-23-2006, 08:24 AM
Thank you Hellcat :D

This is great!

Install

Just one problem I receive is this error below when The redirect message appears after sending the pm.

Thanks for any help :)

I get the same error....otherwise great hack.

installed......

Hellcat
05-23-2006, 11:06 AM
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} :)

Boofo
05-23-2006, 11:11 AM
All right! You da man! ;)

htscpl
05-23-2006, 12:48 PM
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 !

vBulletin THEN DAYLIGHT
05-23-2006, 04:26 PM
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/private.php?do=newpm&u=197
IP Address : 87.113.26.175
Username : Rob
Classname : vb_database

Scott MacVicar had this to say:

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

BoYagoob
05-23-2006, 06:20 PM
Thanks ..

Hellcat
05-23-2006, 09:22 PM
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!

SaN-DeeP
05-24-2006, 03:33 PM
Hellcat, thank you for your support for releasing good addons :)

vBulletin THEN DAYLIGHT
05-24-2006, 06:17 PM
Thanks, Hellcat

Stangsta
05-25-2006, 01:26 AM
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  and so on.Still having same problem :(

Hellcat
06-08-2006, 08:23 AM
Howdy :)

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

At least I didn't encounter any problems while testing ;)

Nathan2006
06-11-2006, 12:26 AM
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} :)

Hi Hellcat,

Thank you for the update :)

I'm having problems with the tags.

If I type a message in the box such as:


Hi {to},

Thank you for your message.

I will get back to you shortly,

Regards,
{name}

The {name} works but {to} does not work and leaves the message like this missing out the name of the member its being sent to.


Hi ,

Thank you for your message.

I will get back to you shortly,

Regards,
Nathan

Thank you for any help :)

klaush
06-11-2006, 08:58 AM
Thanks! Very, very usefull!

This would be perfect if i could name one user who will optional receive a copy of this pn, so my co-admin for example will receive this pn as well and could answer?

Smiry Kin's
06-11-2006, 02:00 PM
wow this is really nice.. great work dude

user02934123123
06-12-2006, 03:34 PM
Howdy :)

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

At least I didn't encounter any problems while testing ;)
Nor I ... seems to work just fine with 3.6b1.

Hellcat
06-12-2006, 04:09 PM
Thanks! Very, very usefull!

This would be perfect if i could name one user who will optional receive a copy of this pn, so my co-admin for example will receive this pn as well and could answer?
I actually like that idea :) and I could be quite easiely be done, I think....
* Hellcat puts on ToDo

bada_bing
06-12-2006, 06:14 PM
Just install on my 3.5.3 site and does not work. No error plugin installs and added the code to the modifyoptions template and excluded the groups from admincp and nothing shows up in the users edit options :surprised:

Hellcat
06-12-2006, 10:29 PM
Just install on my 3.5.3 site and does not work. No error plugin installs and added the code to the modifyoptions template and excluded the groups from admincp and nothing shows up in the users edit options :surprised:
Remove everything from the excluded groups setting in the AdminCP and try again.
There's a bug with that I still need to fix.

Report if it's showing up then, if not wee look for other causes :)

bada_bing
06-13-2006, 02:14 AM
I have removed everything in the excluded and still does not show?

freedom2support
06-13-2006, 11:58 AM
Great plugin this. Exactly what one of our users was asking for. One problem I've noticed though is the textarea for editing the autoreply message appears too wide in Firefox:

http://img149.imageshack.us/img149/5122/textareatoowide7ry.png

It causes the box around the PM Auto-Reply Options to be wider than the other boxes around settings groups on that page. Seems fine in IE and Opera though. I found changing the textarea to 60 columns from 64 got it looking right in Firefox (but made the textarea slightly smaller in IE and Opera).

Also I'm not sure if the {name} replacement variable is working right. Your description says it gets replaced with the name of the auto-reply recipient, which is the person receiving the automatic reply. So if I send a PM to bob and get an autoreply, {name} should be replaced with freedom2support since I am the auto-reply recipient. But currently the plugin would replace it with the recipient of the PM (bob) and not of the auto-reply.

Smiry Kin's
06-13-2006, 01:17 PM
Great plugin this. Exactly what one of our users was asking for. One problem I've noticed though is the textarea for editing the autoreply message appears too wide in Firefox:

http://img149.imageshack.us/img149/5122/textareatoowide7ry.png

It causes the box around the PM Auto-Reply Options to be wider than the other boxes around settings groups on that page. Seems fine in IE and Opera though. I found changing the textarea to 60 columns from 64 got it looking right in Firefox (but made the textarea slightly smaller in IE and Opera).

Also I'm not sure if the {name} replacement variable is working right. You description says it gets replaced with the name of the auto-reply recipient, which is the person receiving the automatic reply. So if I send a PM to bob and get an autoreply, {name} should be replaced with freedom2support since I am the auto-reply recipient. But currently the plugin would replace it with the recipient of the PM (bob) and not of the auto-reply.
it maybe a little big, but still looks ok, it doesnt make the outside table any bigger.

also the name functiion works perfect.

specktra.net
06-13-2006, 06:22 PM
Still having same problem :(

As am I. /disables until we can get this resolved :(

freedom2support
06-13-2006, 08:56 PM
it maybe a little big, but still looks ok, it doesnt make the outside table any bigger.

also the name functiion works perfect.
Yeah the display thing is only very minor, but I thought I'd point it out.

I don't think the {name} variable is right (going by the description in the user options of what it is meant to do). Logically the replacement variables are for showing things in the message that can change, like the from and to dates which you might change as you are away at different times. There isn't really much point in having a variable which just displays your username, since your username would hardly ever change (if ever at all). The example plugin output in this post (https://vborg.vbsupport.ru/showpost.php?p=1004510&postcount=31) further up shows that {name} is being replaced by the sender of the auto-reply (the user who has the auto-reply setup for PMs they receive) and not the name of the auto-reply recipient (the person who sends a PM and gets an auto-reply back).

Hellcat
06-13-2006, 10:29 PM
{name} is replaced by the name of the user that has sent you the original PM, or in other terms, with the name of the reciever of the auto-reply.

Ex:
UserA sends UserB a PM, UserB has autoreply enabled -> {name} = UserA

At least that's how it's supposed to be, anything else I will check and fix, since it's a bug then. :)

Nathan2006
06-14-2006, 06:45 AM
{name} is replaced by the name of the user that has sent you the original PM, or in other terms, with the name of the reciever of the auto-reply.

Ex:
UserA sends UserB a PM, UserB has autoreply enabled -> {name} = UserA

At least that's how it's supposed to be, anything else I will check and fix, since it's a bug then. :)


Hi,

As in my post above, The {to} and {from} don't work the only thing that does work is {name} but this only works as your user name as from not too.

This is the only one that works for me if setup like this:

Hi,

Thank you for your message.

I will get back to you shortly,

Regards,
{name}

If adding anything Hi {to} or Hi {from} they only leave a blank space and will not show the senders user name :(

I have tried this on alot of other user accounts with no luck :(

klaush
06-14-2006, 07:05 AM
I actually like that idea :) and I could be quite easiely be done, I think....
* Hellcat puts on ToDo

Thanks!

Hellcat
06-14-2006, 07:18 AM
If adding anything Hi {to} or Hi {from} they only leave a blank space and will not show the senders user name :(

I have tried this on alot of other user accounts with no luck :(
{to} and {from} is for the date display, if you have not entered a date, of course they will be empty ;)

I'll check the {name} thing....

Ramsesx
06-14-2006, 11:51 AM
Very nice hack Hellcat, thank you.
Is it possible to make a setting in the acp for enabling/disabling the date settings? I don't find it usefull and think it's only to much confusing for the default user, especially who really knows whats a "PHP recognizable format" is.

Thanks.

Strat
06-14-2006, 01:55 PM
I can't find, for the life of me, the options to type in the msg. Any idea?

Hellcat
06-14-2006, 03:32 PM
Very nice hack Hellcat, thank you.
Is it possible to make a setting in the acp for enabling/disabling the date settings? I don't find it usefull and think it's only to much confusing for the default user, especially who really knows whats a "PHP recognizable format" is.

Thanks.
That can be done, yes :)
* Hellcat puts on ToDo


I can't find, for the life of me, the options to type in the msg. Any idea?
In "Edit Options", right under "Enable Autoresponder"?

Did you edit the template?

Strat
06-14-2006, 08:02 PM
My mistake. I thought this was something I'd have to type inside a box in the Admin Options. Instead, it's part of regular users' Control Panel.

freedom2support
06-14-2006, 09:41 PM
{name} is replaced by the name of the user that has sent you the original PM, or in other terms, with the name of the reciever of the auto-reply.

Ex:
UserA sends UserB a PM, UserB has autoreply enabled -> {name} = UserA

At least that's how it's supposed to be, anything else I will check and fix, since it's a bug then. :)
Currently in the code {name} is being replaced with the value of $recipient, which is the name of one of the recipients in the $recipients array. So in your example, currently {name} would be replaced with UserB as UserB is one of the recipients of UserA's PM, and so is the value in the $recipients array. {name} needs to be replaced with $vbulletin->userinfo['username'] (the username of the person who would receive the auto-reply, who is the currently logged in user sending the PM which triggers the auto-reply).

Nathan2006
06-14-2006, 11:14 PM
{to} and {from} is for the date display, if you have not entered a date, of course they will be empty ;)

I'll check the {name} thing....

Thanks Hellcat :)

Hellcat
06-16-2006, 04:11 PM
UPDATE :)

- Fixed the {name} replacement bug
- Added optional receiver of automatically forwarded PM (the original PM sent can be forwarded to a third person)

bada_bing
06-16-2006, 04:44 PM
HOw do you upgrade? Do you just re-import the plugin ?

Hellcat
06-16-2006, 05:08 PM
Yep.
Just reimport with "allow overwrite".

bada_bing
06-16-2006, 05:39 PM
Remove everything from the excluded groups setting in the AdminCP and try again.
There's a bug with that I still need to fix.

Report if it's showing up then, if not wee look for other causes :)
Does the new version now work with 3.5.3 since there was a bug with the prior version

bada_bing
06-16-2006, 05:47 PM
If I dont have anything in the ecxluded then the option shows in the user options but if you put an exclude group id then thats when the option no longer shows

Hellcat
06-16-2006, 07:29 PM
What bug was/is there with 3.5.3?

//

I'll re-write the excluding thing, any missbehaviours with it should be gone then....

bada_bing
06-16-2006, 10:24 PM
What bug was/is there with 3.5.3?

//

I'll re-write the excluding thing, any missbehaviours with it should be gone then....
Cool any idea when? I will keep this hack installed for a few if your going to fix the 3.5.3 issues?

klaush
06-17-2006, 03:49 AM
UPDATE :)

- Fixed the {name} replacement bug
- Added optional receiver of automatically forwarded PM (the original PM sent can be forwarded to a third person)

Yipi!:-) Thanks and works!

bada_bing
06-17-2006, 07:16 PM
Cool any idea when? I will keep this hack installed for a few if your going to fix the 3.5.3 issues?
Any fix to this?

vau7
06-19-2006, 03:32 AM
I have an Idea, and i would be so glad if i had this feature that i'd pay for that:

It would be great if the Auto-Pm only will be send if an, in options, predefined PM-Title is given.
e.G.: I set up in the options the Title "Please gimme", the Auto-Pm only will be send if an PM arrives with that title.

Would it be possible?

bada_bing
06-19-2006, 12:04 PM
Any updates from the author of this hack?

vau7
06-20-2006, 04:17 AM
Or another Idea: If you had an Option where just the first PM you get, will be answered by the PM-Reply-Machine. That would be very usefell and make much sense.

Nathan2006
06-20-2006, 04:22 AM
Or another Idea: If you had an Option where just the first PM you get, will be answered by the PM-Reply-Machine. That would be very usefell and make much sense.

Me too :) I know when I send one of my mods a pm and we are sending them back and too and it drives me mad lol

bada_bing
06-20-2006, 11:45 AM
Hellcat .

Are you going to step in and start helping out here with this hack?

serhat_kk
06-22-2006, 10:18 PM
Good work. Thanks.

bada_bing
06-23-2006, 01:53 AM
Any fix to this?
Any fix to this? I have unistalled this hack from one of my sites already since it does not work with 3.5.3 untill the author can fix it

Hellcat
06-24-2006, 11:07 AM
I read a lot about 3.5.3 issues, but no details.
What exact issues are there with 3.5.3 that are not present on the others? :confused:


I have an Idea, and i would be so glad if i had this feature that i'd pay for that:

It would be great if the Auto-Pm only will be send if an, in options, predefined PM-Title is given.
e.G.: I set up in the options the Title "Please gimme", the Auto-Pm only will be send if an PM arrives with that title.

Would it be possible?
Sounds like a nice addition.
* Hellcat puts on ToDo


Any updates from the author of this hack?
Yes ;)


Or another Idea: If you had an Option where just the first PM you get, will be answered by the PM-Reply-Machine. That would be very usefell and make much sense.
You mean like a sort of "auto deactivate" after the first auto-replied PM?

vau7
06-24-2006, 03:15 PM
You mean like a sort of "auto deactivate" after the first auto-replied PM?

Sure, i dont make a sense that the PM is everytime resend to a user who has already got it.

noj75
06-24-2006, 04:02 PM
Thanks very much for this.

Clicked install.

Hellcat
06-26-2006, 01:45 AM
Sure, i dont make a sense that the PM is everytime resend to a user who has already got it.
Ah, you're talking about something on a "per user" level?
Hmm.... that would need quite some db overhead....

If you have an eMail autoresponder, you also get the reply everytime you send something there.
Once the other(s) know you're not there, they should know it doesn't make sense to send more PMs for a while ;)

Well, I'll think about this, if and how it can be done without too much overhead....

bada_bing
06-28-2006, 03:22 AM
I read a lot about 3.5.3 issues, but no details.
What exact issues are there with 3.5.3 that are not present on the others? :confused:



Sounds like a nice addition.
* bada_bing puts on ToDo



Yes ;)



You mean like a sort of "auto deactivate" after the first auto-replied PM?
Hellcat,

Would love if you can fix the issue with 3.5.3 . Basically if I add any groups to exclude this hack in admincp then the back options in usercp no longer exists but if I allow all usergroups to use this hack then the options for this hack will show up in usercp.

Can you please fix this???

Hellcat
06-28-2006, 04:36 AM
Hellcat,

Would love if you can fix the issue with 3.5.3 . Basically if I add any groups to exclude this hack in admincp then the back options in usercp no longer exists but if I allow all usergroups to use this hack then the options for this hack will show up in usercp.

Can you please fix this???
I've rewritten the code for checking the usergroups.
Try the new version if it's working now.

Also doublecheck that the template edit has been made and there's no typo.

bada_bing
06-28-2006, 01:28 PM
I've rewritten the code for checking the usergroups.
Try the new version if it's working now.

Also doublecheck that the template edit has been made and there's no typo.
Hellcat,

I installed the latest version and it works..Thank You Thank You...

Chris Blount
06-29-2006, 06:20 PM
Nice hack! Thanks so much and great work!

freedom2support
07-11-2006, 08:14 PM
UPDATE :)

- Fixed the {name} replacement bug
- Added optional receiver of automatically forwarded PM (the original PM sent can be forwarded to a third person)
Thanks for fixing that bug

** Installs on live site ** :D

user02934123123
07-17-2006, 10:09 AM
Dear all,

Notification that there is a serious bug when using this hack on 3.6 (as of release candidate 1), not in its performance in its own right, but in the form of a fatal error it causes in other parts of vB when installed and enabled.

Namely, having PM AutoReply 1.25 installed on vB 3.6 rc 1 causes a serious error in the user self-registration process. Read fuller details in vB 3.6 bug report 498 (http://www.vbulletin.com/forum/bugs36.php?do=view&bugid=498) (it's not actually a vB bug, but I reported it there before we were able to determine it was being caused by this plugin).

Read that bug report for the full details. In short, having this hack installed causes the verification process for registrations to result in a 'fatal error' when a new user follows the registration link in their verification e-mail. The hack also causes the problem of new registration welcome PMs (a new feature in 3.6) not appearing in unread/total PM counts (as per bug 497 (http://www.vbulletin.com/forum/bugs36.php?do=view&bugid=497)).

The long and short of this is that PM AutoReply really should be entirely uninstalled on vB 3.6, or at the very least fully disabled in AdminCP > Plugins & Products > Manage Products, as it causes these rather serious registration errors that system moderators / admins are likely not to see first-hand (unless you routinely register for test accounts on your own system, to see how things are working).

NB: This has been an excellent hack on vB 3.5.x -- one of those I have enjoyed most and found most useful. I'm hopeful its author will release a vB 3.6 native version soon so we can get back to using it!

mrmike
07-21-2006, 04:01 PM
Great mod! Thanx.. Clicking install :cool:

workplaybiz
07-21-2006, 11:19 PM
Is there any way you can adapt this to send an auto-responder sequence via e-mail? I really need to send a series of follow ups to users who opt-in to recieve them when they register for my site. How would I update the admin cp so that I can send an e-mail every day or every week for a set number of weeks and then just send them messages as neccassary?

Thanks,
John

Eq4bits
08-03-2006, 09:28 PM
Will this be ported to work with vB 3.6?

aos101
08-25-2006, 09:09 PM
Found a bug with this plugin with the PM autoforward. If the autoreply is not enabled, but a user for messages to be automatically forwarded to is set, then PMs received are still forwarded to the other user (is this meant to happen?) and because of the way it is coded, the forwarded PM doesn't have a "fromusername" or "fromuserid" set and so the forwarded PM appears to have been sent by no one. I think this can be fixed by only forwarding the message if the message is having an auto reply sent.

Handbag
09-22-2006, 12:30 PM
Hi there,

I've followed the instructions as specified, for 3.5.4, and everything shows up as it should both in the user options page and the backend.

However nothing seems to happen when a user sets a away PM. When you save the options page, and then go back ot it the on box for auto reply is ticked off, and the away message isn't there anymore. it also doesn;t seem to be sending an away PM either. Any idea why this might be happening?

Ramsesx
12-16-2006, 10:17 AM
Sad it doesn't work for 3.64, is hellcat still alive?

mostof
01-20-2007, 06:39 PM
Sad it doesn't work for 3.64, is hellcat still alive?

Good question...

FreshFroot
04-25-2007, 11:37 PM
looks like I have to take off another hack I liked.... :(

Ghettellectual
07-28-2007, 02:42 AM
Siggggggggghhhhhhhhhhhhhhhhhhhhhhh...

This mod saved me so many headaches and now I'm upgrading to 3.6.8. BLAH.

Hornstar
08-06-2007, 03:25 AM
So Glad I found this! this will be perfect while i'm gone for a month

chatzworld
08-06-2007, 10:44 AM
yeh very handy mod and works fine on 3.6.8 not had any probs at all

thetootall
08-11-2007, 02:19 AM
We are running 3.6.0 and when we installed this tonight, the Edit Options link goes to a blank page. Any clue on how to fix this? My mods are desperate for this feature!!

Jeordie015
08-22-2007, 03:32 AM
I think I've run into a problem with how this hack deals with usergroups since you can only specify which groups to disallow access to it.

In my case, I only want admins, mods, and the advanced member levels to have access to this. If someone is in the advanced usergroup, then their primary usergroup is the basic Registered Users group, and then the advanced usergroup is set as an additional usergroup.

So how would I be able to get the users in the advanced usergroup to have access to this while keeping regular members out with my current setup?

Ramsesx
10-06-2007, 02:49 PM
yeh very handy mod and works fine on 3.6.8 not had any probs at all
If you're wondering why you get a lower registration rate, try to register yourself and look what's happening if you place the registration link.
Fatal error: Call to a member function on a non-object in /home/chatsuk/public_html/includes/class_dm_user.php(2490) : eval()'d code on line 9

carphead
11-02-2007, 10:00 AM
I've tried to get this to work on a 3.6.8 install. I've reverted the modifyoptions template. Put the edit in to the template at the correct line and nothing appears in the options part.

Any suggestions? There are no excluded groups.

Spinball
01-01-2008, 07:54 PM
Getting an error with 3.6.8 and PHP 5 when trying to send a PM:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /private.php(1167) : eval()'d code on line 46

Fatal error:
Please complete both the subject and message fields.
Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 765

Code Monkey
04-23-2008, 10:37 PM
Getting an error with 3.6.8 and PHP 5 when trying to send a PM:


That went away for me when I went into the plugin code and switched all instances of mysql_fetch_array() with the proper $vbulletin->db->fetch_array() function.

frosch68
05-04-2008, 08:00 AM
That went away for me when I went into the plugin code and switched all instances of mysql_fetch_array() with the proper $vbulletin->db->fetch_array() function.

this changing has no effect for me in vB 3.6.10 and php 5 ... any other ideas ?

LoRdGd
05-19-2008, 04:01 PM
Hello!
Super MOD!

But, can anybody make a ACP integration for this?

Spinball
06-14-2008, 08:45 PM
This works with 3.7.1 pl1

smooth-c
07-01-2008, 09:48 PM
Works fine with 3.7.1 Here aswell except I get the error line above the redirection page saying;

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/private.php(1222) : eval()'d code on line 46

Any way of fixing this?

Greg

ZexTasy
07-09-2008, 06:38 AM
@smooth-c

To fix the errormessage, apply the following changes to the product xml file:

In the product xml-file find:

$repm->pre_save();
$re_errors = array_merge($re_errors, $repm->errors);

Write this between those two lines:

$re_errors = array();

So that it becomes:

$repm->pre_save();
$re_errors = array();
$re_errors = array_merge($re_errors, $repm->errors);

In the product xml-file find:

$repm->pre_save();
$fw_errors = array_merge($fw_errors, $repm->errors);

Write this between those two lines:

$fw_errors = array();

So that it becomes:

$repm->pre_save();
$fw_errors = array();
$fw_errors = array_merge($fw_errors, $repm->errors);


After that just import the product again with overwrite.

Alternatively you could also edit the plugin directly in the plugin-manager, edit the plugin Send the Auto-Reply with hook location private_insertpm_complete and do the changes mentioned above directly in there, but personally I like to have a correct xml plugin file available to import again if necessary! ;)

Good luck!

- ZexTasy

Konstantinos
07-14-2008, 12:42 PM
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3743 in 3.6.10 in editoptions page

MerchantMilan
11-11-2008, 02:00 PM
Post.


Thank you so much! This mod works perfectly in 3.7.3 with your changes.

MikesSite
03-11-2009, 01:56 AM
@smooth-c

To fix the errormessage, apply the following changes to the product xml file:

In the product xml-file find:

$repm->pre_save();
$re_errors = array_merge($re_errors, $repm->errors);

Write this between those two lines:

$re_errors = array();

So that it becomes:

$repm->pre_save();
$re_errors = array();
$re_errors = array_merge($re_errors, $repm->errors);

In the product xml-file find:

$repm->pre_save();
$fw_errors = array_merge($fw_errors, $repm->errors);

Write this between those two lines:

$fw_errors = array();

So that it becomes:

$repm->pre_save();
$fw_errors = array();
$fw_errors = array_merge($fw_errors, $repm->errors);


After that just import the product again with overwrite.

Alternatively you could also edit the plugin directly in the plugin-manager, edit the plugin Send the Auto-Reply with hook location private_insertpm_complete and do the changes mentioned above directly in there, but personally I like to have a correct xml plugin file available to import again if necessary! ;)

Good luck!

- ZexTasy

This also works in 3.8. Thanks!

MikesSite
03-22-2009, 07:57 PM
I was wondering if there's a way to add $pmautoreply_option onto a custom page I have built to avoid adding to modifyoptions. I would like to create a page with just this on there.

http://img149.imageshack.us/img149/5122/textareatoowide7ry.png

Thanks.

MikesSite
09-14-2009, 09:49 PM
Forced to uninstall. THIS WILL MESS UP YOUR 3.8 FORUM!!!

pigsy
10-13-2009, 06:45 PM
can anyone else confirm/deny how this works on 3.8? Is there an alternative?

MikesSite
10-13-2009, 06:51 PM
This does not work on 3.8

BigBass
11-05-2009, 10:02 AM
anybody know if this will work with vb 3.8

rfsforums
08-21-2010, 12:41 AM
any plans to port this to 4.x ? I really would like to have this.
Thanks!