I have a D7 site running with Organic groups, rules, VBO, panels, badges, private-message modules ... and a bootstrap sub-theme (js, jQuery update, ...) working in all browsers, ios & android, i need to alert users with a beep sound when new OG content is created (or any rules reaction). I google arround and some answers are based on JS (only browsers), other by HTML5, and some by CSS using a wav file, all very confusing. I'll apreciate how to handle it by a custom module, some code included will be very helpfull named beepsound module.
• Rules action: Loop: all OG group members, loop action: EMPTYsee code below
For rules action I suppose that I have to trigger some JS code in “my-module”, or just “play” a HTML5 audio tag, with mp3 or wav file, "my-module""beepsound module" must have UID variable to target a specific OG member.
Big cuestion is, how to implement “my-module” code actions triggered by rules?
EDIT: iI have manage to have my beepsound as an action in rules, it targets UID, it display a personalised message corectly, also, message is displayed 5 times (when tiggered when mycontentype is being viewed), meaning rule is triggered 5 times, here isare my module INC file-module code files, dot module file exist but is empty (and not displayed here), If i run this rule with current-user, it works (makes a beep), but not in my OG loop, what it is wrong?