vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - Auto Reply (https://vborg.vbsupport.ru/showthread.php?t=236147)

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 Code:

<?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


All times are GMT. The time now is 03:31 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.01366 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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