MG 1.1 How to rebuild BB Code in Media Gallery for threads

51463

Well-known member
After i enabled image proxy for xenforo, everything seemed to work except for the media gallery bb code.

By this i mean when users take the BB code from an uploaded picture in the media gallery and post it in a thread


example:

Code:
[URL=http://xenforo.com/community/media/rayman-origins.1/][IMG]http://xenforo.com/community/data/xengallery/88/88762-91cc2cf5cb8069856d4b70448a6da83f.jpg[/IMG][/URL]


the problem is after adding ssl, the bb code url still says http and i am seeing a:

missing-image.webp



is there a way to rebuild all the bb codes inside the threads so they change from http to https
instead of manually going into each post and editing the uers bb code



i don't see any rebuild bb code in threads option



thanks,
 
Last edited:
You would have to use something like the Post Content Find and Replace Tool add-on.

Any URLs for images that cause a redirection (such as a http link that now redirects to https) will no longer load as of XF 1.5.10. This is for security reasons. You would need to identify the URLs which are problematic and use that add-on to adjust them. The only other solution is to do it manually.
 
perfect! it worked!

i used:

Code:
[IMG]http://mywebsite
#\[IMG]http://(mywebsite\.com/[^[]+)\[/IMG]#siu
[IMG]https://\1[/IMG]

&

Code:
[IMG]http://www.mywebsite
#\[IMG]http://www\.(mywebsite\.com/[^[]+)\[/IMG]#siu
[IMG]https://\1[/IMG]


i had many images so it took a while to scan, had to scan several times, but they are changed,

tank you sir!
 
Top Bottom