MyBB Hacks

Full Version: Image Preview in Edit Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am using a template modification posted by RateU to show preview images of uploaded attachments. Link to modification

I received a report from a user that the preview function when editing a post only shows the new attachment image once the post has been updated (i.e. posted on the forum).

If they click preview post before that then the old image is still showing in the preview even though they have chosen a replacement image. It would make more sense if it showed the updated image, though I do realise they have not yet actually attached the replacement - only indicated they wish to do so. I was wondering if this would be something that I could change in the template or if it was part of the Xthreads code?
I can't seem to reproduce this with MyBB 1.6 and XThreads 1.32.
Did the modification, made a thread with an attached image, did a full edit.  Ticked the replace checkbox, selected a new image and hit preview post.  The new image displayed for me...
Ok Zinga, thank you. Its probably something in my editpost template then because as you can see from this thread I was confused from the start on this particular modification. I will work through it.
Reference URL's