solved "Attach file" to posts not working

Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
The "Attach file" Jamroom function is working properly in Forum discussions, but it's not working in Group discussions, on group or profile page Comment Walls, or in comments on videos, photos, or audio clips.
It shows the file being added and loaded just fine, but then the file does not appear when the post is made, and there is no trace of the attachment process when looking in the post's html code view.

In forums, the JR "attach file" button is on the left underneath the Tinymce textbox. This works fine in the Forum Discussions.
Everyehwere else as mentioned above, the Attach button is on the RIGHT underneath the tinymce box...and in all those instances it is not functioning. (seems to be for all 'comments' site-wide...including group discussion posts which are technically 'comments' as well, correct?)

I don't know if this is happening for others too, or just on my site due to custom tweaks or something.

My members are getting a bit peeved about it now... =8-*
Thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 01/27/16 08:38:38PM
michael
@michael
10 years ago
7,822 posts
First guess: The default template got updated, but your using a custom template, so something needs to be added in to make it show.

But that's just a hunch, I'll go test to see if its working on a default system.
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Michael, have you had time to test this out yet? Thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
This is actually happening site-wide for ALL comments on my site...see my first post, which I have now edited. The only place the Attach function is working for me is in 'forums' posts.
Thanks....


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
10 years ago
10,149 posts
We use the "Attach File" all the time here on Jamroom.net and I'm not aware of an issue. Are you getting an error?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
No, no error. The file uploads from my computer and seems to be there completed just fine, and it shows in the tinymce editing box too. But then when post is actually posted, the post is there but without the attachment. And no trace of the attachment in the html code view of the post.

Note: it's working fine in Forum posts, so it would work fine on the Jamroom forums here in any case. Seems to be tripping up in 'comments'...(which includes Group discussion posts).




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 10/29/15 11:04:27AM
brian
@brian
10 years ago
10,149 posts
If you go into the DataStore browser do you see that the file keys were created for the item?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Seems to be created- (i hope this is what you are referring to):
browser.jpg
browser.jpg  •  327KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 10/29/15 11:08:13AM
brian
@brian
10 years ago
10,149 posts
Yep - that means it is just a display issue then - the file is being uploaded and saved correctly.

Is this on specific comments (i.e. Group Discussion, etc.) or is it site wide for all comments?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
See my first post up top for where it's occurring.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Hmm, if it's just a display issue, then why would there be no trace of the attachment in the html code of the finished post?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
10 years ago
10,149 posts
Strumelia:
See my first post up top for where it's occurring.

Sorry - so it looks like system wide on Comments.

I have a feeling you have a custom jrComment/templates/item_list.tpl file - if you do, you want to make sure the function for showing the uploaded files is in your template:

{jrCore_get_uploaded_files module="jrComment" item=$item field="comment_file"}

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Do i put that right in the jrComments module item_list.tpl template, NOT in a template in my custom skin...correct? (because I notice I have an item_list.tpl in my custom active skin as well)

Where exactly do I insert this in the item_list.tpl template code?



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 10/29/15 11:30:21AM
brian
@brian
10 years ago
10,149 posts
Strumelia:
Do i put that right in the jrComments module item_list.tpl template, NOT in a template in my custom skin...correct?

Where exactly do I insert this in the item_list.tpl template code?

You can use the "compare" tool to see where we have it in the default template.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
I notice I have an item_list.tpl in my custom active skin as well, so will this conflict? Should I do it in both item_list.tpl templates? (the one in my Comments module and the one in my active skin)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Brian, I see the code in my jrComments module: in jrComment/item_list.tpl (1.6.0), and I can add it to my own custom one.
But do I need to try to do this as well in my custom active skin item_list.tpl ? or should I leave that template alone?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
10 years ago
10,149 posts
Strumelia:
Brian, I see the code in my jrComments module: in jrComment/item_list.tpl (1.6.0), and I can add it to my own custom one.
But do I need to try to do this as well in my custom active skin item_list.tpl ? or should I leave that template alone?

If you have a file called "jrComment_item_list.tpl" in your active skin directory then yes - that is where it needs to be added.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
oh, i see- NO, I dont have that file in my skin, only a file called item_list.tpl...so yeah, let me go do this in my jrComments module...BRB!

(backing up modules and skins first...lol)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 10/29/15 11:44:45AM
brian
@brian
10 years ago
10,149 posts
The priority order for JR module templates is:

1) Is there an active custom version of the template in the DB (i.e. modified from the "templates" tab of the module in the ACP)

2) Is there a skins/ActiveSkin/ModuleName_template_name.tpl file - this allows the skin to "override" the default module template from the file system

3) finally use the default modules/ModuleName/templates/template_name.tpl file

Just an FYI...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
YES!!! all fixed now...what magic! =8-D

big hug to you thank you!!!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
10 years ago
10,149 posts
Glad to hear it. Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
I see what you are saying about the priority- always a slippery issue in my brain.

Mucho merci beaucoups! All is well now with this issue. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015