Page Index Toggle Pages: 1
Topic Tools
Normal Topic Converting messages IB2.19 to YaBB2 PR (Read 5,375 times)
Evgeniy
YaBB Newcomer
*
Offline



Posts: 38
Location: Moscow
Converting messages IB2.19 to YaBB2 PR
Sep 16th, 2005 at 9:37pm
Post Tools
Did any body did that? or another message converter to YaBB2. I have a problem with board message files structure.
  

My English isn't good, and I be grateful for all points on misstakes.
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.3
Re: Converting messages IB2.19 to YaBB2 PR
Reply #1 - Sep 16th, 2005 at 10:48pm
Post Tools
There is an IB2.17 convertor available. Unless they've changed structure, this should work.
http://faq.yabbforum.com/index.php?op=view&t=6

This will convert to YaBB 1 format though, so you'll need to run the converter in YaBB 2 afterwards to import the converted data. I've never used this convertor, so I don't know exactly how it is set up, but you might need to set up a working YaBB 1 forum as an intermediate step....
  
Back to top
 
IP Logged
 
Evgeniy
YaBB Newcomer
*
Offline



Posts: 38
Location: Moscow
Re: Converting messages IB2.19 to YaBB2 PR
Reply #2 - Sep 22nd, 2005 at 10:02am
Post Tools
I tried to use this one but it contains only memberconvert (messageconvert is not active).  And even using membersconverter leads to strange results. Most likely it unworkable version or profile's formats 2.17 and 2.19 are differs.

I finished my converter almost. But have such problem: when converting profile, it necessary to encrypt password (in 2.19 it stored in plain text).  So I try to use sub encode_password (taked from subs.pl). But get error : Can't locate Digest/Perl/MD5.pm in @INC (@INC contains: D:/PF/Perl/lib D:/PF/Perl/site/lib .) , though i pushed right path to pm from yabb package.
First 3 lines from my script:
Code
Select All
$yabbdir = "d:/site_srv1/cgi-bin/yabb2";
push(@INC, "$yabbdir/Modules");
push(@INC, "$yabbdir/Modules/Digest");
 


When I comment &encode_password and try to display all path from @INC - script displays  all paths - old an my (that i pushed). But when the sub is uncommented - perl "do not see" pushed path in @inc.

What it can be???
I going mad  Smiley
« Last Edit: Sep 22nd, 2005 at 10:05am by Evgeniy »  

My English isn't good, and I be grateful for all points on misstakes.
Back to top
 
IP Logged
 
Tea-Master
YaBB Legends (Active)
*
Offline



Posts: 3,628
Location: Germany
Re: Converting messages IB2.19 to YaBB2 PR
Reply #3 - Sep 22nd, 2005 at 11:26am
Post Tools
well you may want to try

use lib "$yabbdir/Modules";
  

--> also known as Agent Zed Wink
Back to top
 
IP Logged
 
Monsen
YaBB Legends (Active)
*
Offline



Posts: 10,103
Location: Bergen, Norway

YaBB 2.3
Re: Converting messages IB2.19 to YaBB2 PR
Reply #4 - Sep 22nd, 2005 at 11:37am
Post Tools
You don't have to encrypt password when importing them into YaBB 2 though. They will be automatically encrypted the first time the user logs on to the board....
  
Back to top
 
IP Logged
 
Evgeniy
YaBB Newcomer
*
Offline



Posts: 38
Location: Moscow
Re: Converting messages IB2.19 to YaBB2 PR
Reply #5 - Sep 22nd, 2005 at 1:08pm
Post Tools
Quote:
well you may want to try 

use lib "$yabbdir/Modules";

Don't work Sad : Can't locate Digest/Perl/MD5.pm
Quote:
You don't have to encrypt password when importing them into YaBB 2 though. They will be automatically encrypted the first time the user logs on to the board....

It's  cool. But I must do it nevertheless. =)
  

My English isn't good, and I be grateful for all points on misstakes.
Back to top
 
IP Logged
 
Tea-Master
YaBB Legends (Active)
*
Offline



Posts: 3,628
Location: Germany
Re: Converting messages IB2.19 to YaBB2 PR
Reply #6 - Sep 23rd, 2005 at 9:51am
Post Tools
what happens if you move the folder Digest out of the Modules folder into the YaBB root folder?
if the problem remains you should specify the $yabbdir as absolute path.
  

--> also known as Agent Zed Wink
Back to top
 
IP Logged
 
Evgeniy
YaBB Newcomer
*
Offline



Posts: 38
Location: Moscow
Re: Converting messages IB2.19 to YaBB2 PR
Reply #7 - Sep 23rd, 2005 at 2:47pm
Post Tools
Problem remains. 
Problems is begin when "push..." and sub placed in the same file. If remine "push..." and require sub from another file all going fine :).
I find it when began do all like in Yabb (because it use "push" and it work :) ) :

[i]push(@INC,PATH)[/i] goes first then goes [i]require "script_with_sub_that_use_PM_from_PATH"[/i]

Message converter isnt ready(but it be soon).
So members converter is done and have tested on animals. And here it is.

  

ybc_ib219.zip (Attachment deleted)

My English isn't good, and I be grateful for all points on misstakes.
Back to top
 
IP Logged
 
Tea-Master
YaBB Legends (Active)
*
Offline



Posts: 3,628
Location: Germany
Re: Converting messages IB2.19 to YaBB2 PR
Reply #8 - Sep 23rd, 2005 at 3:02pm
Post Tools
good that you figured it out. but then "use lib ..." should work, too. because its done at compile time like the use-statements. might it be that you put "use lib" after you are using the other modules?
  

--> also known as Agent Zed Wink
Back to top
 
IP Logged
 
Evgeniy
YaBB Newcomer
*
Offline



Posts: 38
Location: Moscow
Re: Converting messages IB2.19 to YaBB2 PR
Reply #9 - Sep 24th, 2005 at 5:10pm
Post Tools
Quote:
might it be that you put "use lib" after you are using the other modules
no. i put it even in begining - error still remined. but it not matter now. problem solved.
  

My English isn't good, and I be grateful for all points on misstakes.
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top