Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

html tag in jomsocial status

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

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

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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!

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

So far I can update a status using stream API
can I give links in the status to my other component?

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

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.

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

how can i add links in the stream api plz suggest

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

#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';

thank you!

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

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);

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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 :)

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

Ok and so is that photo going to be stored in the users profile ?

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

10 years 5 months ago
Licenses:
JomSocial Active iSEO Active

Ok thank you.
Is there any RESTfull api to get the streams

10 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

we dont have it for it, im sorry..

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW