• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Adding a custom placeholder for RsEvents Pro

Adding a custom placeholder for RsEvents Pro 11 years 8 months ago #24404

Good day! I'm new here, having recently purchased rsevents pro & rsform pro.

I'm setting up some events for our client, using a custom registration form made with rsform pro. I added the code to create a counter for each submission, and I'm wondering if it's possible to add a placeholder in the activation email from rsevents, so that when it's send, it tells the subscribe the counter number (I.E.: your ticket is number {counter})

Many thanks in advance!
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 11 years 5 months ago #25433

  • seal305
  • seal305's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Thank you received: 1
You can add any of your fields to the email. Go to User Email, open the editor and type:

You ticket number is: {counter:value}

As long as you have a field named "counter" on your form, it will appear in your email.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31423

  • Isengo
  • Isengo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 2
That sadly wont work...

Does anyone have an idea? I searched everywhere for {EventLink} or other placeholders - nowhere to find.

I just need 3 more placeholders for the registration email. I know this works for the emails in rsform, but not for the emails in rsevent - why is that btw? PLEASE SUPPORT!!!!!!!!
Last Edit: 9 years 10 months ago by Isengo.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31424

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
I am not sure where exactly have you searched for information, but if you take a look within the RSEvents!Pro - RSFOrm!Pro documentation, you will most likely find what you need:

https://www.rsjoomla.com/support/documentation/view-article/700-rsformpro-rseventspro.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31425

  • Isengo
  • Isengo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 2
Well I checked it, but still doesn´t cover whats asked - question was "How can I add an custom placeholder". This just shows me that I can use a form to do what?
Last Edit: 9 years 10 months ago by Isengo.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31445

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
alexp wrote:
I am not sure where exactly have you searched for information, but if you take a look within the RSEvents!Pro - RSFOrm!Pro documentation, you will most likely find what you need:

https://www.rsjoomla.com/support/documentation/view-article/700-rsformpro-rseventspro.html

I don´t get this explanation either. So what to do? This won´t create a custom placeholder tho.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31448

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
You actually don't need a custom placeholder for the RSForm!Pro related fields, simply because you can now override the RSEvents!Pro emails with RSForm!Pro ones (that can include its specific placeholders).
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31449

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I do not get the idea here. Since you can use the RSFORM Pro user and email for registration, how does this help me using special fields in my RSEVENT. I think I am missing something.

I installed the Plugin - with newest Event and Form Pro - add a new Form and choose user and email for additional field. Then I use this form in RS Event and use overrides in RS Form. Am I following right here?
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31450

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
My understanding is that you need to use some of the RSForm!Pro placeholders within RSEvents!Pro generated emails.

If you take a look at the documented article you will notice that using the RSForm!Pro - RSEvents!Pro integration plugin you can override some of the RSEvents!Pro emails with RSForm!Pro - basically instead of delivering the RSEvents!Pro Registration Email, the one configured in RSForm!Pro will be sent instead. The good part is that there you can use RSForm!Pro placeholders.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31452

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Yes indeed. But the plugin is for "custom subscription forms" - so I have no form for subscription. I only have users that attend to some events. The just click on "participate" and login with their Login & Password.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31453

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
There is no easy way of adding a new placeholder. You will need to perform source code modifications. We generally don't recommend this as it may affect the overall functionality and the changes will be lost upon performing an update.

For your specific case, you would need to edit the following file:

components/com_rseventspro/helpers/emails.php

Notice the "placeholders" function.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31454

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
That was what I was looking for. Well I am working on my own component right now, since I need specific fields and other mailfunctions. But now I found what I was looking for - thanks a lot!
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31455

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
$search = array('{EventName}','{EventLink}','{EventDescription}','{EventStartDate}','{EventStartDateOnly}','{EventStartTime}','{EventEndDate}','{EventEndDateOnly}','{EventEndTime}','{Owner}','{OwnerUsername}','{OwnerName}','{OwnerEmail}','{EventURL}','{EventPhone}','{EventEmail}','{LocationName}','{LocationLink}','{LocationDescription}','{LocationURL}','{LocationAddress}','{EventCategories}','{EventTags}','{EventIconSmall}','{EventIconBig}','{EventAnrede}');
$replace = array($event->name, $eventlink, $event->description, $startdate, $sdate, $sdatetime, $enddate, $edate, $edatetime, $event->ownername, $owner->get('username'), $owner->get('name'), $owner->get('email'), $event->URL, $event->phone, $event->email, $event->location, $locationlink, $event->ldescription, $event->locationlink, $event->address, $categories, $tags, $details, $details, $event->anrede);


Just adding it sadly won´t do the trick. Any ideas?

What would you recommend? So i don´t loose integrety and can still update etc.?
Last Edit: 9 years 10 months ago by info8139.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31462

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
From what i can see, you are trying to replace the new placeholder with $event->anrede. Are you sure that this property exists ? (this is not standard)

I assume that you actually trying to add a new field as an event property. This too would require extra modifications to the source code (not to mentioned database structure).

This implementation does require source code changes and advanced scripting knowledge.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 10 months ago #31464

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I assumed since the Dbo connection already exists I just have to add it there. The field "anrede" is already in my Database. Actually I am using an RSFORM to fill the Event Database - my Costumers "passively" create an event - its not approved till I activate it. I call them - they agree and I activate it (all the options etc. go with the SQL Mapping function from RSForm Pro). Then the user apply for the events.

So I just need some custom fields AND placeholders for my Event. SQL Mapping etc. is not the problem. My problem is the code - it takes a lot of time to search all the PHP files to find the right codesnippets I have to manipulate.

But maybe others have the same problem and this helps them too.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 9 months ago #31568

  • Isengo
  • Isengo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 2
alexp wrote:
From what i can see, you are trying to replace the new placeholder with $event->anrede. Are you sure that this property exists ? (this is not standard)

I assume that you actually trying to add a new field as an event property. This too would require extra modifications to the source code (not to mentioned database structure).

This implementation does require source code changes and advanced scripting knowledge.

Okay I worked arround and built my own extension, using the existing table from RSEVENT. But this is just too much work around...
$search = array('{EventName}','{EventLink}','{EventDescription}','{EventStartDate}','{EventStartDateOnly}','{EventStartTime}','{EventEndDate}','{EventEndDateOnly}','{EventEndTime}','{Owner}','{OwnerUsername}','{OwnerName}','{OwnerEmail}','{EventURL}','{EventPhone}','{EventEmail}','{LocationName}','{LocationLink}','{LocationDescription}','{LocationURL}','{LocationAddress}','{EventCategories}','{EventTags}','{EventIconSmall}','{EventIconBig}','{EventStatus}');
			$replace = array($event->name, $eventlink, $event->description, $startdate, $sdate, $sdatetime, $enddate, $edate, $edatetime, $event->ownername, $owner->get('username'), $owner->get('name'), $owner->get('email'), $event->URL, $event->phone, $event->email, $event->location, $locationlink, $event->ldescription, $event->locationlink, $event->address, $categories, $tags, $details['image_s'], $details['image_b'], $event->status);

Change this in the emails.php
Edited this in the placeholders.php
'{EventStatus}' 			=> 'COM_RSEVENTSPRO_EVENT_STATUS'

But it won´t find my status field in my events table. Can you place give me a hint. I already replaced the $event->status with $event->name and it does the trick with the Placeholder. I just need to initialize or add my field.
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 8 months ago #32116

  • info8139
  • info8139's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
alexp wrote:
From what i can see, you are trying to replace the new placeholder with $event->anrede. Are you sure that this property exists ? (this is not standard)

I assume that you actually trying to add a new field as an event property. This too would require extra modifications to the source code (not to mentioned database structure).

This implementation does require source code changes and advanced scripting knowledge.

Well instead of explaining that it´s tricky, you might wanna suggest a solultion here? Never been so unsupported with a well paid Component...
The administrator has disabled public write access.

Adding a custom placeholder for RsEvents Pro 9 years 8 months ago #32118

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
info8139 wrote:
Well instead of explaining that it´s tricky, you might wanna suggest a solultion here? Never been so unsupported with a well paid Component...

In case you haven't noticed the big message above every forum thread:

"Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!