Page 4 of 4

Re: Migration to New Board Software

Posted: Thu Jul 28, 2005 5:10 am
by Spec8472
OK, I think we're on the home stretch now.

What's changed recently:

- BBCode
BBCode is now pretty much as good as it's going to get. Apart from modifications to PHPbb to include things like strike out, everything mostly works.

What I know not to work (and won't get converted, unless someone wants to re-write the BBcode conversion - either as a MySQL UPDATE command, or a VB.NET function)

* Color - Sorry, but to add this as an extra rule is just a real pain.

* Glow - PHPbb doesn't support this

* Center / Text Alignment - PHPbb doesn't seem to support this (planning to add a mod for it)

* Strike out - Not supported, adding a mod to PHPbb for it.

There might be other miscelanious bugs, let me know if it's a systemic thing - i.e a major tag that _should_ work, but isn't.

- Redirection Script
I've built a (static) copy of the redirection script that was mentioned previously.

Basicly, if someone clicks on a link that referrs to the YaBB forum, (i.e with a YaBB topic or forum id) they should be redirected to the correct forum/thread that they were looking for.

Examples - examine the actual link, and where you end up to see what I mean:
Link to the "old" YaBB Board's News/General board
Link to "Demon's Bane, Chapter 1" Updated, gave wrong URL, heh

You're free to try different ones (copy any link from this forum, and add 'staging-' to the sennadar portion of the domain name), however I'd suggest threads about 24 hours older than the date of this message.

What I still have to do:
- Avatars
Download and re-link avatar images. Avatars to be hosted on the forum server (improves response time if you don't have to load images from many different servers). People are still free to change/upload their avatars as desired.

- Ranks
Weird stuff is happening with some of the ranks, it's easy enough to fix up manually though. The custom ranks all come through OK though.

- Moderators & Permissions
This stuff hasn't been converted - it might be, but again, its really easy to fix up manually.

- PHPbb Mod Installation In Progress
Install mods to enable strikeout, alignment, and spoiler BBcode tags. Also install a spellcheck mod.

[s]- Upgrade PHPbb on Staging[/s] Done
[s]Upgrade point releases (2.0.15 to 2.0.17)[/s]

...anything I missed? :)

Re: Migration to New Board Software

Posted: Thu Jul 28, 2005 4:03 pm
by Shadowhawk
spec8472 wrote:- Redirection Script
I've built a (static) copy of the redirection script that was mentioned previously.

Basicly, if someone clicks on a link that referrs to the YaBB forum, (i.e with a YaBB topic or forum id) they should be redirected to the correct forum/thread that they were looking for.
Could you make Redirection Scripts available? I wonder if I will be able to improve them.

Re: Migration to New Board Software

Posted: Fri Jul 29, 2005 12:21 am
by Spec8472
shadowhawk wrote: Could you make Redirection Scripts available? I wonder if I will be able to improve them.
As I said, its the same one as mentioned before... It has a few minor changes though.

Code: Select all

#!/usr/local/bin/perl -w


use CGI;

my $query= new CGI;

$done = 0;

my %replacement_threads = ("1078848859" => "30", "1078881037" => "29", "this_array_has_been_trimmed_for_the_example" => "1");
my %replacement_forums = ("FireStaff" => "2", "Pyrosian" => "3", "OtherUniverses" => "4", "news" => "5");


if ($query->param("num")) {
     $num = $query->param("num");
     print "location: http://staging-sennadar.plebian.net/forum/viewtopic.php?t=$replacement_threads{$num}";
     $done = 1;
     };

if ($query->param("board") && !$done) {
     $board = $query->param("board");
     print "location: http://staging-sennadar.plebian.net/forum/viewforum.php?f=$replacement_forums{$board}";
     $done = 1;
     };

if (!$done) {
     print "location: http://staging-sennadar.plebian.net/forum/";
     $done = 1;
     };

print "

"; 

Re: Migration to New Board Software

Posted: Fri Jul 29, 2005 6:58 am
by Shadowhawk
Slightly improved <tt>YaBB.pl</tt> Redirector Script for the new board.

Current limits:
  • Returns wrong URI for unknown threads (not in <tt>%replacement_threads</tt> hash). We can assume that after full conversion it wouldn't matter, but I can build in some checks.
  • It does very base redirection, without taking into account e.g. selectng proper post in the thread
See also: Redirector Script on scripting subpage of my user's page on Sennadar Wiki.

Attention: the script was not actually tested in web environment. I have tested it from the commandline only, invoking it e.g. as <tt>./YaBB.pl "board=news;action=display;num=1078848859"</tt>.

Code: Select all

#!/usr/local/bin/perl -w

use CGI;
use strict; # Perl pragma to restrict unsafe constructs

my $query= new CGI;

my %replacement_threads = 
  ("1078848859" => "30", 
   "1078881037" => "29", 
   # ...
  );

my %replacement_forums = 
  ("FireStaff" => "2", 
   "Pyrosian" => "3", 
   "OtherUniverses" => "4", 
   "news" => "5", 
  );

my $baseURL = 'http://staging-sennadar.plebian.net/forum/';
my $newlocation = '';

if ($query->param('num')) {
  my $num = $query->param('num');
  $newlocation = "viewtopic.php?t=$replacement_threads{$num}";
} elsif ($query->param('board')) {
  my $board = $query->param('board');
  $newlocation = "viewforum.php?f=$replacement_forums{$board}";
}

print $query->redirect(
  -uri => $baseURL.$newlocation, 
  -status => '301 Moved Permanently');

Re: Migration to New Board Software

Posted: Sat Jul 30, 2005 6:56 am
by Shadowhawk
spec8472 wrote:- BBCode
BBCode is now pretty much as good as it's going to get. Apart from modifications to PHPbb to include things like strike out, everything mostly works.

* Color - Sorry, but to add this as an extra rule is just a real pain.

* Glow - PHPbb doesn't support this
You can use the color names from YaBB in PHPbb (iwth the YaBB capitalization), and they gives the same colors in PHPbb. So the only problem would be adding BBcodeID, similarly how it is done for other YaBBCodes with parameters, like e.g. Glow works only with IE (and I use Mo ... ]this post, for example "Today At/Yesterday At", "Auto Subject On Reply", "Top 'X' Posters" perhaps, "Link Poster's Name To Profile"?

I guess that for solving some of the problems it would be easier to make one's own mod, than to search and cobine existing PHPbb mods.

Modified: added info about other phpBB mods which might to be added in New Board.
Modified: mailto: and irc: (pseudo)protocols not supported in PHPbb's [url] tag.

Re: Migration to New Board Software

Posted: Wed Aug 24, 2005 9:13 pm
by Shadowhawk
Hidden phpBB fields

Just a thought: perhaps to not loose information during conversion, perhaps one should add fields (colums) which are present in YaBB and absent in phpBB, even if they wouln't be used without writing mod, like e.g. webpage description for profile, or message icon for message.