Reading through this thread, there seems to be a ton of confusion over whether or not this mod works, and how to set it up. I installed this Mod and everything about it works perfectly in vBulletin version 3.6.8 Patch Level 2. Thanks to Amy for writing it, and those who helped get it fully debugged.
Here is what my Plugin PHP code currently looks like:
PHP Code:
// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
// Setup Variables
$forumid = 3; // The forum id that you want the thread posted in
$postuserid = 62; // The Userid of the poster
$postusername = SNutizzle; // The username of the poster
$title = "BadBeatsPoker.net welcomes $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);
Here is what my welcome_thread template currently looks like:
HTML Code:
Welcome to [url]www.BadBeatsPoker.net[/url], a new and fast growing online poker community. We proudly welcome anyone and everyone who wants to improve his or her game, loves poker talk and/or is willing to positively contribute to our discussions.
We?re still pretty small, but our community is growing rapidly. I?m sure you?ve already noticed that the forum is first class, so I?d like to take a minute and point out a few of our features that you may not yet be aware of?
We?re hosting weekly private online tournaments, and we?d love to have you join us. It won?t take long to see that we?re a very fun group:
[url]http://www.badbeatspoker.net/forum/online-tournaments/1134-wednesday-evening-private-online-tournaments.html[/url]
We have our own Chat Room, which is very active in the evenings:
[url=http://www.badbeatspoker.net/forum/chat/flashchat.php]FlashChat v4.8.3[/url]
We have our own area for personal/poker blogging:
[url=http://www.badbeatspoker.net/forum/blog.php]Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy - Blogs[/url]
We hold some very good hand play discussions:
[url=http://www.badbeatspoker.net/forum/hand-plays]Hand Plays - Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy[/url]
We?ve compiled lists of our members? biggest tournaments scores in the Bad Beats Live Hall of Fame:
[url]http://www.badbeatspoker.net/forum/brick-mortar-tournaments/917-badbeatspoker-live-tournament-hall-fame.html[/url]
And our Bad Beats Online Hall of Fame:
[url]http://www.badbeatspoker.net/forum/online-tournaments/983-badbeatspoker-online-tournament-hall-fame.html[/url]
Please be sure to tell all your poker friends about the website, and have them join if they're interested.
See you at the tables!
And here's what the automatically generated welcome thread looks like:
http://www.badbeatspoker.net/forum/n...-new-post.html
Of course it wouldn't be right to post in this thread without asking for some help, so here goes.
I'd like to tweak this just a little bit to do two additional things:
First, I'd like to check to see if the New Member listed a referrer. And if so, I'd like the automatic welcome thread to be posted by the referrer instead of the specific moderator we have in place currently.
And second, if the New Member did not list a referrer, I'd like to have the new thread posted by a random selection within one of three user groups (Administrators, Super Moderators and Moderators).
I'm thinking both of these things can be done with a few lines of code, but I don't really know anything about coding.
Thanks again for the great Mod, and thanks in advance if anyone is able to help with the tweaks I'm looking to do.