Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How 2 send registration Emails without creating a user account 4 years 2 months ago #25539

Please excuse, I'm not so familiar with JEM.
I did not want to force user registration 4 every potential customer.
my XMAS wish is:
the user of my site should have the ability 2 release a registration Email 4 every event.
If the amount of registration Emails is achieved, the registration button should be inactive.
How could I do this ?
Ps.:
OK, I will help 2 solve this problem by modifying some of the program sources, if anybody will give me some hints therefore.

Please Log in or Create an account to join the conversation.

Last edit: by franke12359.

How 2 send registration Emails without creating a user account 4 years 2 months ago #25540

Hi, welcome on this forum.
I think, you need some infos from the poster (for security reasons too). But you can use the contact form adding joomla custom fields into this contact form. I posted some form to show how to integrate a gorm from an ither extension. The only problem is that the counti g ofattending persons is not automatic. BREEZING FORMS
(I mean, if all users and robots could register for an event, you will get a lot of problems!)

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.

How 2 send registration Emails without creating a user account 4 years 2 months ago #25557

Hello again,
I've solved this problem by useing the joomla contact formular with little modifications.
Note: this is only usable 4 a vary low number of events and attendees
1.step:
adding a Module: mod_custom_advanced
and put some custom php code into there:
inserting the button with a link 2 the contact formular.
if (stripos($_SERVER["REQUEST_URI"], '/event/') !== FALSE) {
echo '<script>
var regi = document.querySelector("div#jem div.register");
regi.lastElementChild.lastElementChild.innerHTML = '."'".
'<a href="ueber-mich/kontakt?event='.
preg_replace('/.*\/event\//', "", $_SERVER["REQUEST_URI"])
.'"><button>über das Kontaktformular</button></a>'."'".';
</script> ';
}

2. step:
modifying the contact formular 2 insert the event as subject and a special comment.
if (stripos($_SERVER["REQUEST_URI"], '?event=') !== FALSE) {
echo '<script>
var uebsch = document.querySelector("#contact-form fieldset legend");
uebsch.innerHTML = "Anmeldung bzw. Abmeldung zum Event. Bitte den Betreff nicht ändern.";
var betre = document.querySelector("#jform_contact_emailmsg");
betre.setAttribute("value", "event: '.
preg_replace('/.*?event=/', "", $_SERVER["REQUEST_URI"])
.'");
</script>';
}

The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Last edit: by jojo12. Reason: code in right format

How 2 send registration Emails without creating a user account 4 years 2 months ago #25559

Hi, thanks for your post.
A question: is mod_custom_advanced a special module, you have to download from anywhere. Is it secure?
Doesn't adding custom fields in contact form with new core custom fields?

Please Log in or Create an account to join the conversation.

How 2 send registration Emails without creating a user account 4 years 2 months ago #25563

Hello,
I use this extension since a couple of years with several joomla sites.
www.pluginaria.com/custom-html-advanced.html
I hope that this code is secure. Who knows what is totally secure today ?
I did not use custom fields in the contact form. All changes are made with js.
And meanwhile there are additional js and css code 2 beautify the site.
Attachments:
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Last edit: by franke12359.

How 2 send registration Emails without creating a user account 4 years 2 months ago #25574

Due 2 security reasons I've solved this only with JavaScript.
In that manner we have the chance to use the easyest way to get the code to the browser.
First step: place the mail button into the event page.
<script type="text/javascript">
// JEM Anmelde- Button
var hrefa = window.location.href;
if (hrefa.indexOf("/event/") > 0) {
var regi = document.querySelector("div#jem div.register");
regi.innerHTML = 
"<a href=\"" + hrefa.substring(0, hrefa.indexOf("index.php")) + 
"index.php?option=com_contact&amp;view=contact&amp;id=1&amp;event=" + 
hrefa.substring(hrefa.indexOf("/event/") + 7, 1000) + 
"\"><button>Anmeldung per Mail</button></a>";
document.querySelector("div#jem h2.register").style.display = "none";
}
</script>

2.nd Step: modifying the contact form 2 preload the subject
<script type="text/javascript">
// Betreff eintragen
var hrefm = window.location.href;
if (hrefm.indexOf("event=") > 0) {
var uebsch = document.querySelector("#contact-form fieldset legend");
if (uebsch != null) {
uebsch.innerHTML = "Anmeldung bzw. Abmeldung zur Veranstaltung.";
document.querySelector(".contact-miscinfo").style.display= "none";
var betre = document.querySelector("#jform_contact_emailmsg");
betre.setAttribute("value", "event: " + hrefm.substring(hrefm.indexOf("event=") + 6, 1000));
betre.setAttribute("disabled", ""); }
}
</script>

@franke12359: it's better to use the code display for code! (see image)
Attachments:
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.
  • Page:
  • 1
Time to create page: 0.489 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......