phpBB2.0.19 -> 3.0: [gotopost] anchors

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Get Involved
Locked
asavage
Registered User
Posts: 32
Joined: Sun Dec 04, 2005 8:50 pm
Location: Duvall, Wash.
Name: Al Savage
Contact:

phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by asavage » Sat Sep 08, 2007 7:09 pm

I tried searching here but didn't find a hit . . .

My board uses the Anchor BBcode mod extensively. I am looking for reassurance that existing [gotopost] codes within users' posts will be converted correctly.
Regards,
Al S.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by D¡cky » Sat Sep 08, 2007 10:21 pm

The bbcode will convert correctly, but it will not work. If you add the bbcode to phpBB3 before the conversion, then the bbcode should work correctly after the conversion.
Have you hugged someone today?

asavage
Registered User
Posts: 32
Joined: Sun Dec 04, 2005 8:50 pm
Location: Duvall, Wash.
Name: Al Savage
Contact:

Re: phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by asavage » Sat Sep 15, 2007 4:20 pm

Now that I have performed a test installation, I am confused.

I cannot find the HTML to use for replacement for the [anchor] and [gotopost] tags. Naturally, without the HTML replacement, the features do not work. A sample:

Code: Select all

[anchor]TOC[/anchor]Contents

    * [gotopost=4,acronyms]Acronyms[/gotopost]
    * [gotopost=4,FSM]Factory Service Manual, etc.[/gotopost]
          o [gotopost=709]FSM errors & corrections[/gotopost]
          o [gotopost=4,partscatalogue]810/910 Parts Catalog[/gotopost]
    * [gotopost=4,MY_differences]Model Year Changes[/gotopost] etc. etc.
Regards,
Al S.

asavage
Registered User
Posts: 32
Joined: Sun Dec 04, 2005 8:50 pm
Location: Duvall, Wash.
Name: Al Savage
Contact:

Re: phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by asavage » Thu Sep 20, 2007 5:58 am

Perhaps I've posted this Q in the wrong forum?
Regards,
Al S.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by D¡cky » Thu Sep 20, 2007 3:41 pm

Since your concern has more to do with adapting a phpBB2 MOD to phpB3 format, you should discuss this in the phpBB 3.0 MOD Writers Discussion forum or in phpBB 3.0 MOD Requests.
Have you hugged someone today?

asavage
Registered User
Posts: 32
Joined: Sun Dec 04, 2005 8:50 pm
Location: Duvall, Wash.
Name: Al Savage
Contact:

Re: phpBB2.0.19 -> 3.0: [gotopost] anchors

Post by asavage » Sun Sep 23, 2007 3:52 pm

For others that get here when searching for the same answer: I've gotten halfway there. I appreciate your tip about adding the custom bbCode first, then performing the conversion.

The bbCode below converts and makes functional all the instances of [gotopost] tags which are links to other posts which are in the form of [gotopost=nnnnn]text[/gotopost].

BBCode usage

Code: Select all

[gotopost={NUMBER}]{TEXT}[/gotopost]
HTML Replacement

Code: Select all

<a href="/phpBB3/viewtopic.php?p={NUMBER}#p{NUMBER}">{TEXT}</a>
It does not, however, remedy the existing [gotopost] tags that link to custom [anchor]tags, where the [gotopost] tags are in the form [gotopost=nnnnn,anchorname]text[/gotopost]. For this, a MOD is required I think.

Also, I can't craft a custom bbCode tag for [anchor] because the result must contain the post number. For example, in the existing MOD the [anchor] tag is used thus:

Code: Select all

[anchor][i]anchorname[/i][/anchor]
The HTML replacement looks like this:

Code: Select all

<a name="postnum_anchorname">
for example

Code: Select all

[anchor]serviceinformation[/anchor]
becomes
<a name="4_serviceinformation">
where '4' is the post number.

I doubt there is a method for a custom bbCode to obtain the post number.
Regards,
Al S.

Locked

Return to “[3.0.x] Convertors”