That would be wonderful and maybe simpler compared with my fringe suggestion![]()
I had a think about this, it's essentially the same as disabling instant rehosting, and having the cron job running. So I'd suggest you see if that fixes the problem.
That would be wonderful and maybe simpler compared with my fringe suggestion![]()
http://local.metabunk.org/proxy.php?image=http%3A%2F%2Fclassroomclipart.com%2Fimages%2Fgallery%2FAnatomy%2FTN_anatomy_heart.jpg&hash=25fe48ec245c0de2180142c637102d69
Thanks for explaining @Mick West . I wonder if there would be any conflict if I turned MM of for certain forums (Exclude Forums) and turned on the XenForo Proxy feature.
I have a small request, for your consideration; could you maybe make the "Exclude Forums" option a selectable forum list. Users could easily select them from the list. Currently If one had lots of forums to exlude it would be hard to track them from their ID.
When I switched to my subdomain, all of my reshosted images on the CDN broke. I've updated my config.php and origin URL, but no luck.
My understanding was that if I disabled my CDN (config.php), the images would revert to the local data folder?
What's the fastest and easiest way to fix all of the broken image URLs?
MetaMirror edits the url in the post when it rehosts. So if you change where the images are you need to update the urls in the posts.
Probably the best way to do this is to use the Post Content Find / Replace
http://xenforo.com/community/resources/post-content-find-replace.1549/
THis is a little bit bad. It should only store the relative URLs!
Then it would have to dynamically update them at run time, more complex, extra DB query. You can use the 1.3 Proxy system for that.
You simply could store it as "data/metamirror/pic.jpg".
Since in Xenforo all content comes from index.php in the root directory, this will always be a correct, non-broken URL and would allow the forum owner to switch the domain, the protocol and/or even the install directory without having to "search and replace" each single post message in his database.
Storing the images as "http://www.domain.com/installdirectory/data/metamirror/jpg" is only necessary if the forum uses a CDN, which also never can be changed easily. Maybe some kind of BB-Media code would also work? Like IMG-META working like IMG, but translates the path to the current CDN (or local storage)? If someone decides to deinstall your add-on he simply has to have a simple BB media code which instructs XF to handle "IMG-META" like "IMG".
At least it would be perfect to include a (deferred) rename function which allows to update all posts, if someone decides to switch the CDN, domain name, install directory or to/from SSL.
We use essential cookies to make this site work, and optional cookies to enhance your experience.