ISSUE SUMMARY:
I want to upload HTML tag in jomsocial status is that possible?
And can I just use your status/post box in some other component?
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi tarun,
#1 by default that is forbidden, we restrict any html code..actaully we make it to avoid any hijack code on your site.
#2 I am sorry we dont have API for update status
If you wanna this feature you need hire 3rd party developer and hack jomsocial code.
thank you!
So far I can update a status using stream API
can I give links in the status to my other component?
Hi Tarun,
ah I see, if you wanna put the sharebox to your component is not possible, but if you wanna just add new stream from your component that is possible, please you read this
documentation.jomsocial.com/wiki/Stream_API_v2
thank you
I have read the stream api and used it as well can you show me more examples of it.
And in the Wall System it says i can add comments from 3rd part component how do i get the unique id can you please elaborate more on it.
how can i add links in the stream api plz suggest
#1 I think on that doc you already get the full example, I cant give you the better example than it :)
#2 what do you mean with the comment 3rd party? can you elaborate more please?
#3 to add html code and link on the stream you can put it on content variable, you can add it like this :
$act->content = 'Your activity content, <a href="YOURLINK">click here</a> to see the detail';
I have a directory component where we can write reviews for company i want to post that review as a status
For now I am using Stream Api,I have written a plugin to for achieving.Is this the right way to do it?
If i want to add images to the status/post from the plugin.
can i do something like this
$act = new stdClass();
$act->cmd = 'company.review';
$act->actor = $my->id;
$act->target = 0;
$act->title = 'string';
$act->content = 'MY review';
// Pay close attention on this
$act->app = 'example.action';
$act->access = 10; // 10 = Public; 20 = Site members; 30 = Friends Only; 40 = Only Me
$act->cid = 0;
CFactory::load('libraries', 'activities');
$act->comment_type = $command;
$act->comment_id = CActivities::COMMENT_SELF;
$act->like_type = $command;
$act->like_id = CActivities::LIKE_SELF;
$act->attachments = array();
$attachment = new stdClass();
$attachment->type = 'album';
$act->attachments[] = $attachment;
CActivityStream::add($act);
Bit tricky if you wanna put image on the stream, it can be impossible, our stream API only provide the simple stream post..the easiest way is add the img html code inside content variable like I mentioned above :)
Ok and so is that photo going to be stored in the users profile ?
no, if you want you can use image from another source, its hard if you wanna implement with jomsocial photos, because we dont have the API for it
Ok thank you.
Is there any RESTfull api to get the streams
we dont have it for it, im sorry..