Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Adding Posts to activity through code

6 years 3 months ago
Licenses:
JomSocial Active

Hi,

I would like to add posts to the activity stream from an external script. Can you please point me in the right direction of the developer documentation on how to do this?

I have figured how to add through adding rows into ##_community_activities but I can't seem to figure out the params column.

Regards
Taki

6 years 3 months ago
Licenses:
JomSocial Active

There is API that should be used. More here:
documentation.jomsocial.com/wiki/Plugin_Tutorials
documentation.jomsocial.com/wiki/Developers_Documentation
and this one that is what you need for adding custom activities
documentation.jomsocial.com/wiki/Stream_API_v2
so you dont edit db manually and maintain compatibility.
Good luck :)

The following user(s) said Thank You: Michał, Takalani
6 years 3 months ago
Licenses:
JomSocial Active

perfect!!!!

Thank you very much!!!!

6 years 3 months ago
Licenses:
JomSocial Active

This worked well.

I see CParameter(''); seems to be the parameter object. How do I add it when creating a new post with CActivityStream::add('');?

6 years 3 months ago
Licenses:

HI.

As much as I'd love to help, your request is beyond what we're able to do for customers.
Our Technical Support do not covers development inquiries.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
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