Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1619

[3.3.x] Support Forum • 3.0 to 3.3 - help with database search/replace

$
0
0
Hi

I wanted to upgrade from 3.0 to 3.3 after 11 years. The upgrade went well, the new forum is running without problems so far, but there is one issue. On the old version, i had to install a mod in order to be able to link to the original message in a quote. Now, this feature is built into 3.3. But for roughly 11 years my forum has been running with the old mod to take care of quotelinks. That means all the old quotes are no longer working and therefor the code is also messing up page lay-outs. I would like to clean that up and have some basic idea of how i would like to do that.

Basically, the mod i used ("Quote Post Back Link") used the following format:

Code:

[quote="admin";p=90781]text[/quote]
while the new built-in system uses this format:

Code:

[quote=admin post_id=90781 time=1593093588 user_id=2]text[/quote]
which in turn also works without time and user parameters and also works with quotation marks around the username, like so:

Code:

[quote="admin" post_id=90781]text[/quote]
Basically, all that is needed is to change

Code:

;p
to

Code:

 post_id
(including the space)

The issue is that ;p is not only used in quote links, for instance i have found examples of code using ;png and ;php , so i can't just go replacing every instance of ;p without messing other things up. In order to circumvent that problem, i was thinking of replacing

Code:

";p=
with

Code:

" post_id=
since that (so far to my knowledge) is used exclusively for the old quotelinks.

So that's the idea. But upon trying to do a search/replace in phpmyadmin for the database, i keep getting error 500. Then i figured i could export the database (all these quote links are within the column "post_text" in "phpbb_posts") and try to edit the sql code with notepad++. But the phpbb_posts part of the database is already bigger than 64mb, while this is the max allowed upload size when i want to upload the edited file again.

Additionally, i have found that sometimes the code used in the same sql file is not

Code:

";p= 
but instead

Code:

";p=
while the result in the forum is exactly the same and also displayed as ";p= in the text editor of the forum. With what should i replace that code? Is that a formatting/encoding issue, and should it be replaced by

Code:

"&nbsppost_id=
?

Am i doing something wrong? Is there a better way to go about it? I believe my train of thought is solid (doing a search/replace for ";p=) but so far i'm not getting there. Anybody more knowledgeable or having resolved a similar problem in the past? I'm not a programmer, i'm a graphic designer who also used to do basic webprojects. So i have basic knowledge of these things, but nothing advanced. Also, it's basically been 10 years since i've dabbled in this stuff.

Any help would be appreciated.

Statistics: Posted by ozfunghi — Thu Feb 20, 2025 2:27 am



Viewing all articles
Browse latest Browse all 1619

Trending Articles