vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - ImpEx Module: Xenforo (https://vborg.vbsupport.ru/showthread.php?t=283111)

Andreas 05-17-2012 10:00 PM

ImpEx Module: Xenforo
 
1 Attachment(s)
This is a Xenforo module for ImpEx, the vBulletin Import System,
it does allow you to import a Xenforo Database into a vBulletin 4 installation.

Currently, the following data will be imported:
  • Usergroups
  • Users including Avatars
  • Forums
  • Threads including Polls
  • Posts
  • Smilies
  • Attachments
  • Conversations
    As vBulletin does not have an equivalent to the Conversations feature in Xenforo, conversations will be converted to Private Messages in vBulletin.
    Please note that any attachments used in conversations will get lost as vBulletin does not (yet) support attachments in PMs.

This module has been developed for Xenforo 1.0.4, but it should also work with Xenforo 1.1.X.
Please not that Xenforo 1.1.X features (Profile Fields, Thread Prefixes, etc.) are not yet supported.

If there is enough interest I might add those features in a later release.

Warning
This module is BETA and has not been tested extensively - use it at your own risk.
If you find bugs, please report them!

Important - See Post #87 about an important potential security issue and fix if you use this.

s.molinari 05-18-2012 10:34 AM

Good job Andreas. Thanks for the help.

Scott

thecore762 05-18-2012 11:17 AM

As always great work Andreas!

soniceffect 05-18-2012 11:42 AM

Nooooooo .... spent hours and hours converting mine through IPB to get it back!!!!

Excellent work as always though m8. Im sure there are a fair few people who will greatly appreciate this effort

ENF 05-18-2012 12:09 PM

Thanks Andreas, looking forward giving this a test run.

Brandon Sheley 05-18-2012 12:44 PM

great release!!

I don't need it now but it's very nice to have the option if needed

Thanks for sharing :)

vidan 05-18-2012 09:06 PM

thanks for sharing this, great work,
thought to porting my xf to vb, because xf now dead --;

8thos 05-19-2012 08:58 AM

Quote:

Originally Posted by soniceffect (Post 2330404)
Nooooooo .... spent hours and hours converting mine through IPB to get it back!!!!

Excellent work as always though m8. Im sure there are a fair few people who will greatly appreciate this effort

LMFAO!!! I had thought about doing that at one point but changed my mind.

I'm just glad this is free.

TFGoRP 05-21-2012 02:42 AM

I can't get attachments to import, source file not found.

Andreas 05-21-2012 05:05 AM

What is the path you did enter for attachments?

TFGoRP 05-21-2012 08:09 AM

Quote:

Originally Posted by Andreas (Post 2331181)
What is the path you did enter for attachments?

I entered the path to the /data/attachments folder, attachments worked fine though.

However when I ran attachments it looked for filenames like "blah.jpg" but xenforo stores all its attachments as 466545646546545664 and other random numbers while the actual file names are in the database under the xf_attachment_data table.

Is there anything that could be done for attachments?

TFGoRP 05-21-2012 12:02 PM

If you require any other information please do let me know!

eva2000 05-21-2012 12:22 PM

Awesome indeed Andreas :D

Andreas 05-21-2012 05:56 PM

Quote:

Originally Posted by TFGoRP (Post 2331199)
I entered the path to the /data/attachments folder, attachments worked fine though.

Thats's the wrong path, this directory only contains thumbnails.
You must enter the part to internal_data/attachments.

Quote:

However when I ran attachments it looked for filenames like "blah.jpg"
The filename is just for human readability, it does look for the real file (well, at least it should :)).

TFGoRP 05-21-2012 10:57 PM

Quote:

Originally Posted by Andreas (Post 2331332)
Thats's the wrong path, this directory only contains thumbnails.
You must enter the part to internal_data/attachments.


The filename is just for human readability, it does look for the real file (well, at least it should :)).

the path to internal_data/attachments does not work, it still tells me source file not found for every single attachment.

If you need any other info do let me know! I would very much like to be able to do the full import as soon as possible, thank you for the support and time you have put into this :)

Look forward to your next response.

Andreas 05-22-2012 04:39 AM

Seems like you are SOL with this problem then as it works just fine for me.

Sorry, but I can't help you without access to your server.

You might want to check that the path is indeed correct and that the webserver has read access to read the files:
Put
PHP Code:

echo($path); 

in line 94 of 010.php to see which files are actually being accessed.

BamaStangGuy 05-22-2012 04:49 AM

Quote:

Originally Posted by soniceffect (Post 2330404)
Nooooooo .... spent hours and hours converting mine through IPB to get it back!!!!

I'd have just stopped at IPB...

Maybe one day vBulletin will come up with a 3.6.12 to 4.2 upgrade script for vBulletin.org ;)

TFGoRP 05-22-2012 09:53 AM

Quote:

Originally Posted by Andreas (Post 2331474)
Seems like you are SOL with this problem then as it works just fine for me.

Sorry, but I can't help you without access to your server.

You might want to check that the path is indeed correct and that the webserver has read access to read the files:
Put
PHP Code:

echo($path); 

in line 94 of 010.php to see which files are actually being accessed.

I managed to get the attachments imported but on the very last step after importing attachments which worked perfectly I get this error on the last button. Process Inline attachments

ImpEx Database error

mysql error: Invalid SQL:
SELECT attachmentid
FROM attachment
WHERE importattachmentid != 0
ORDER BY attachmentid ASC
LIMIT , 10


mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 10' at line 5

mysql error number: 1064

Date: Tuesday 22nd 2012f May 2012 05:52:31 AM
Database: mydatabase
MySQL error:+
Anyway to fix that?

Thanks for your support!

TFGoRP 05-22-2012 10:11 AM

Quick update: I can't even click on the Import button in the ACP, I also get the error above.

pjfry 05-22-2012 10:12 AM

Hi i get this Error after importing the forums:


Quote:

ImpEx Database error

mysql error: Invalid SQL:
UPDATE forum
SET parentid = 2218
WHERE forumid = 2088


mysql error: Table 'dev_onlinegilde.forum' doesn't exist

mysql error number: 1146

Date: Tuesday 22nd 2012f May 2012 01:09:11 PM
Database: dev_onlinegilde
MySQL error:

First i thought this is a problem with my target DB, but the connection seems to be fine. So I have no idea what is going wrong here.

Maybe someone has an idea?

Thanks for your help!

Benny

Andreas 05-22-2012 11:01 AM

@TFGoRP
Sorry, but as said before - I can't help you without access to your server.

Quote:

Originally Posted by pjfry (Post 2331529)
First i thought this is a problem with my target DB, but the connection seems to be fine. So I have no idea what is going wrong here.

Maybe someone has an idea?

Line 510 of 000.php should be
PHP Code:

UPDATE {$Target_tableprefix}forum 

instead of
PHP Code:

UPDATE {$tableprefix}forum 


pjfry 05-22-2012 11:02 AM

Thanks for your help! I will try it as soon as I get home from work :)

Benny

eyedream 05-23-2012 10:02 AM

please any one guide me how to use this please ...

joyboy2001 05-23-2012 11:41 AM

ImpEx must bring in tons of customers for vBulletin ... Great work guys :)

ragtek 05-23-2012 01:29 PM

IMO all the {$tableprefix} are unnecessary, because xf doesn't have a table prefix:)

eyedream 05-23-2012 05:37 PM

i have just convert XenForo 1.1.2 TO vBulletin 4.1.12 all works fine but passwords issue...:(

Andreas 05-24-2012 03:48 PM

Quote:

Originally Posted by ragtek (Post 2331933)
IMO all the {$tableprefix} are unnecessary, because xf doesn't have a table prefix:)

Hmm ... at least my sample database does have one (xf_).

Quote:

i have just convert XenForo 1.1.2 TO vBulletin 4.1.12 all works fine but passwords issue...
It is not possible to just import XenForo passwords into vBulletin as XenForo password hashes are incompatible with vBulletin, you would have to create an Addon to handle authentication differently than vBulletin does by default.

Although this would be possible, it requires quite a bit of work.

ragtek 05-24-2012 05:10 PM

Quote:

Originally Posted by Andreas (Post 2332354)
Hmm ... at least my sample database does have one (xf_).

That's the standard prefix which is hardcoded in the entire code and used for all standard xf tables

http://xenforo.com/community/threads...-prefix.19408/
http://xenforo.com/community/threads...xenforo.31837/

Andreas 05-24-2012 09:29 PM

Hardoced or User-Defined doesn't really matter, after all it is a prefix :)

iBaker 05-25-2012 12:08 AM

Thank you so much Andreas...this was one of the biggest things stopping me from bringing my main site back to vb...when I am finished setting up my new vb version of the site I will give this a try.

Thanks again

eyedream 05-25-2012 05:33 AM

Quote:

Originally Posted by Andreas (Post 2332354)
Hmm ... at least my sample database does have one (xf_).


It is not possible to just import XenForo passwords into vBulletin as XenForo password hashes are incompatible with vBulletin, you would have to create an Addon to handle authentication differently than vBulletin does by default.

Although this would be possible, it requires quite a bit of work.

please guide me how to create addon please.
Regards

TheInsaneManiac 05-27-2012 05:48 AM

So I can import all my users but the can't login is that what I am hearing?

Andreas 05-27-2012 05:50 AM

Not without resetting their password, yes.

Andreas 05-27-2012 05:51 AM

Quote:

Originally Posted by eyedream (Post 2332607)
please guide me how to create addon please.
Regards

Take a look at how login.php, functions_login.php do work, extend the database to store XenForo Login credentials and program the required Plug-ins.

TheInsaneManiac 05-27-2012 06:04 AM

You know if IPB converts to their passwords and Impex will convert IPB passwords?

Andreas 05-27-2012 07:41 AM

AFAIK current IPB versions don't use a hashing scheme that is compatible with vBulletin, eg. if you import IPB accounts you would most likely have ot reset passwords as well.

TheInsaneManiac 05-27-2012 08:11 AM

Anyway to make it accept current xf password and force them to change the password?

SocialNetworkBuzz 05-27-2012 09:06 AM

hehe it's like ping pong, everyone wants to convert now as things been quiet on the xF front and vB 4.2 just came out.. Next when xF 1.2 comes out, everyone will want convert again til vB 5.x.. etc

TheInsaneManiac 05-27-2012 10:20 AM

I actually converted to code in both worlds, but when my vBulletin database crashed (probably XenForo doing...) I was resorted to keeping the converted XenForo. I've never liked it, but have found myself making more of a profit on XF than vB, but loosing my SEO has dropped my members and guests by half, so the money I have earned making mods on XF, I have lost by advertising revenue decrease. So... Money wise it's about equal, but from day one about 6 months ago, I wanted to switch back. Note to self... Never install and convert a database table... On the same database.

Ohhh, and no, it won't be ping pong, I will be selling my XenForo license after this mess is cleared up. Coding on their platform is more complicated, auto template editing is not even possible yet, which really aggravates me and other customers.

JammerOne 06-02-2012 09:06 AM

Hello there ...

I am very new here ..

my old board is xenforo and I like to transfer in VB4.20 but my problem is how to get the data from my old one ..

anyone can help me ..

Regards,


All times are GMT. The time now is 10:05 AM.

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.01440 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete