Permalink
Browse files

Added ip addresses to vBulletin export.

  • Loading branch information...
tburry committed Jan 20, 2012
1 parent 6db9f98 commit 56283c58b991351dfd49d870c73e5b3607084246
Showing with 7 additions and 3 deletions.
  1. +7 −3 class.vbulletin.php
View
@@ -93,7 +93,8 @@ protected function ForumExport($Ex) {
'referrerid'=>'InviteUserID',
'timezoneoffset'=>'HourOffset',
'salt'=>'char(3)',
- 'avatarrevision' => array('Column' => 'Photo', 'Filter' => array($this, 'BuildAvatar'))
+ 'avatarrevision' => array('Column' => 'Photo', 'Filter' => array($this, 'BuildAvatar')),
+ 'ipaddress' => 'LastIPAddress'
);
$Ex->ExportTable('User', "select *,
concat(`password`, salt) as password2,
@@ -195,10 +196,12 @@ protected function ForumExport($Ex) {
'postuserid2'=>'UpdateUserID',
'title'=>array('Column'=>'Name','Filter'=>array($Ex, 'HTMLDecoder')),
'Format'=>'Format',
- 'views'=>'CountViews'
+ 'views'=>'CountViews',
+ 'ipaddress' => 'InsertIPAddress'
);
$Ex->ExportTable('Discussion', "select t.*,
t.postuserid as postuserid2,
+ p.ipaddress,
p.pagetext as Body,
'BBCode' as Format,
replycount+1 as CountComments,
@@ -218,7 +221,8 @@ protected function ForumExport($Ex) {
'postid' => 'CommentID',
'threadid' => 'DiscussionID',
'pagetext' => 'Body',
- 'Format' => 'Format'
+ 'Format' => 'Format',
+ 'ipaddress' => 'InsertIPAddress'
);
$Ex->ExportTable('Comment', "select p.*,
'BBCode' as Format,

0 comments on commit 56283c5

Please sign in to comment.