
01-30-2007, 07:06 PM
|
|
|
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Flypaper,
I'm having a hard time getting the location to work. Where all do I put the location tag? Here is what I am running now, without anything added for the "location". Any help would be appreciated. Sorry...I am NOT a coder.
Quote:
// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
// Setup Variables
$forumid = 89; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Freebird"; // The username of the poster
$title = "Welcome: " . $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';
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);
|
|