Skip to Content Skip to Menu

cb latest activity replacement

10 years 8 months ago - 10 years 8 months ago #241608 by thewebsurfer
cb latest activity replacement was created by thewebsurfer
hi, i want to try to replace the exactly behaviour of cb latest activity module in jumi
what im trying to do? i want to make my own ajax latest activity module, if it's possible.
could you tell me the usage of CB API for retrieve avatar, username, time, activity (i have language vars so i need CB API, i cant just query the db)
Last edit: 10 years 8 months ago by thewebsurfer.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #241665 by krileon
Replied by krileon on topic cb latest activity replacement
I've no idea how the Jumi module works so I'm not sure what you're wanting exactly. Can you better describe what it does? Is it pulling activity from CB Activity or from Jumis own database table? If CB Activity you can use the module included with CB Activity.

Regarding API usage your module needs to first include CB API, which is explained in the below tutorial.

www.joomlapolis.com/support/tutorials/120-api-usage/18357-including-cb-api-for-usage-outside-of-cb

Once done you need to use the getFields API to grab a users avatar field, formatname field, or whatever field you're wanting. Below tutorial explains how to use getFields API.

www.joomlapolis.com/support/tutorials/120-api-usage/18361-obtaining-field-values-through-getfields-api

There's also several of our modules like CB Activity module or CB GroupJive module that can be used as examples.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

10 years 8 months ago - 10 years 8 months ago #241707 by thewebsurfer
Replied by thewebsurfer on topic cb latest activity replacement

krileon wrote: I've no idea how the Jumi module works so I'm not sure what you're wanting exactly


jumi its just a component who allows you to create a new component (or module) with custom php code.
so i want just clone the cb latest activity module code in a new php script, obiouvsly copy/paste doesnt work, but i cant see the errors generated, i cant set on display_errors var.
Last edit: 10 years 8 months ago by thewebsurfer.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #241723 by krileon
Replied by krileon on topic cb latest activity replacement
You'll need to review the modules source. I have no idea if it's going to work with Jumi or not, sorry.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum