Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Import data phpbb 3.0.12 : modified image link

TofTof
edited February 2016 in Vanilla 2.0 - 2.8

Vanilla 2.2
Theme Bootstrap
Serveur de Test : http://88.181.151.128:8080/

Hello everyone,

I have a problem with importing phpbb to vanilla 2.2

Take for example this post:
http://www.tablette-chinoise.net/forum/tout-comprendre-sur-la-4g-lte-t3581#p43986

When I do an import of the database phpbb, I find myself with links to fake pictures:

http://88.181.151.128:8080/discussion/3581/tout-comprendre-sur-la-4g-lte

I want to say that it is not for all images

If I look at the code, we can realize that the import to change the link by removing all the points

Before the import in phpbb 3.0.12 :

[img=center]http://www.journaldugeek.com/files/2013/03/05136_thumb.jpg[/img]

After Import in vanilla 2.2 :

<img alt="httpwwwjournaldugeekcomfiles20130305136_thumbjpg">

I use the script vanilla porterplus :

http://vanillawiki.homebrewforums.net/index.php/Importing

Download : https://dl.dropbox.com/u/15933183/porterplus/porterplus.php

Thank for your help

Tagged:
«1

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    This is the correct application for porting from other type forums

    https://vanillaforums.org/addon/porter-core

    Install this in the applications folder for vanilla

  • Thank you, but it does not convert bbcode

    Porterplus really is best studied for phpbb to vanilla 2

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    @Linc might be able to help with that. He knows more than anyone about this.

  • ok thank

  • porterplus.php is very old I wouldn't necessarily rely on it. most likely the newer poster superseded anything in it.

    grep is your friend.

  • I'll do my tests with the latest version of porterplus and you stay current

  • ok, I'll do my tests with the latest version of porterplus and you stay current

  • Hi all,

    I just import the phpbb3 base via script porterplus:
    https://vanillaforums.org/addon/porter-core

    I started the script and I got the error:
    Error: (2) array_pop() expects parameter 1 to be array, boolean given

    I made the correction that was told here:
    https://vanillaforums.org/discussion/31407/vanilla-porter-error-2-array-pop-expects-parameter-1-to-be-array-boolean-given#latest

    Open vanilla2export.php

    Find :
    return array_pop($value);

    Replaces with
    return $value ? array_pop($value) : '';

    Following this correction made on the script, it works

    Here is the result :

    Success!
    
    Really boring export logs follow:
    Export Started: 2016-02-19 19:53:34
    Exported Table: User (30518 rows, 00:26.57)
    Exported Table: Role (14 rows, 00:00.00)
    Exported Table: UserNote (20 rows, 00:00.06)
    Exported Table: Rank (12 rows, 00:00.02)
    Exported Table: Permission (14 rows, 00:00.00)
    Exported Table: UserRole (57565 rows, 00:05.55)
    Exported Table: UserMeta (2086 rows, 00:01.06)
    Exported Table: Category (297 rows, 00:00.15)
    Exported Table: Discussion (6072 rows, 00:03.51)
    Exported Table: Comment (65351 rows, 00:54.25)
    Exported Table: UserDiscussion (133 rows, 00:00.02)
    Exported Table: Poll (13 rows, 00:00.03)
    Exported Table: PollOption (55 rows, 00:00.03)
    Exported Table: PollVote (218 rows, 00:00.03)
    Exported Table: Conversation (3388 rows, 00:00.98)
    Exported Table: ConversationMessage (6863 rows, 00:05.31)
    Exported Table: UserConversation (6300 rows, 00:00.60)
    Exported Table: Media (38 rows, 00:00.03)
    Exported Table: Ban (460 rows, 00:00.15)
    export_forum_2016-02-19_195334.txt.gz
    Export Completed: 2016-02-19 19:55:15
    Elapsed Time: 01:40.81
    It worked! You’re free! Sweet, sweet victory.
    

    The forum is imported into Vanilla 2. The problem images is corrected

    I have a new problem with avatars that do not appear. http://88.181.151.128:8080

    Also, the plugin "Default Avatar" no longer works. The following image is parametered in the plugin:

    http://88.181.151.128:8080/uploads/Icones/Avatar_default.png

    Can you tell me what to do to correct the importing Member avatars?

    Thanks for your help.

  • TofTof
    edited February 2016

    Looking at the error avatar, here is my inquiry :

    Take for example the admin avatar:

    First, I see in the link of the avatar:

    src="http://88.181.151.128:8080/uploads/phpbb/n88d2ccad8610c332e55d03fb89c92923_2.png"

    I have a "phpbb" upload folder does not exist.

    I therefore creates and gives it a right to access 777

    I remake the import of phpbb with the script "porterexport"

    No avatar is placed in the folder uploads/phpbb

    I take all the avatars in phpbb and copies in the folder uploads/phpbb

    And then I realize that the script adds a letter to each avatar name.

    Example :

    **In phpbb for Admin Avatar : **
    88d2ccad8610c332e55d03fb89c92923_2.png

    In vanilla 2 Call link is:

    n88d2ccad8610c332e55d03fb89c92923_2.png

    Here is a mistake I already found.

    the script adds the letter n in the name of the avatar file

    How to fix the script porterexport.php

    thank you for your reply

  • TofTof
    edited February 2016

    Could you correct my previous post:

    Change :

    Hi all,
    
    I just import the phpbb3 base via script porterplus:
    

    Remplace with

    Hi all,
    
    I just import the phpbb3 base via script porterexport:
    

    Thank and you can delete this post =)

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Vanilla uses the userpics folder to store the avatars . You can't use the other folder because vanilla looks for the userpics folder.

  • ok,

    Why porterexport script modifies the source files avatars like this:

    src="http://88.181.151.128:8080/uploads/phpbb/n88d2ccad8610c332e55d03fb89c92923_2.png"

    It is an error in the script?

  • TofTof
    edited February 2016

    Hello everyone

    I can not get out of this bug!!!

    I use the script: https://vanillaforums.org/addon/porter-core

    I installed a new forum vanilla 2.

    I launch the script porter-master

    I select:

    • Source Forum Type: phpbb3
    • Table Prefix: phpbb_
    • Database: the database of my phpbb3 forum

    I do not select avatar

    RESULT:

    Avatars are always imported with an error: the link is for example:

    http://88.181.151.128:8080/uploads/phpbb/n88d2ccad8610c332e55d03fb89c92923_13745.gif"

    I edit the file phpbb3.php in folder ../porter-master/packages

    I changing the line 17 by 'Avatars' => 0,

    I raise an import operation and the error is always the same!

    For the import operation to phpbb3 of vanilla 2, I do not want to import the avatars

    I let you watch here the result of my problem: http://88.181.151.128:8080/

    I sincerely believe that the script has a bug on the part avatars for forums under Phpbb3

    Thanks for your help

  • TofTof
    edited February 2016

    I just installed a new version of VANILLA 2

    I have the same error on my internal server:

    http://192.168.1.10/vanilla_original/uploads/phpbb/n88d2ccad8610c332e55d03fb89c92923_2.png

    Why this folder and this letter : vanilla_original/uploads/phpbb/n88d2ccad8610c332e55d03fb89c92923_2.png

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    This might be due to the tags in the original forum. You will need to change the format to html before porting it over.

    [img=center]http://www.journaldugeek.com/files/2013/03/05136_thumb.jpg[/img]
    
    After Import in vanilla 2.2 : It tried to convert the formatting because [img] is not html format and stripped it. 
    
    <img alt="httpwwwjournaldugeekcomfiles20130305136_thumbjpg">
    

    The correct format is this:

    <img src="http://www.journaldugeek.com/files/2013/03/05136_thumb.jpg"/>

  • TofTof
    edited February 2016

    @vrijvlinder

    Thank for your post.

    The image of my forum is ok with the script of poster-master

    I now have a problem only on the import of avatars of my phpbb3 forum to vanilla 2! =)

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Make sure you import them into the uploads/userpics folder

  • TofTof
    edited February 2016

    yes, but why the script adds a letter n front of the file name link?
    Look good the second image of my previous post

    or look here : http://88.181.151.128:8080/

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    You can't use the folder phpbb for the userpics, you need to put the avatars in the userpics folder.
    Even if you make a phpbb folder with avatars, they should appear, however that is not the right place for the avatars. It is called userpics .

    Something in the script is adding that I suppose.. but I don't know.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    @Linc , is the author, I hope he can shed light on this bug..

Sign In or Register to comment.