Mobile app version of vmapp.org
Login or Join
Sherry384

: Old phpBB posts use different [quote] BBCode markup that doesn't work anymore I restored a ten-year-old phpBB forum, and after upgrading it to 3.1.x, I noticed that the quote BBCode is not working

@Sherry384

Posted in: #Markup #Phpbb

I restored a ten-year-old phpBB forum, and after upgrading it to 3.1.x, I noticed that the quote BBCode is not working correctly (but I don’t know if it worked in the old version).

If no username/URL is specified, everything’s fine:

[quote]…[/quote]


But if the username/URL is specified, the format in old posts looks like this:

[quote=John]…[/quote]


while phpBB seems to require this format (and this is also what the post editor generates):

[quote="John"]…[/quote]


So the quotes around the name/URL are missing.

How could I convert this BBCode in old posts? Or is it possible to make the version without quotation marks work in addition to the new one?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sherry384

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

I just hunted down the code that Nathan and I developed back when we released version 1 of phpBB and it did use both quote= and quote=""

Here is the related code, perhaps it can point you in the right direction:

$text = preg_replace("/[quote="(.*?)"]/si",$bbcode_tpl['quote_username_open'], $text);


and for the .tpl file:

<!-- BEGIN quote_username_open -->
<table cellspacing="1" cellpadding="3" border="0" id="quoted-member">
<tr>
<td><span class="NormText"><b>{USERNAME}:</b></span></td>
</tr>
<tr>
<td class="Comments_Quote">
<!-- END quote_username_open -->

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme