PDA

View Full Version : Miscellaneous Hacks - VSa - Auto Reply


Valter
02-16-2010, 10:00 PM
Info:
I'm using this to automatically welcome users in my "Introductions" sub-forum. You can customize messages and use it for any other auto-replying needs. You can write several messages (separated by |) and they will be used randomly in auto-replies. This work with subjects too. There are three different Sets of subjects/messages to use in different forums. You can set product to not reply to threads started by listed members, turn on/off signatures, etc... View screenshots for details about features...

To get this working don't forget to:
-Set forum id(s) in product options
-Set poster id(s) in product options

Otherwise it will not work or you'll get error messages.

Note:
-This executes 1 simple query on forumdisplay in selected forums only.
-Same simple query is executed on getnew-search.

Installation:
-Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]

To set options:
Go to: vBulletin Options > VSa - Auto Reply

Versions:
v1.0 - Aug 25. 2007.
-Initial release
v1.1 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed
v1.2 - Apr 24. 2009.
-Latest 3.x version
v2.0 - Feb 17. 2010.
-Updated for vBulletin 4

zbosskiller
02-17-2010, 04:38 PM
First... Awesome mod. Just need Donate system now :-)

princeedward
02-17-2010, 05:12 PM
Wooooot...Second.... :p Great.....Valter...You Are Almost There....just a little step more and you had all your fantastic mod updated to vB 4.0

What's Next? Paypal Donate Mod? ;)

A Million Thanks For Your Hard Work....as always...

Marked Installed!---Nominated!---Rated Excellent!

:p:up:

Hornstar
02-17-2010, 07:05 PM
Is it possible to set a delay before it replies?

Because if it replies instantly that might look like a bot, but if it replies after 5 or 10 minutes that might look more realistic. This would be a nice feature.

Also how about having the ability to randomly choose a different replier. eg. enter in a few different user IDs and then it chooses one of those to be the post replier.

ti07shadow
02-17-2010, 07:28 PM
love your mods. installed

Valter
02-17-2010, 07:55 PM
Is it possible to set a delay before it replies?
It may be impossible to do, but product options are great place to check.

princeedward
02-18-2010, 07:01 AM
seems to be the auto replier didn't show to forumhome...but it's in there...and work...hmmm...can anyone confirm this please... ;)

Jonluci
02-20-2010, 11:47 PM
Installed this....and works great :)
thanks for this awesome mod :)

RedPoint
03-01-2010, 07:09 PM
its dont run for me vb4.0.2 PL1
...any ideea?

Terminator1138
03-01-2010, 07:49 PM
I like this idea, can more documentation be written or screenshots to show how to accomplish what you listed? ie, to edit the subject and text....

What Im hoping this will do is annouce so to speak probationary new users to certain forums...like intro

paulbhoy
03-20-2010, 06:43 PM
yea, it doesnt work for me either. Any ideas>?

bsalu
03-24-2010, 12:32 PM
it didnt work for me either on 4.0.2 pl1

badawidollah
03-25-2010, 02:00 AM
it didnt work for me in VB402 PL2

badawidollah
03-25-2010, 02:02 AM
hello valter
could you help to for last post enhancement for VB 402

Veer
04-06-2010, 10:09 PM
Total post count does not increases.

washingtonboise
05-21-2010, 08:04 AM
Valter, you're awesome. I've needed something like this for a long time. An autoreply will make my users feel that there's a little 'activity', and that feeling is very important.

In addition, new users can get critical information that can protect them when they trade stuff online. (My forums are all about trading, and too many users get scammed for doing stupid stuff like not verifying their trade partners with a phone call.) - This is going to be perfect for warnings like that.

Cedric_FP
06-03-2010, 05:34 AM
Could this auto reply be configured to only post when a user clicks a button located in a thread, and then to auto reply to that thread?

GeorgeB85
06-03-2010, 11:04 AM
A great feature I would like to see listed, is that it links the users screen name to their profile!

graham_w
06-19-2010, 12:37 PM
For the life of me I can't get this working on my upgraded forum.

I have this mod working fine on a test board running 4.0.4, but when I try to move it to a live forum running 4.0.4 it just will not work. I've tried changing the forum, the username that posts etc and still no luck.

Any suggestions on how I can try and figure out why it's not working ?

Valter
06-19-2010, 08:32 PM
Ensure that you have set userid of the poster, not username.

graham_w
06-19-2010, 08:43 PM
Ensure that you have set userid of the poster, not username.

Yep I am using the userid (even though I said username above - my mistake). I've even tried different userid's and no go.

As I said, it's working fine on a 4.0.4 test board, and just changed those settings straight over (apart from changing the userid and the forumid to the ones I want it to happen on - and i've tried different userid and different forumid also) and it doesn't work on the other.

pedroenf
06-20-2010, 02:02 AM
Yep I am using the userid (even though I said username above - my mistake). I've even tried different userid's and no go.

As I said, it's working fine on a 4.0.4 test board, and just changed those settings straight over (apart from changing the userid and the forumid to the ones I want it to happen on - and i've tried different userid and different forumid also) and it doesn't work on the other.


I've experienced the same.

vilhiem
06-21-2010, 01:52 AM
Great idea!

But I cannot get this mod to work on my vB4.03 board either.

I set the userid of the poster ... and the forum ids for the 3 messages.

I have all three messages going to the same forum id ... so not sure if that's the problem??

Also, I have "Reply to unanswered threads only" set to the default of "yes" ... so again, not sure if that's a problem too??

pedroenf
06-27-2010, 08:47 PM
No update?

Gleedo
07-15-2010, 09:53 AM
Not working on 4.04 for me either :(

Toni3055
07-26-2010, 02:48 AM
Not working for me in 4.0.5, either. Wish it would, though. Valter, your mods rock! Hope this is on the fix-it list. ;)

GeorgeB85
07-26-2010, 02:52 AM
How can this be used to welcome new users, if it only works to reply to existing threads?

decon8x
07-26-2010, 06:05 AM
Post count does not increase :(
btw: great mod :)

Bellethiel
07-30-2010, 06:09 AM
Yeah it has some problems with 4.0.5.

I'd be glad about an update as well :3

GeorgeB85
08-09-2010, 12:35 PM
How can this be used to welcome users, when it only works if a thread was created and then not replied too.?

Bankfodder
08-10-2010, 04:00 AM
Thanks for this.

Any chance that there could be an option for the reply to be sent when Nn of posts have been posted in a thread.
We have a welcome forum and we like people to introduce themselves but but then to go an post their specific queries in a relevant subforum elsewhere.
I would be useful to be able to detect when their introductory threadwas turning into a full disucssion - say at 6 pots and then be able to post an automatic message saying that you are very pleased to have XXUser on board but would they like to continue their discussion in a new thread in an appropriate forum.
It would be nice to have an option to close the thread at the same time.

Is this possible?

Ta

fevredsuk
08-10-2010, 05:09 AM
edit: nevermind, working. although took a little while longer than the 5 seconds :)

Bankfodder
08-10-2010, 05:26 AM
edit: nevermind, working. although took a little while longer than the 5 seconds :)

I received an email copy of your original post before it was edited.

It seems to me that Valter has a reputation for being very supportive of his mods.

Also, it is worth remembering that we are getting the stuff for free.

FReeSTER
09-07-2010, 02:10 AM
For some reason mine is not working. :(:o

graham_w
09-15-2010, 10:49 PM
This wasn't working for me on earlier versions of VB4, but just tried it again now with 4.0.7 and works as expected. NFI what was going on.

GeorgeB85
10-07-2010, 05:41 PM
This isnt working at all on 4.0.7 I have all the options set, but it doesn't create the thread when a new user registers.

GeorgeB85
10-11-2010, 01:00 PM
This isnt working at all on 4.0.7 I have all the options set, but it doesn't create the thread when a new user registers.

Does anyone know how to fix this?

fusionpot
10-15-2010, 05:35 PM
ok here is the thing, im using

VSa - Auto Reply
https://vborg.vbsupport.ru/showthread.php?t=236147and i have it setup to auto reply to any thread created in the
Fusion Applications->Fusion Applications OPEN

now my issue is when it does my "thread post" its waits likes it suposed to then auto replys with the message i setup. after that i notice that it will start to show that same post and reply post in a new category in my forums.

then when i go to view the 2nd "unexplained post" is not even there, but it shows its there on the home page of the forums.

i don't know if this is a vbulletin issue or if its that add on issue so im going to start here first.

picture added

alhindasi
10-17-2010, 06:09 PM
NOT WORKING ON """""vBulletin™ Version 4.0.7 """" PLEASE FIX IT

alhindasi
10-18-2010, 03:24 PM
up up up

alhindasi
10-21-2010, 08:21 PM
up up up

Valter
10-21-2010, 08:31 PM
It works in 4.0.7, and 4.0.8 now too.

Check your settings.

alhindasi
10-22-2010, 03:35 PM
It works in 4.0.7, and 4.0.8 now too.

Check your settings.


my settings ok but not working :mad: :confused: :mad:

fusionpot
10-26-2010, 09:06 PM
any news on this addon working correct or not cause i still got issues with it

luan7749
10-29-2010, 07:40 PM
Not working with 4.0.7 :(

FReeSTER
11-06-2010, 07:04 PM
It was working when first installed but for some reason I still cant get it to work. vb v.4.0.3

Any Ideas Valter?

graham_w
11-07-2010, 07:41 PM
It was working when first installed but for some reason I still cant get it to work. vb v.4.0.3

Any Ideas Valter?

I had it working on one board with 4.0.3 and not the other - both had exactly the same settings. Upgraded both to 4.0.7 and now works fine on both - perhaps upgrade your vb4 ?

NovoCiv
11-07-2010, 08:23 PM
Can I have it respond to every new post instead of every new thread?

fusionpot
11-08-2010, 03:53 PM
ive tried it on

Version 4.0.7
and
Version 4.0.8

and ive still got no luck with it posting in the correct area, as i posted a few pages back.

m3rl1nuk
11-16-2010, 08:05 PM
my settings ok but not working :mad: :confused: :mad:

confirmed working on 4.0.7 & 4.0.8.

whyiteasy
02-14-2011, 03:15 AM
does it works on 4.1.1 ?

smirkley
02-14-2011, 06:48 PM
yes confirmed 4.1.1

tidus78
02-14-2011, 06:55 PM
Cool

LoudBox
02-17-2011, 09:26 AM
Great stuff

How to exclude certain usergroups from getting an autoreply? For example: junior member would get an auto reply, but senior members not. I guess it's simply adding an exclude based on usergroups somewhere? Right now there's only an exclude based on userid which doesn't make a lot of sense to me.

So how could the code be changed to add an exclude based on group?

Thanks!

profanitytalker
03-06-2011, 11:24 PM
How did you guys get this to work? It doesn't seem to be working on any of the 4 versions.

StudentCreche
04-20-2011, 02:26 PM
Hmm, user post count does NOT go up and does not show new reply on forumhome...

downloadfound
05-04-2011, 05:14 AM
It works for me, except not as I need it to.

I'm running a custom script that creates threads as apart of the script.

I have the threadthumbails add-on and with this nifty script it creates all the thumbs that failed to when the script created threads. I wonder if someone can do something similar for this script so I can run it and auto reply to all unanswered threads?

<?php $STEP_AMOUNT = 20000; ?>

<input type="button" id="btnNext" value="Process Next Results" onClick="window.location='?start='+(<?php echo $_GET["start"]; ?>+<?php echo $STEP_AMOUNT;?>)" disabled=true><br>
The button above should enable once this batch is complete!<br>
<br>

<?php
error_reporting(E_ALL & ~E_NOTICE & ~8192);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('SKIP_SESSIONCREATE', 1);
define('NOCOOKIES', 1);
define('THIS_SCRIPT', 'xupdate');
define('CSRF_PROTECTION', true);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

if (!$_GET["start"]) { $_GET["start"] = 0; }


$threads = $db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "thread
LIMIT ".$db->escape_string($_GET["start"]).",". $db->escape_string($STEP_AMOUNT));

while ($thread = $db->fetch_array($threads)){


$posts = $db->query_read_slave("SELECT * FROM `" . TABLE_PREFIX . "post` WHERE `postid` = '".$thread["firstpostid"]."'");
$post = $db->fetch_array($posts);

preg_match('/\[img\](.*?)\[\/img\]/i',$post["pagetext"],$matches);
$query = "UPDATE `" . TABLE_PREFIX . "thread` set `thumbnailurl` = '".$db->escape_string($matches[1])."' WHERE threadid = " . $thread["threadid"];

$db->query_write($query);

}
?>

<script> document.getElementById("btnNext").disabled = false;

</script>

Dozer826
05-06-2011, 08:51 PM
Not working for me on 4.1.2. All the setting are correct but no reply comes. I've tested it with different time lengths and still nothing.

Anyone have this prob on 4.1.2 and find a fix?

profanitytalker
06-14-2011, 05:53 AM
Yes please someone fix this. :(

graham_w
06-14-2011, 07:10 AM
This mod is working fine for me on 4.1.4

Luca_ITA
08-06-2011, 02:04 PM
On my forum mod works good. I'm using v4.1.5pl1.

starman?
08-08-2011, 02:58 PM
yes - v4.1.5 no problems. Thanks Valter.

Trip3151
09-26-2011, 08:11 AM
any one got this mod to work with Easy Forms mod https://vborg.vbsupport.ru/showthread.php?t=234385 it dosn't work when some one uses the application!

ngocol
09-30-2011, 04:20 AM
instaled work fine on 4.1.4 thanks

Luca_ITA
12-23-2011, 10:18 PM
Working perfectly on 4.1.9
Thank you for this mod!!

Nirjonadda
03-06-2012, 07:51 PM
Installed...Working perfectly on 4.1.10

unit12stealth
03-30-2012, 01:04 PM
Question, why does it reply on some threads, and then on other threads it doesnt? For the same forum section. I have it set to reply on new threads in my "Applications" forum. And it replies on some, and not on others.

Also, why is the time replied different on each thread? Like, on some threads, it replies within 5 min. On others, it replies 15 minutes after. Same forum section.

So far, those are the only concerns that I experience.

(running on vB 4.0.4)

Valter
03-30-2012, 08:38 PM
Script is triggered by any of the following actions:

- Applications forum is opened by some of your members
- someone searched forums for New Posts

That's why the time replied is different on each thread.

unit12stealth
03-31-2012, 09:15 PM
What about it not posting on certain threads, in the same section? Does it glitch? Or just 'skip' threads by accident?

Valter
04-01-2012, 09:49 AM
I'm not sure why they are skipped... it should reply to all threads.

CouponWCents
07-17-2012, 12:32 AM
How do you get it to reply to a certain forum? I can't find the forum options

mat8861
10-24-2012, 10:01 AM
Working fine on VB 4.2PL2 although all need to be set, here is mine:

https://vborg.vbsupport.ru/external/2012/10/10.jpg

mat8861
10-27-2012, 07:16 AM
Is it possible to have who post replies be shown in "who has read this thread" ?

Milobil
11-16-2012, 06:23 PM
It's possible to put html text in message such an image or script ?

richardevans123
01-03-2013, 02:27 PM
How can we get this mod to work with the Easy Forms mod? I've got an application form, and I want a reply from us for new applications. It doesn't work.

Here is the link to mod: https://vborg.vbsupport.ru/showthread.php?t=234385

Any ideas people?

avitor
03-15-2013, 10:47 AM
not works for me on vb 420 pl2

AK47-
05-14-2013, 02:46 PM
Can you update this to function with vbulletin 4.2.x

AK47-
05-14-2013, 03:01 PM
Works with vbulletin 4.2.0.

se7o
08-20-2013, 04:33 PM
can it reply on the old topics?

se7o
08-20-2013, 10:44 PM
also i need to make more than user answer the same topic

Skyrider
03-24-2014, 10:34 AM
Is there any reason why the auto-reply uses the IP of the poster? I set my own UserID to reply, and my IP seems to be used by the thread maker.

Budget101
06-20-2014, 10:04 AM
This "Randomly" works on 4.x.x - meaning only about 1 out of every 10 posts actually gets a response.

I've tested this exclusively and discovered the following:

This apparent randomness is due to the fact that all our new members are moderated & it sometimes takes mods up to an hour to approve messages.

The messages that DID 'autoreply' were on the posts that were approved almost the second the new member posted. But if the post sits in moderation for any length of time, the "autoreply" will not ever occur.

Is there any way to get it to work in conjunction with the moderation??

Zoul
07-13-2014, 05:46 PM
Hello there

Is to Hack works on Vb 4.2.1?

iraqiboy90
09-18-2014, 12:53 AM
I like the idea of this mod, but there is some problems;

1. Once manually submitting the thread, you will be redirected inside of the thread. The autoreply will not reply unless you exist the thread, and only when you visit forumdisplay. Why designed like this?

2. This does not at all work with "Easy Forms". https://vborg.vbsupport.ru/showthread.php?t=234385
When the Form submits, I have told it to redirect to the forum section (forumdisplay), but it doesn't seem to help, even with refreshing there.

3. This is a question; Will this reply to every single post on each thread on the selected forum? or will it only reply to the first post on each thread?

4. Another question; "Reply to unanswered threads only", what does this do exactly?

msau
04-15-2015, 07:24 PM
This is great, installed and working on 4.2.

Quick question, would it be possible for this to work not just with replies to new threads but to post randomly in active threads?

Mark.uG
07-02-2015, 01:53 AM
Is there a way to add more then 3 auto reply'S?

friendlymela
10-06-2015, 08:19 AM
I need Auto reply for chatbox

T.P.
01-29-2016, 07:14 PM
it works not on 4.2.0 pl4 ??? I see no response answere in testboard o0