Simple Machines Community Forum

SMF Support => Converting to SMF => YaBB/YaBB SE => Topic started by: evgenydeep on June 16, 2008, 08:05:36 AM

Title: Converting Karma from Yabb 2 SMF
Post by: evgenydeep on June 16, 2008, 08:05:36 AM
Hello again :-)

Convertor not convert karma from Yabb.
Is it possible to add step for converting Karma also?

PS: I looked into yabb21_to_smf.php and found that convertor looks file end with ".karma", but my reputation file have name like "username.reputation".

For karma I used "Yet another Reputation System"
http://www.boardmod.org/yabb/YaBB.pl?board=newsy2;action=display;num=1169204866

In my .vars file exist reputation line, so partially i decide problem by changing
'karmaGood' => 0,
to
'karmaGood' => (int) $data['reputation'],


Please advise, what I have to change in yabb21_to_smf.php to have correct converted karma?

Title: Re: Converting Karma from Yabb 2 SMF
Post by: SleePy on June 16, 2008, 11:58:56 AM
Did you change it to look for the .reputation file?

If the format in the reputation file is different than what is in the regular .karma file then you might have issues and things would be need to be tweaked even more to work right.

Title: Re: Converting Karma from Yabb 2 SMF
Post by: evgenydeep on June 16, 2008, 01:03:34 PM
Honestly saying I don't know how should look .karma files.
Can you advise me where can I look on it's format?
Title: Re: Converting Karma from Yabb 2 SMF
Post by: SleePy on June 16, 2008, 02:08:25 PM
Well thats kinda bad, as I don't know either. From the sounds of it karma is a modification that you add onto yabb.

It is hard to provide conversions for mods and such as they may change or there may be many types of mods out there.
Best I can say is try the changes, make it look for a .reputation file, and run tests. Thats exactly how I make converters ;) . Lots of tests and constant cpu usage going through the roof when I make a mistake with that while loop :P