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 |
#257
|
||||
|
||||
Thank you amykhar.
|
#258
|
|||
|
|||
Has anyone managed to get this to work on approval of the account rather than email verification? Flypaper's edit doesn't work, I've tried troubleshooting this but it's beyond me.
It seems to be something to do with the different hook location not working with a particular function, that's about the best I can come up with. I can't fix it. |
#259
|
|||
|
|||
UPDATE: I can make it work by manually adding the code to admincp/user.php. I was rather hoping to do it with a plugin, but it seems not.
|
#260
|
||||
|
||||
Quote:
Would you be able to share the code additions? I'd appreciate it. |
#261
|
|||
|
|||
Well I did this.
In admincp/user.php find: Code:
} else if ($status == -1) Code:
// Backend Files require_once('./global.php'); require_once('./includes/class_dm.php'); require_once('./includes/class_dm_threadpost.php'); // Setup Variables $forumid = 174; // The forum id that you want the thread posted in $postuserid = 101; // The Userid of the poster $postusername = "Mark.B"; // The username of the poster $title = "Welcome, " . $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'; 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); $tid = $threaddm->save(); // Update last post stuff on forumdisplay require_once('./includes/functions_databuild.php'); build_forum_counters($forumid); require_once('./global.php'); then the header bar reappears, but then the post that is created is blank, it does not contain any text. I am guessing that using global.php twice is causing the header bar to vanish. This itself is not a problem, however I worry about what other side effects this is having. Perhaps an expert coder could point us in the right direction as we are NEARLY there! |
#262
|
||||
|
||||
Miss Amy, this is gonna be great for my growing forum! I have installed this, however before I activate it on my site I need to know one thing:
I understand changing the forumid to the forum I want the thread started in. But what about this part? Code:
$postuserid = 1328; // The Userid of the poster $postusername = "Justin"; // The username of the poster |
#263
|
||||
|
||||
Oops. Guess I should've TESTED it first! I understand! Thanks for a great hack! ***clicks install***
:banana: |
#264
|
|||
|
|||
Quote:
Its getting late, I'll try to look at it again tomorrow in my spare time. It shouldn't be that hard to get going. Odd... |
#265
|
|||
|
|||
Quote:
It is very nearly there...I don't much care about the missing header bar in the confirm message as it's purely cosmetic, my worry is what other side effects that is having. |
#266
|
|||
|
|||
Hmmm....another problem with my method...if you approve more than one account at once the second thread contains the text for both threads, the third contains all three, etc etc.
It must be loooping wrongly but I can't seem to fix that either. |
#267
|
||||
|
||||
Mine keeps reverting back to your welcome thing even tho I changed it in the plugin
|
#268
|
|||
|
|||
It doesn't work for me on 3.6
Locked up my ACP - No error Messages - Had to disable plugins via config.php and remove it. |
#269
|
||||
|
||||
I'm still on 3.5.4
Worked fine! BUT: stopped working as soon as I changed the forum-id. Changing back: not working! uninstall / reinstall: not working! Any ideas? Andreas |
#270
|
|||
|
|||
Thank you SOOOO much for this!!! I've been killing myself trying to say hello to every new member! LOL!
|
#271
|
||||
|
||||
Quote:
Amy can we get an update for 3.6, AND somehow make this so it can create a thread unpon email verification?? This prevents trolls from creating BS accounts, and spaming our welcome forum.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|