Forum Activity for @makuta

alt=
@makuta
11/27/14 03:15:45PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

Michael I want to thank you for your assistance. I figured out the issue with the module and fixed it. I had to change the event listener from

xxReviews_view_results_listener to xxReviews_daily_maintenance_listener

now it does the calculations I want. But I would only want it to do the update weekly. how would I have it do that?
alt=
@makuta
11/27/14 02:55:31PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

I get this message: [admin]: jrCore_trigger_event: defined event listener function does not exist: jdReviews_daily_maintenance_listener
alt=
@makuta
11/27/14 02:54:52PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

I made some adjustment to the array by doing the below, is that an appropriate way to use the function:

$new_total = $item['audio_chart1_point_count'] + $item['audio_chart2_point_count'] + $item['audio_chart3_point_count'] + $item['audio_chart4_point_count'] + $item['audio_file_stream_count'];
alt=
@makuta
11/27/14 02:20:13PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

Michael thanks for the xxReviews module it explains exactly what I was trying to do. I created a new module and added the variables to it. I do have a question though, if i want to have the data updated immediately instead of being triggered by the daily maintenance, how would I do that?
alt=
@makuta
11/27/14 12:49:10AM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

Thank you michael. I think this is a great start.
alt=
@makuta
11/27/14 12:34:49AM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

First thing I want to do is display the stream count and do the sum of two fields that display in a template.
alt=
@makuta
11/26/14 11:55:26PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

I looked at your suggestion but couldn't figure out how to actually implement it especially using the audio support module.

jrCore_register_event_listener('jrCore', 'weekly_stream', 'jrAudio_weekly_stream_listener');

// Event Listeners
jrCore_register_event_listener('jrCore', 'system_check', 'jrAudio_system_check_listener');
jrCore_register_event_listener('jrCore', 'stream_file', 'jrAudio_stream_file_listener');
jrCore_register_event_listener('jrCore', 'get_save_data', 'jrAudio_get_save_data_listener');
jrCore_register_event_listener('jrCore', 'db_search_params', 'jrAudio_db_search_params_listener');

jrCore_register_module_feature('jrSearch', 'search_fields', 'jrAudio', 'audio_title', 52);

jrCore_register_module_feature('jrProfile', 'profile_stats', 'jrAudio', 'profile_jrAudio_item_count', 52);
alt=
@makuta
11/22/14 11:36:55PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

This is what I want to do:

- Submit points in 2 fields (i.e. F1 (NYC Points) = 98 , F2 (SF Points) = 100 so F1 + F2 = F3 (Weekly Total)

- I want to save the sum of F1 and F2 automatically instead of manually doing the sum and inputting it in F3. I don't want the field to be editable.

- I want to be able to add the saved numbers to F4 which will take the overall count when every point is submitted.

(i.e. Week 1 - 98 + 100 = 198
F4 Total = 198

Week 2 - 100 + 100 = 200
F4 Total = 398

Since there is already a Audio Stream Count field, I want to be able to add the new numbers like when a song is played.

Is there a way to trigger the add function to sum the total from each field and add them to the audio stream count?
alt=
@makuta
11/21/14 09:02:59PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

how can I store data in a field then automatically add it to another field from a cronjob?
alt=
@makuta
11/17/14 01:20:09PM
38 posts

Module Relationships and Question about counting number entries in multiple fields.


Using Jamroom

I would like to make a booking module and I would want to use the private notes module as the basis for it. How can I use Form Designer to redesign the private notes module to add fiields I need for booking?
  2