Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Timeline Post Jr5
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/09/13 22:59 
Hi , i have currently created a small module and i want the action of that user posted to his timeline.

whats the best way in doing it?

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 10/10/13 03:22 
You need to add 'action support' to the module's init function =

jrCore_register_module_feature('jrCore','action_support','ahModule','create','item_action.tpl');
jrCore_register_module_feature('jrCore','action_support','ahModule','update','item_action.tpl');

The item_action.tpl then goes in the module's templates folder.

Take a look at any of the other modules with action support (jrAudio, jrVideo etc.) to get the idea.
hth
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 10/10/13 03:24 
Forgot - You also need this in the module's create and/or update _save functions -

// Add to Actions...
jrCore_run_module_function('jrAction_save','create','ahModule',$id);


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.