Show all attachments in attachment box

nrep

Well-known member
When inserting an attachment directly into a post (i.e. Thumbnail/Fullsize inline), it stops that being displayed in the attachments box.

Normally that's fine, but in this instance I'd like all attachments to be displayed. Is there a way to do this using template edits?
 
Thanks for the reply :). I've started looking through the files to see if I can find where it is.
 
I've been searching for where this could be in the code for ages, but can't see it - has anyone come across it before? Any tips would be very welcome :D.
 
HINT: Take a look at these three view classes:
Code:
XenForo_ViewPublic_Thread_View
XenForo_ViewPublic_Thread_ViewPosts
XenForo_ViewPublic_Thread_ViewNewPosts

;)
 
Thank you so much, I've got it working via a manual file edit now - /library/Xenforo/ViewPublic/Helper/Message.php

I just needed to comment out this:

Code:
                        unset($message['attachments'][$attachId]);

Now I just need to figure out how to do this via an add-on rather than hard coding!
 
There's no way to extend view helpers.

When I tried doing this recently, I created a custom class with my code changed, and then eval'd a class with the name of the XF class extending my class.

It's incredibly hacky, and not recommended at all.

Liam
 
Back
Top Bottom