Version: 1.5, by amykhar
Developer Last Online: Nov 2013
Version: 3.5.0
Rating:
Released: 07-08-2005
Last Update: 10-16-2005
Installs: 272
Uses Plugins Template Edits
No support by the author.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..
Think you can do that???
In my version on my board, I had it hacked so that it redirected new users directly to their welcome thread after registration. But that took a file mod.
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..
Think you can do that???
This is how I did that.
PHP Code:
// Start thread create
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
// Now let's send a PM notifying the user of their thread
$userdata->save();
$fromuser = '1';
$username = unhtmlspecialchars($userinfo['username']);
$registry =& $vbulletin;
// create the DM to do error checking and insert the new PM
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
$pmdm->set('fromuserid', $fromuser['userid']);
$pmdm->set('fromusername', $fromuser['username']);
$pmdm->set_info('receipt', false);
$pmdm->set_info('savecopy', false);
$pmdm->set('title', "Important information regarding your registration!");
$pmdm->set('message', "[center][b]AUTOGENERATED PM[/b][/center] \n Pending your full approval to xxxx Forums, we have created a thread for you. The thread is located [url=http://xxxxxforums.com/showthread.php?t=" . $tid . "]here[/url]. This will be the only thread you can post in until an administrator approves your membership. If you have any questions that you'd rather not post, feel free to reply to this private message. \n \n [url]http://xxxxxxforums.com/showthread.php?t=" . $tid . "[/url] \n [b]Note: You may have to log in again when clicking on the thread link above[/b]");
$pmdm->set_recipients($userinfo['username'], $fromuser['permissions']);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();
// Fin
There is some rough code in there. If that doesn't work, I'll check back later and help ya out. Right now busy w/ work...
It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.
It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.
But if you want to link to the thread created, it needs to be in the same plugin, afaik...