PDA

View Full Version : Private Messages Enhancements - PM-Autoresponder


Vossi
08-04-2008, 10:00 PM
What is vBulletin PM-Autoresponder:

With this addon you can activate a so-called autoresponder for personal messages just like you know it from normal e-mail systems.

Installation:

Upload all files from /upload into your forum-root and install the product-file. Next you need to modify the usergroups, check the main section of 'private messages' for a new entry which says 'autoresponder'. In vB-settings, user: private messages, you'll find an option to inform users about receivers being offline since x days.

This addon works with TMS. For those who don't have TMS installed, they need to do the template-changes manually like this:

In template USERCP_SHELL search for:
<tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
and add the following text beneath it:
<if condition="$permissions['pmpermissions'] & $vbulletin->bf_ugp_pmpermissions['canusepmautoresponder']"><tr><td class="$navclass[pmautoresponder]" nowrap="nowrap"><a class="smallfont" href="privateautoresponder.php?$session[sessionurl]do=edit">$vbphrase[pmautoresponder_usercp]</a></td></tr></if>
Like I said before, you don't need to do any template modifications if you use TMS.

If your are using 'UserCP Navbar 1.2' in your forum, then you'll find the specific template-modifictions in the .zip-file.

Updates:
Simple overwrite the files within the 'download'-folder and import the productfile (with overwrite). That's it.

History:

1.0.0 - standard-version
1.0.1 - autoresponder can get time-defined by user, signature can optionally be shown in autoresponder, known bugs got fixed.
1.0.2 - fixed some small bugs, cc private messages if wanted to another user while autoresponder is active, send information to users who send messages to other users who havent been online since x days.
1.0.3 - fixed two small bugs and added a more comfortable for chosing datelines in user-settings.

More:

After this addon has been installed and the usergroups are set correctly, you'll find a new link in the personal message-section when being in usercp. Just have a look at the attached images and you'll see how it looks like.

Robert and I don't even know if this addon is needed or if there is another addon with the same function, but we didn't find any decent ones so we made one by our own.

We would like to thank captainslater for his help (translation, phrases, tests, etc.) during the (very short) time of coding this addon.

Vossi
08-05-2008, 08:38 PM
- reserved -

yahoooh
08-05-2008, 10:26 PM
what about membermap when it will be released here?

helpmehost
08-05-2008, 11:47 PM
Can any body tell me what TMS is and how can I have it

Thanks

Breathex
08-06-2008, 02:40 AM
Didn't understand anything from the screenshots, because they are not English.

captainslater
08-06-2008, 04:30 AM
Can any body tell me what TMS is and how can I have it

Thanks

TMS is the Template Modification System, which was coded by Andreas and could be found here.

Didn't understand anything from the screenshots, because they are not English.
I'll upload them for you in a few minutes.

Vossi
08-06-2008, 06:02 AM
what about membermap when it will be released here?
As soon as someone does the translation...

captainslater
08-06-2008, 06:07 AM
As soon as someone does the translation...
Hm, let me guess who this will be :p :D

captainslater
08-06-2008, 06:26 AM
Took a while, but here are the english screenshots.

Rober
08-06-2008, 06:26 AM
Hm, let me guess who this will be :p :D

If we trei to maeke the tranzlesion id wil loogs leik this. :-)

Mecho
08-06-2008, 08:54 AM
Nice one ....

i will install it for sure soon . Thank you.

M-Tuning
08-06-2008, 09:51 AM
Nice, will install :P

htscpl
08-06-2008, 10:22 AM
*** INSTALLS ***

Cool ! Had a previous one from a long time ago that never worked right so removed it. This one seems to work great! Thanks for your work on this! :D

M-Tuning
08-06-2008, 10:37 AM
I got this error when I want to preview the message:


Warning: require_once([path]/includes/class_bbcode_vbglossar.php) [function.require-once]: failed to open stream: No such file or directory in [path]/privateautoresponder.php on line 146

Fatal error: require_once() [function.require]: Failed opening required '/*/public_html/includes/class_bbcode_vbglossar.php' (include_path='.:/usr/local/lib/php') in /*/public_html/privateautoresponder.php on line 146
The editor is also too wide, it's wider than the standard PM editor and stretches my layout.

M-Tuning
08-06-2008, 10:49 AM
I fixed the first error:

Find in privateautoresponder.php (do this twice):

=& new vB_BbCodeParser_vBGlossar($vbulletin, fetch_tag_list());And replace with:
=& new vB_BbCodeParser($vbulletin, fetch_tag_list());Find in privateautoresponder.php (do this twice too):

'/includes/class_bbcode_vbglossar.php');And replace with:
'/includes/class_bbcode.php');

Vossi
08-06-2008, 10:59 AM
@M-Tuning:
Thanks for this, the fragment you found is part from my glossary-addon I'm actually coding on (might be finished within the next 14 days if time goes good for me) and it tries to work with my own bbcode-class I coded for the glossary. :o

M-Tuning
08-06-2008, 11:02 AM
Ok, cool.

Any ideas why the editor is wider than normal?

It looks ugly with my skin.

Vossi
08-06-2008, 11:31 AM
Ok, cool.

Any ideas why the editor is wider than normal?

It looks ugly with my skin.
Hm, maybe you can fix this by having a look at privateautoresponder.php. Please search for
$textareacols = fetch_textarea_width();
and replace it with
$stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
Afterwards check if the width fits again.

M-Tuning
08-06-2008, 11:40 AM
Thank you, it works!

Vossi
08-06-2008, 11:53 AM
You're welcome.

If there's some time left today, I might upload Version 1.0.1 including bugfixes and some more options.

hobbybox
08-06-2008, 02:25 PM
Great mod - works great.

Vossi
08-07-2008, 11:42 AM
I just uploaded version 1.0.1

Now the autoresponder-function can be time-defined by the users and the signature can be shown in the responder if wanted. Also the known bugs got fixed. People using 'UserCP Navbar 1.2' in their forum will find the specific template-modifications in the .zip-file.

M-Tuning
08-07-2008, 11:49 AM
Thanks for the update!

mvigod
08-07-2008, 02:24 PM
Thanks for the Mod.

If anyone is using "GTUserCP - Enhanced USERCP Interface + USERCP Menu"

You must edit the GTPM_USERCP_SHELL instead of the USERCP_SHELL. The GTPM USERCP_SHELL over writes the defaul USERCP_SHELL.

Search Templates for GTPM USERCP_SHELL

Find:
<tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><img src="$stylevar[imgdir_misc]/folder_new.gif" alt="" border="0" class="inlineimg" width="16" height="16" /> <a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>Below add:
<if condition="$permissions['pmpermissions'] & $vbulletin->bf_ugp_pmpermissions['canusepmautoresponder']"><tr><td class="$navclass[pmautoresponder]" nowrap="nowrap"><a class="smallfont" href="privateautoresponder.php?$session[sessionurl]do=edit">$vbphrase[pmautoresponder_usercp]</a></td></tr></if>If you want an icon beside the link replace with this instead:
<if condition="$permissions['pmpermissions'] & $vbulletin->bf_ugp_pmpermissions['canusepmautoresponder']"><tr><td class="$navclass[pmautoresponder]" nowrap="nowrap"><img src="$stylevar[imgdir_misc]/autoresponder.gif" alt="" border="0" class="inlineimg" width="16" height="16" /><a class="smallfont" href="privateautoresponder.php?$session[sessionurl]do=edit">$vbphrase[pmautoresponder_usercp]</a></td></tr></if>Icon used below.

85133

Vossi
08-07-2008, 02:45 PM
The TMS-File for that AddOn (UserCP Navbar 1.x) which has been released by Indy on vbulletin-germany.org can be found here:

princeedward
08-08-2008, 01:01 PM
thanks it work great to my vb 3.6.8 PL2 after a little bit edit: by opening
product-pmautoresponder
and change of ( minversion="3.7.x" to minversion="3.6.x" )

<dependency dependencytype="vbulletin" minversion="3.6.x" maxversion="" />

thanks bro....

;)

Breathex
08-09-2008, 09:19 PM
Took a while, but here are the english screenshots.
Thanks for the English screenshots. Great work.

stwilson
08-09-2008, 11:06 PM
Thanks for the MOD. It works great. One suggestion, can you add something that limits the number of times the autoresponse is sent to the same user within a certain period of time? For example, what if a member sends multiple messages to someone who has an autoresponder on? Every PM sent will get the autoresponse. Could you place/check for a cookie or something to limit repeat autoresponses to the same user within a set period of time or a user session? Just a thought.

Artes_Marciales
08-10-2008, 05:26 AM
Great idea!!
**instal**

Vossi
08-12-2008, 07:23 PM
Thanks for the MOD. It works great. One suggestion, can you add something that limits the number of times the autoresponse is sent to the same user within a certain period of time? For example, what if a member sends multiple messages to someone who has an autoresponder on? Every PM sent will get the autoresponse. Could you place/check for a cookie or something to limit repeat autoresponses to the same user within a set period of time or a user session? Just a thought.
Hm, the idea ain't bad. Also we think about another option to forward PM's after some people asked for it on vBGo

Vossi
08-14-2008, 08:23 PM
Version 1.0.2 has just been uploaded, please check the description within the first post of this thread for changes.

Megatr0n
08-14-2008, 11:11 PM
So, to upgrade we simply overwrite files and reimport product file?

g0dfather1984
08-15-2008, 01:13 AM
Great feature, however, when in my UserCP, my autoresponder looks quite differently and cluttered.

How do I fix this?

Vossi
08-15-2008, 05:22 AM
So, to upgrade we simply overwrite files and reimport product file?
Yep!
Great feature, however, when in my UserCP, my autoresponder looks quite differently and cluttered.

How do I fix this?
Did you use the TMS-File or did you change the template manually? Between the icon and the text must be some blanks, simply delete those.

htscpl
08-15-2008, 09:54 AM
This mod just keeps getting better and better. Thanks for the update, great add on. :D

wrang
08-18-2008, 05:02 PM
Does this work for vBulletin 3.6.8 Patch Level 2
I will uppdate soon but will it work untill i do this

AWJunkies
08-18-2008, 06:30 PM
I have a lot of military guys that go on leave this is perfect for them to leave a message about as auto reply.

jayunsplanet
08-19-2008, 02:36 AM
Excellent idea. Works great!!! Thank you very much.

Skierpetros
08-30-2008, 05:10 AM
Problem

I installed but nothing happen i also have a problem a ] appears suddenly look in the image

Chadi
08-30-2008, 07:09 PM
I did manual template edits, file uploads and plugin upload. When I enable "yes" in usergroup permissions, it does not save at all.

DaveS
09-05-2008, 07:06 AM
Hi there appears to be a bug in this in that characters are not escaped properly, specifically the apostrophe '''.

I get the following SQL errors for people who have apostrophe's in their name.

SELECT userid, username, autoresponder, autorespondertext, autorespondertitle, autorespondersig, autorespondertotime, autoresponderccactive, autoresponderccuser, lastactivity
FROM vb_user
WHERE ((autoresponder = 1 OR autoresponder = 2) AND (username LIKE 't'onion' OR username LIKE ''));


Could this be sorted quickly as it's generating errors on my board and it's a great mod.

mvigod
09-18-2008, 05:08 PM
I have gotten the same thing and had to disable until it can be looked at.
Hi there appears to be a bug in this in that characters are not escaped properly, specifically the apostrophe '''.

I get the following SQL errors for people who have apostrophe's in their name.

SELECT userid, username, autoresponder, autorespondertext, autorespondertitle, autorespondersig, autorespondertotime, autoresponderccactive, autoresponderccuser, lastactivity
FROM vb_user
WHERE ((autoresponder = 1 OR autoresponder = 2) AND (username LIKE 't'onion' OR username LIKE ''));
Could this be sorted quickly as it's generating errors on my board and it's a great mod.

Vossi
09-19-2008, 04:16 AM
I have gotten the same thing and had to disable until it can be looked at.
I'm going to fix that this weekend, OK?

Vossi
09-29-2008, 07:41 PM
I just uploaded version 1.0.3 of the PM-Autoresponder. The bugs should be fixed (if not, then please report this here in the thread), also I added a more comfortable function to chose the datelines while being absent.

user02934123123
10-25-2008, 08:02 PM
I cannot get this mod to work. Have uploaded files and imported the product today (on 3.7.3), making the template change manually. I've changed the usergroup settings - but the link in the UserCP never appears - it's as if it does not detect the usergroup settings.

As such, the mod won't seem to work at all.

Any suggestions?

mhmd1983
01-03-2009, 12:42 PM
working like charm ^^ thanks

Megatr0n
01-03-2009, 11:45 PM
Will this be updated for 3.8 when it goes GOLD?

snoopy5
01-12-2009, 06:55 AM
vb 3.8 is already Gold now. Does it work also with 3.8?

DjiveWMD
07-11-2009, 02:18 AM
vb 3.8 is already Gold now. Does it work also with 3.8?

I tried the 3.8 and not working

Vossi
07-11-2009, 05:01 AM
vb 3.8 is already Gold now. Does it work also with 3.8?
Yes it does.

photofox
12-23-2009, 10:29 PM
Any chance this will be converted for vbulletin 4.0?

MrD
12-24-2009, 11:57 AM
Hi,
@photofox: maybe.
The Timeline is, that first the membermap than the glossary will convert.

photofox
12-24-2009, 05:43 PM
Thanks for the info MrD. The Autoresponder is an excellent mod that we make good use of. I'll keep my fingers crossed that you decide to convert it for sure. :)

photofox
02-07-2010, 05:20 AM
Any update on if this is still on the list to be converted to VB4?

vijayninel
03-05-2010, 02:39 PM
Thanks. Working great on 3.8.4

princeedward
03-13-2010, 01:09 PM
actually i have still this on vb4 and it still send auto respond to any pm without mistake and error...got also edit the USERCP SHELL for the autoresponder edit page by adding this



<li class="{vb:raw navclass.pmautoresponder}"><a href="privateautoresponder.php?{vb:raw session.sessionurl}do=edit">{vb:rawphrase pmautoresponder_usercp}</a></li>




but the problem is i cant access it...it cause page error like this...


Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumrules in [path]/includes/functions.php on line 3932

Parse error: syntax error, unexpected T_STRING in /home/epaloids/domains/epaloids.com/public_html/privateautoresponder.php(325) : eval()'d code on line 4

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3932

Parse error: syntax error, unexpected T_STRING in /home/epaloids/domains/epaloids.com/public_html/privateautoresponder.php(333) : eval()'d code on line 2

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: pmautoresponder_usercp in [path]/includes/functions.php on line 3932

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: USERCP_SHELL in [path]/includes/functions.php on line 3932

Parse error: syntax error, unexpected T_STRING in /home/epaloids/domains/epaloids.com/public_html/privateautoresponder.php(337) : eval()'d code on line 2

i guess this is not so hard to fix...

:erm:

best regards to all

:p

MrD
05-02-2011, 06:36 AM
Hi,
@Vossi: any News about a VB4 Version of this Great Addon?

home9000
10-21-2011, 09:29 AM
What about if 2 members or more have Autoresponder then one of them send PM to the another .

This will make Autoresponder run in loop and it will make the server down

Is this right ?