By muhanad on Tuesday, 10 June 2014
Posted in General Issues
Replies 5
Likes 0
Views 788
Votes 0
Dear Team,

We are still waiting for events and videos to be designed in order to switch from jomsocial but while we wait, we have always wanted to be able to allow our students/staff to attach some files on the stream for others to view or download

the question is, how hard is to add this feature??


Thanks
Hello Muhanad,

It's not that hard actually but it's tedious I would say. We already have a "file app" for groups but that serves as a "file browser" within a group. Like what you have mentioned, we do have plans to include file support in the story form in the future
·
Wednesday, 11 June 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Yes it's in the groups but having it in the stream serves other need. someone might use easysocial for employees communication or students uploading notes .. etc

since its in your plan , but i doubt its going to be in 1.3 version, my question is, would developers be able to add this feature without hacking the code? is there an app for it?


Regards,
·
Wednesday, 11 June 2014 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, our story form is developed in this way. In fact if you play with the group's task app, (it's attaching a form on the story)
·
Wednesday, 11 June 2014 22:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

So what you are saying is that the tasks tab in the story form the one the attached image is not in the core group function and it's just an app? so it would be easy for developers to add new options to the story form just like tasks, polls, reviews .. etc ?


Regards,
·
Wednesday, 18 June 2014 05:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, exactly The workflow is pretty simple (If you need to elaborate to your developer), in the app you need these logics

1. onPrepareStoryPanel (This is where you tell EasySocial you want to attach a new panel on the story form)
Look at the codes in /media/com_easysocial/apps/group/tasks/tasks.php

2. onBeforeStorySave (This is where you detect the $_POST data and save into your own table)
Look at the codes in /media/com_easysocial/apps/group/tasks/tasks.php

----- Optional if your story post displays a stream item -----

3. onPrepareStream (This is where you manipulate how a stream looks like)
Look at the codes in /media/com_easysocial/apps/group/tasks/tasks.php
·
Thursday, 19 June 2014 00:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post