Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, Create Posts in vBulletin; Create Posts PHP Code: require_once( './global.php' ); require_once( './includes/class_dm.php' ); require_once( './includes/class_dm_threadpost.php' ); $postdm = new vB_DataManager_Post ( $vbulletin , ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=4987


Reply
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
22-10-2008, 02:25 AM
 
Create Posts

PHP Code:
require_once('./global.php');
require_once(
'./includes/class_dm.php');
require_once(
'./includes/class_dm_threadpost.php');

$postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);

$postthreadid = '4473';
$postusername = 'admin';
// Use $postusername if posting as a guest, use $postuserid if posting as a user
//$postuserid = '1';
$postpagetext = 'Hi mom!';

$threadinfo = fetch_threadinfo($postthreadid);
$foruminfo = fetch_foruminfo($threadinfo['forumid']);

$postdm->set_info('forum', $foruminfo);
$postdm->set_info('thread', $threadinfo);   
$postdm->set('threadid', $postthreadid);
$postdm->set('username', $postusername);
// Use $postusername if posting as a guest, use $postuserid if posting as a user
//$postdm->set('userid', $postuserid);
$postdm->set('pagetext', $postpagetext);
$postdm->set('allowsmilie', 1);
$postdm->set('visible', 1);
$postdm->set('dateline', TIMENOW);
$postdm->save();
unset(
$postdm);
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, Create Posts in vBulletin; Create Posts PHP Code: require_once( './global.php' ); require_once( './includes/class_dm.php' ); require_once( './includes/class_dm_threadpost.php' ); $postdm = new vB_DataManager_Post ( $vbulletin , ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=4987


Bookmarks

Tags
create, posts


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Create Collapsable Boxes Developer Articles 0 28-12-2008 04:22 PM
Create a Custom 404 Page Developer Articles 0 28-10-2008 04:53 PM
How to Create a Google Site Map Developer Search Engine Optimization (SEO) 0 11-09-2008 07:20 AM
Create Windows XP User Accounts Developer Classes & Source Code 0 31-08-2008 07:06 PM
Create and Share with Joomla! Developer Articles 0 21-08-2008 12:31 AM