MyBB Community Forums

Full Version: Fix broken image links (Forum Template)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I installed our old MyBB theme and it's using our old domain on some theme/template images and I just can't find anywhere where I could fix them to show up properly.



It's odd as most of the images load from the correct directory and display correctly but there are few which refuse to work properly.



[Image: Screenshot-7.png]



[Image: Screenshot-8.png]



It's quite odd as some pictures tries to load from wrong directory, e.g: https://mydomain.com/images/image1.png instead of https://mydomain.com/mybb/images/image1.png



Then few tries to load images from old domain.

With grep I found that the links are showing up in these files:


/var/lib/mysql/*cencored*/mybb_posts.MYD
/var/lib/mysql/database/mybb_posts.MYD
/var/lib/mysql/database/mybb_privatemessages.MYD
/var/lib/mysql/database/mybb_templates.MYD

Is there a way to fix them via phpmyadmin?
example SQL query :
UPDATE `mybb_posts` SET `message` = REPLACE (`message`, 'OLD', 'NEW') WHERE `message` LIKE '%OLD%'; 
(2020-07-21, 01:49 PM).m. Wrote: [ -> ]example SQL query :
UPDATE `mybb_posts` SET `message` = REPLACE (`message`, 'OLD', 'NEW') WHERE `message` LIKE '%OLD%'; 
Alrighty, what about those which use wrong directory´:

E.g

Quote:It's quite odd as some pictures tries to load from wrong directory, e.g: https://mydomain.com/images/image1.png instead of https://mydomain.com/mybb/images/image1.png