I've converted over a number of forums and always had the same problem, but none of them had a lot of postings so it was no big deal to fix manually.
Now I am doing one that uses a lot of code samples and all of the
[ code ]
are being changed to
[ code:1 ]
I seem to recall that other BBCode was change like that as well.
Where is the :1 coming from and how do I get rid of it.
I don't see where in the script this is happening...
Hmm... Is the bbcode_uid for everything "1"? Does this happen for signatures too?
-[Unknown]
In the other ones, all bbcodes seemed to be :1
This particular forum does not have signatures. It is an internal Knowledge Database forum.
Another thing I've noticed is that any message that had 2 or more attachments, didn't make it either, but it looks like every message that had a single attachment did.
Quote from: krelvinaz on January 11, 2005, 02:24:33 AM
In the other ones, all bbcodes seemed to be :1
This particular forum does not have signatures. It is an internal Knowledge Database forum.
Another thing I've noticed is that any message that had 2 or more attachments, didn't make it either, but it looks like every message that had a single attachment did.
Strange... the attachments are converted after the fact, so they shouldn't affect conversion like that...?
But, I meant, in the database, on the posts_text (or is it post_text?) table, there's a column named "bbcode_uid". Generally, this is a code that goes in all the bbc - e.g. [code:whateverthatis]...[/code:whateverthatis]. If it's 1, then the converter is broken. If it's 2, then the converter is working as planned, but that way is wrong.
-[Unknown]
Hmmm... never noticed that field before. Looking at one that I have sitting here, it is a much larger number than 1 or 2...
Not sure I understand its purpose.
The bbcode_uid is the second field.
465 59b9616259 Matching HELO against valid hostnames The following code when placed in the RCPT ACL sec...
466 aec22011ea Some rules I use to block stupid Virus bounces Added to the /etc/mail/spamassassin/local.cf file ...
479 8f51c356a9 POP Auth before SMTP - Exact - Qpopper Using Exact with Qpopper made it possible to do PO...
467 87a55e9cbd More HELO checks... [code:1:87a55e9cbd]# Don't HELO with my IP!!! The...
468 5d176b95a1 ISC.ORG BIND 9.2.3rc4 I compiled and installed this version on a couple ...
469 d07354facb Swen - Discard EXE PIF SCR and COM One of my favorite rules... stops a ton of problem...
471 a063e94d21 User Reroute I needed a way to reroute users from where they we...
472 2fa50621f0 Cookbook Entries [size=15:2fa50621f0][b:2fa50621f0]Purpose of this ...
473 09bc3e56fc Bug in Script There is a bug in the script in the setting of the...
474 0bc0c4251d Using F-Prot with exiscan-acl [code:1:0bc0c4251d]av_scanner = cmdline:/usr/b...
475 3a821c02ed ISC BIND "delegation-only" Feature [size=15:3a821c02ed][b:3a821c02ed]ISC BIND "delega...
476 4d727bfd21 Splitting up RBL Checks into Categories I've broken up my RBL checks into groups so that I...
477 ffa7199ac4 Virtual Hosts - Multiple Users - Example 1 This is the way I am doing Virtual hosts with my c...
478 fbddc78a13 Simple Virtual User using Redirect Router A simple Virtual User method using the Redirect ro...
480 3c27b7bd51 MOVING!! I will be moving these forums to a different host ...
Field Type Null Default
post_id mediumint(8) No 0
bbcode_uid varchar(10) No
post_subject varchar(60) Yes NULL
post_text text Yes NULL
Indexes:
Keyname Type Cardinality Field
PRIMARY PRIMARY 32 post_id
I went ahead and dealt with this the same way I have with the other boards.
I did the conversion and then exported the messages file into a text file, and did mass search and replaces for the problem areas.
These included:
[code:1]
[list:u] - Needed to add [/li]'s manually
Alse as mentioned before, none of the attachments that were converted worked if the attachment had more than 1 per message.
I also had some that simply didn't come across, but I'm not sure why.
I will be updating them manually as there are only 30 or so of them.
Okay, that's it, I'm going to have to ask for access to your server. I swear something is going horribly wrong... because everything *LOOKS* right. But, here, I see:
467 87a55e9cbd More HELO checks... [code:1:87a55e9cbd]# Don't HELO with my IP!!! The...
[code:1:uid]? Grr. So probably replace :uid and :1:uid?
And list has "u" in it? Can you show me the tag from phpBB's database?
I think some of these issues are caused by upgrades... because I did testing with a bunch of tags with a clean install. That's why I'm asking for *temporary* access to your server, so I can fix the converter properly *and* get you converted properly.
If you can't give me that access, it's okay. I'll at least fix the code issue.... and I'll definitely look into the attachments.
-[Unknown]
I cant to that server, but can elsewhere, Let me set something up and I will send you a PM.
Might not be until Sat.
! phpBB converter now handles code sections and some other bbcode better. (phpbb2_to_smf.php)
Still not sure I fixed all problems.
-[Unknown]
If it is in the download area, I can give it a whirl.
Well, the latest version is on the downloads page. I didn't fix the list issue (need more test cases), but I did fix the code one and possibly others.
-[Unknown]