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 |
#252
|
||||
|
||||
Thanks so much flypaper; I've been busy traveling and didn't get a chance to see your mod till just now. I will give it a whirl and report back ASAP.
|
#253
|
||||
|
||||
Quote:
I previously was using your edit that allowed for a new post in a preexisting thread (instead of an entirely new thread.) So I uninstalled that one first. Then I changed the forum number, userID and name variables accordingly on this one, just to test, installed it, and started the registration for a new user. When the admin finally goes to moderate in the new user, however, this error comes up: Fatal error: Call to a member function on a non-object in /home/.odell/mydir/myforumname/forums/global.php on line 22 Thanks for the effort, flypaper. I'm still very interested to see if this can be made to work. Seems like it makes a lot of sense and is a nice way to give a welcome to every new member ... so long as they are verified and moderated inside properly! (As I'm sure you know, not every board has an open-door policy, some are decidely restricted or "invite only," and the vibe is enhanced when members are greeted properly when they finally are able to login. Of course this whole mechanism falls apart if they are welcomed publicly... before they are fully validated and approved by an admin.) Thanks again for the attempt and the attention. |
#254
|
||||
|
||||
Thanks. Clicked install. Took some time from me to translate into my language ( only because I am poor at these codes ) Clicked install. Realy nice. Thanks
|
#255
|
|||
|
|||
I can't seem to find if this has been asked before. Everything works fine and the body of the message is perfect, but the title doesn't give the new user name it gives me this: "This just in: joins our Forums..." So how do I get the title to reflect the new user name?
Thanks for the hack I really like it. Edit: Got it fixed had to change title to :$userinfo[username] |
#256
|
|||
|
|||
can someone confirm this hack is right to install.
cheers:banana: |
#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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|