Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Email Notifications to Admin & User on New Event Created

9 years 11 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Posts: 26
  • Thank you received: 4
Licenses:
JomSocial Expired

Hi, important question: does Admin and User gets any email notifications when User creates a New Event?

If not, how / where can it be done in templates override (if possible) or controller, etc.

thanks

9 years 11 months ago
Licenses:

Hi Vlad,

Sorry, dont' have for now. Only invited user will get. is a big effort to make it.
you can create event at stream, so all users can see it.

for reference:
www.jomsocial.com/jomsocial-developers

Regards,
Albert

9 years 11 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Posts: 26
  • Thank you received: 4
Licenses:
JomSocial Expired

where are in the code are the confirmation messages disposed (triggered) -- such as "Event Created...", "Event updated.."?
=> so that I can customize it and send confirmations to user and admin.
thanks

9 years 11 months ago
Licenses:

Hi Vlad,

for event, jomsocial/components/com_community/controllers/events.php line 1511 for new event and line 1761 for event update.

I hope this can help you.

Regards,
Albert

9 years 11 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Posts: 26
  • Thank you received: 4
Licenses:
JomSocial Expired

Instead of modifying controller -- do you have any triggers I can use to add email notifications there? If so, which triggers and how.
thanks

9 years 11 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Posts: 26
  • Thank you received: 4
Licenses:
JomSocial Expired

I think it's essential for an admin to get email notifications on New Event created. Just to share my hack - so maybe others will benefit:
* Modify this files (as per jomsocial support hint): /components/com_community/controllers/events.php - around line 1539:
* right after the line: $message = JText::sprintf('COM_COMMUNITY_EVENTS_CREATED_NOTICE', $event->title);

/* Custom: send email to admin */
$mailer = JFactory::getMailer();
$sender = array('This email address is being protected from spambots. You need JavaScript enabled to view it.', 'Yoursite.com');
$mailer->setSender($sender);
$recipient = array( 'This email address is being protected from spambots. You need JavaScript enabled to view it.', 'This email address is being protected from spambots. You need JavaScript enabled to view it.' );
$mailer->addRecipient($recipient);
$mailer->setSubject('New Event Created: '.$event->title);
$mailer->setBody('New Event Created: '.$event->title.' - See it here: '.$url);
$send = $mailer->Send();
/********** end custom mailer **************/

9 years 11 months ago
Licenses:

Hi Vlad.

my suggestion only at that controller. to triggers it you must now about JUtility::sendMail, this is joomla library.
stackoverflow.com/questions/13877432/joo...l-sender-email-issue

Regards,
Albert

9 years 11 months ago
Licenses:

Hi Vlad,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

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