The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Automatically Start a Welcome Thread in the Forum of Your Choice Details »» | |||||||||||||||||||||||||||
Automatically Start a Welcome Thread in the Forum of Your Choice
Developer Last Online: Nov 2013
This little mod will start a new thread in the forum of your choice when somebody registers.
The thread message is contained in a template, and easily customizeable on your part. This version posts the thread when the user registers - but before he activates his email address. Thanks to flypaper for providing a bugfix. Installation Instructions: Import the product. Change the welcome_thread template to suit your needs. Change the setup variables in the welcome thread plugin to suit your needs. Amy Show Your Support
|
Comments |
#422
|
|||
|
|||
I'm trying to figure out which template or PHP page performs the query for "recent threads" and "new threads since your last visit". I would like to limit the query so it doesn't include posts from this particular forum in both of those areas.
I figured I would add something to the query like this so that the query doesn't look for new threads in the forum with an ID of 100: Code:
and !forum_id='100' Thanks! |
#423
|
|||
|
|||
Anybody have an idea to my last reply?
Thanks! |
#424
|
|||
|
|||
Thanks amy! this works great and was just what I was looking for. My board is ver 3.8.0
|
#425
|
|||
|
|||
I tried this and get this
This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file. Im using 3.8.1 anyone help me out? |
#426
|
|||
|
|||
NEVERMIND!! I figured it out
|
#427
|
|||
|
|||
Where and how do I make a template called welcome_thread ??
|
#428
|
|||
|
|||
Flawless install on a 3.8.1 board.
|
#429
|
|||
|
|||
Does anyone know if this mod will work on 3.8.2 ??
|
#430
|
||||
|
||||
Quote:
Edited: Scratch that, found the option under "General Settings" listed under "Add Template Name in HTML Comments". |
#431
|
||||
|
||||
Hmm....had worked with a testuser that I added through normal registration and worked. But, since then I've had a few new members and it hasn't worked. Strange.
Anyone have any tips to make sure that this works? |
#432
|
||||
|
||||
Okay, it's officially not working for some reason.
Are there any other options to having a thread start automatically upon a new member's registration or activation? |
#433
|
||||
|
||||
Am I doing something wrong here? I really want this to work for my forum and it isn't right now.
Code:
// Backend Files require_once('./global.php'); require_once('./includes/class_dm.php'); require_once('./includes/class_dm_threadpost.php'); // Setup Variables change to match your forum $forumid = 2; // The forum id that you want the thread posted in $postuserid = 1; // The Userid of the poster $postusername = "WDBArnyVee"; // Enter the username of the poster $title = "Give A Warm TheWDB.com Welcome To $userinfo[username] "; // The thread title // Don't change below this line // Start thread create $threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD); $username = htmlspecialchars_uni($username); $allowsmilie = '1'; $visible = '1'; $sig = '1'; //show signature 1/on 0/off eval('$pagetext .= "' . fetch_template('welcome_thread') . '";'); // Insert thread $threaddm->do_set('forumid', $forumid); $threaddm->do_set('postuserid', $postuserid); $threaddm->do_set('userid', $postuserid); $threaddm->do_set('username', $postusername); $threaddm->do_set('pagetext', $pagetext); $threaddm->do_set('title', $title); $threaddm->do_set('allowsmilie', $allowsmilie); $threaddm->do_set('visible', $visible); $threaddm->do_set('showsignature', 1); $tid = $threaddm->save(); // Update last post stuff on forumdisplay require_once('./includes/functions_databuild.php'); build_forum_counters($forumid); |
#434
|
||||
|
||||
Okay, I removed the "sig" lines which originally were there to automatically have the signature showing. Now, it worked!
|
#435
|
||||
|
||||
Uninstalled and upgraded to the 3.8.x version with more features:
https://vborg.vbsupport.ru/showthrea...95#post1826395 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|