Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-06-2008, 10:37 AM
FBChris FBChris is offline
 
Join Date: Jan 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ImpEx: Write custom script for homebrew forum

I just purchased vBulletin and am looking at the ImpEx system.

I did have my homemade message board and want to import it. I did take a look at the pre-made ImpEx systems scripts.

Is there a developer manual available?

What about my forum structure, it is pretty straight forward. Is there any of the systems which has a similar structure? This can be a good starting point for creating my own import scripts.

Code:
#
# Table structure for table `category`
#

CREATE TABLE `category` (
  `category` tinyint(2) NOT NULL auto_increment,
  `name` varchar(50) default NULL,
  PRIMARY KEY  (`category`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

# --------------------------------------------------------

#
# Table structure for table `forum`
#

CREATE TABLE `forum` (
  `forum` tinyint(3) NOT NULL auto_increment,
  `name` varchar(50) default NULL,
  `description` tinytext,
  `note` tinytext NOT NULL,
  `moderators` varchar(50) NOT NULL default '',
  `category` tinyint(3) default NULL,
  `ordering` tinyint(3) default NULL,
  `code` set('html','forumcode','imgcode') NOT NULL default 'forumcode,imgcode',
  `hide` enum('Y','N') default 'N',
  `lastpost` int(10) default NULL,
  `topic` int(7) NOT NULL default '0',
  `reply` int(7) NOT NULL default '0',
  `showdays` int(2) NOT NULL default '0',
  `read_access` varchar(40) NOT NULL default '',
  `post_access` varchar(40) NOT NULL default '',
  `reply_access` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`forum`),
  KEY `forum` (`forum`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

# --------------------------------------------------------

#
# Table structure for table `post`
#

CREATE TABLE `post` (
  `post` int(10) NOT NULL auto_increment,
  `topic` int(10) NOT NULL default '0',
  `user` int(10) NOT NULL default '0',
  `forum` int(3) NOT NULL default '0',
  `body` text,
  `date` int(10) NOT NULL default '0',
  `attachment` int(5) NOT NULL default '0',
  `ip` varchar(15) NOT NULL default '',
  `edit` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`post`),
  KEY `user` (`user`),
  KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

# --------------------------------------------------------

#
# Table structure for table `topic`
#

CREATE TABLE `topic` (
  `topic` int(10) NOT NULL auto_increment,
  `user` int(5) default NULL,
  `title` varchar(50) default NULL,
  `start` int(10) default NULL,
  `last` int(10) default NULL,
  `icon` int(2) default NULL,
  `reply` int(5) default NULL,
  `view` int(5) NOT NULL default '0',
  `forum` int(3) default NULL,
  `closed` enum('Y','N') default 'N',
  `announce` enum('Y','N') default 'N',
  `sticky` enum('Y','N') default 'N',
  `hide` enum('Y','N') default 'N',
  `poll` blob NOT NULL,
  PRIMARY KEY  (`topic`),
  KEY `forum` (`forum`,`last`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

# --------------------------------------------------------

#
# Table structure for table `user`
#

CREATE TABLE `user` (
  `user` int(5) NOT NULL auto_increment,
  `privilege` int(3) NOT NULL default '1',
  `name` varchar(20) NOT NULL default '',
  `password` varchar(32) NOT NULL default '',
  `email` varchar(70) NOT NULL default '',
  `origemail` varchar(70) NOT NULL default '',
  `showemail` enum('Y','N') default 'Y',
  `register` int(10) NOT NULL default '0',
  `birthday` int(10) NOT NULL default '0',
  `icq` int(10) NOT NULL default '0',
  `title` varchar(30) NOT NULL default '',
  `icon` varchar(75) NOT NULL default '',
  `homepage` varchar(100) NOT NULL default '',
  `occupation` tinytext NOT NULL,
  `intresses` tinytext NOT NULL,
  `signature` tinytext NOT NULL,
  `status` varchar(30) NOT NULL default '',
  `prefs` varchar(150) NOT NULL default '',
  `totalposts` int(5) NOT NULL default '0',
  `sex` enum('M','F') default 'M',
  `ip` varchar(15) NOT NULL default '',
  PRIMARY KEY  (`user`),
  KEY `user` (`user`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

# --------------------------------------------------------

#
# Table structure for table `userprofile`
#

CREATE TABLE `userprofile` (
  `id` int(10) NOT NULL auto_increment,
  `user` int(10) NOT NULL default '0',
  `body` text NOT NULL,
  `createdate` int(10) NOT NULL default '0',
  `updatedate` int(10) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `user` (`user`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Reply With Quote
 


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

Forum Jump


All times are GMT. The time now is 07:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03256 seconds
  • Memory Usage 2,264KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete