Advertisement:

Author Topic: It's time to say hello to YaBB 2.5.2  (Read 3063 times)

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
It's time to say hello to YaBB 2.5.2
« on: July 11, 2017, 04:41:11 AM »
(cough cough... quite dusty here, the last message dates back to 2 years ago...)

Hello guys,

Believe it or not, there is still someone who (happily) uses YaBB... but I'm afraid it's time for a change: my web provider is experiencing some troubles in managing all the YaBB related file in a single directory: yabb/Members holds something like 20.000 files and once a month I'm experiencing troubles whit the forum.

So I decided to switch to SMF, a solution that seems quite easy to install, manage and customise (my forum - in Italian - is very much customized, take a look at (no, I'm not allowed to post external links) not only in graphics but also in features as the possibility to "like" a post and build a sorting of more "liked" authors... not essential to the forum, but funny to have).

SO, after this long (sorry) introduction, my question is: which is the "best practice" to migrate from YaBB 2.5.2 to the newest (stable) SMF version?

Should I migrate to a SMF 1.? version and then upgrade to 2.0.14?

Is there an "Migrate for dummies" version of the required steps?

Thank for you help,

  - Paolo



Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,244
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: It's time to say hello to YaBB 2.5.2
« Reply #1 on: July 11, 2017, 09:07:46 AM »
There is Yabb 2.2 convertor at https://download.simplemachines.org/?converters;software=yabb that moves you to SMF 2.0

If it does not work for you I may be able to help and work on the changes needed for YaBB 2.5

Actually check out this post seems to have one for 2.4 https://www.simplemachines.org/community/index.php?topic=518771.msg3692915#msg3692915
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #2 on: July 13, 2017, 05:26:47 AM »
Thank you vbgamer45,

I downloaded the converter you linked, and after a few modifications (mainly fields called "fieldName" that needs to be changed in "field_name") I managed to import the whole YaBB forum into SMF... or at least that's what I hope, I still need to do some checking on data, but everything during conversion seems to be gone OK.

Now, when I try to log in the forum, the authentication process seems ok: I put the correct login/password and I get redirected to the forum main page, with no further info, but I still appear as a "guest". If I try to put in the wrong password, I'm alerted of it, so it is not a problem due to the authentication process, seems more likely something related to the auth cookie (if any).

Any hint on this?

Thanks,

   - Paolo


Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #3 on: July 13, 2017, 06:35:21 AM »
Little update, after fighting a little bit with the LogInOut.php file, I managed to receive the following error at page hxxp:10.0.101.31/forum/index.php?action=login2;sa=check;member=1 [nonactive]


An Error Has Occurred!
You were unable to login. Please check your cookie settings.

Does it ring any bell?

 - Paolo

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,244
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: It's time to say hello to YaBB 2.5.2
« Reply #4 on: July 13, 2017, 09:10:38 AM »
You are using the default theme and SMF 2.0.14?

Also make sure all your urls are the same.  If visit your site at www.mydomain.com you must login on that domain www.mydomain.com and gets redirected to www.mydomain.com
If it is different in any form the cookie won't be set correctly.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #5 on: July 17, 2017, 11:18:38 AM »
Just a little update: the problem was due to the "member_id" column in "members" table. For some odd reason (maybe I modified a little bit too much the installing/converting files... ;D) after inserting members in it its name was changed in MEMBER_ID, so nothing was working as expected. I renamed the column, and now I can login both with the admin I created on SMF before converting and with the usual admin I use on my current forum.

There are still quite a few minor annoying "bug", such as permissions to see/browse certain boards that seems now to be public, but he most urgent need is now to readdress the old link to yabb toward the new SMF, maybe using the _convert table?

BTW, I'll let you know how the migration will go on...

 - Paolo

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,244
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #7 on: July 20, 2017, 08:40:03 AM »
Thank you vbgamer45,

I read the very detailed message from TAY, and modified it to suite my needs / version.

In SMF 2.0 there is a table "_convert" where are stored all the old YaBB and the new SMF ids, so it is very easy link the old thread to the new ones, and there is no need to modify the conversion script: just few modifications (and modernization) are required to the redirect.php script, that I expose below, just in case someone is looking for it:

Code: [Select]
<?PHP
$querystr = $_SERVER['QUERY_STRING'];
$querystr2 = str_replace(";", "&", $querystr);
parse_str($querystr2,$output);
$myNewForumUrl = "http://www.yourSite.com/yourNewSMFforum/index.php";
if ($output['num'] == '') {
   header('HTTP/1.1 301 Moved Permanently');
   header('Location: '.$myNewForumUrl);
} elseif (ctype_digit($output['num'])) {
   $mysqli = new mysqli("yourServer","yourUser","yourPassword","yourDatabaseName");
   $result = $mysqli->query("SELECT real_id FROM <*youPrefix*>_convert WHERE type='topics' and temp = '".$output['num']."' ");
   $row = $result->fetch_assoc();
   $topic = $row['real_id'];
   if ($topic !== null) {
      header('HTTP/1.1 301 Moved Permanently');
      header('Location: '.$myNewForumUrl.'?topic='.$topic);
   } else {
      header('HTTP/1.1 301 Moved Permanently');
      header('Location: '.$myNewForumUrl);
   }
} else {
   header('HTTP/1.1 301 Moved Permanently');
   header('Location: '.$myNewForumUrl);
}
?>

I'll be back with the next problem as soon as it will pop-up!

  - Paolo

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #8 on: October 05, 2017, 04:45:11 AM »
WOW!

At least, after several weeks of coding the convert.php and yabb24_to_smf.php files, I managed to migrate my old (beloved) YaBB forum to SMF.

Thank you vbgamer45 for helping me in this thread, thanks to all the other contributors who shared their knowledge about the migration issues. The Papersera is back!

My website is about Disney Comics, so if you're interested in them (only in Italian, sorry) or you're just curious to take a look at the result of the migration, the url is hxxp:www.papersera.net/forum [nonactive] (don't know if the link will work..)

Thank you again, and ciao!

 - Paolo

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #9 on: October 11, 2017, 05:30:48 AM »
Hello again,

Instead of starting another topic, I think it's better continue on this one, also because what I'm looking for is something still related to the YaBB->SMF migration...

The question is:

Is there something like the "Mark & Quote" function on YaBB to allow a quick (and partial) quote of a message directly into the "Write reply" box?

Thank, you,

 - Paolo

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,244
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: It's time to say hello to YaBB 2.5.2
« Reply #10 on: October 11, 2017, 09:03:19 AM »
There is a quote link in the top right corner of each message
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 182
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: It's time to say hello to YaBB 2.5.2
« Reply #11 on: October 11, 2017, 12:21:37 PM »
And to do mark and quote like in YaBB, you will have to use this mod. Otherwise, it quotes the entire post.

https://custom.simplemachines.org/mods/index.php?mod=2086

Offline PaperseraNet

  • Newbie
  • *
  • Posts: 8
Re: It's time to say hello to YaBB 2.5.2
« Reply #12 on: October 12, 2017, 10:45:24 AM »
There is a quote link in the top right corner of each message

Yep! I'm not that dumb! ;D ;D

And to do mark and quote like in YaBB, you will have to use this mod. Otherwise, it quotes the entire post.

https://custom.simplemachines.org/mods/index.php?mod=2086

That's exactly what I was looking for. Mod installed and it's working fine! Thank you!

 - Paolo