By Mist on Wednesday, 03 September 2014
Posted in General Issues
Replies 5
Likes 0
Views 1.1K
Votes 0
Hi guys, i have a quick question

I am trying to edit some comments as administrator but for some reason i can't find any way to add attachments to those comments i edit.

Currently, there is no way the administrator can edit a comment and add attachments to it ?
I looked also in backend and didn't find any solution for this.
Hello Mist,

Here are some workaround for your migration process. First, you have to upload the file using this: Komento::getHelper( 'file' )->upload( $file );
The $file must be in array where the value are:

// $fileItem['name'] = filename
// $fileItem['type'] = mime
// $fileItem['tmp_name'] = temporary source
// $fileItem['size'] = size


This will return you Upload Table ID which later will be used to assign the attachment to the comment.

Then here, you will have to assign the attachment to the comment:

$filehelper = Komento::getHelper( 'file' );
$state = $filehelper->attach( $id, $commentObj->id );
}


* $id is the ID returned when you upload the file previously. $commentObj->id is the id of the comment you want to assign the attachment to.

Please give it a try. Hope this helps.
·
Monday, 08 September 2014 11:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

We're sorry. Currently only frontend able to upload attachments. We will definitely discuss this with our developers.
·
Wednesday, 03 September 2014 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, but also on frontend there is no option to add attachment to a comment when editing. As administrator i try to edit some comments on frontend but i can't see any way to edit them and add attachments.
·
Wednesday, 03 September 2014 19:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

I'm sorry for the misunderstanding. What I mean is there is only frontend able to use the upload feature. Yes, user not able to edit the attachment. User has to delete and re-enter the comment with other attachment. Maybe we did miss this feature during development. Thanks for reporting in.
·
Thursday, 04 September 2014 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is our whole dilemma, maybe you guys can give me a best approach for this

We wrote a custom migration script that will migrate some IPB content (forum posts) into Komento system. Everything is working perfect except that we hit a dead end with the attachments. Currently we are migrating the post content without attachments.

My first solution was to edit the migrated comments inside Komento (those that should have attachments) and insert the attachments manually.

Maybe you guys can give me some advice on how we can "inject" the attachments using our script into Komento comments.
Maybe you know some "magic" we can apply to our script in order to migrate also the attachments together with comment content (text).

Thanks again !
·
Sunday, 07 September 2014 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post