Welcome, Guest
Username: Password: Remember me

TOPIC: How 2 send registration Emails without creating a user account

How 2 send registration Emails without creating a user account 3 weeks 3 days ago #25539

  • franke12359
  • franke12359's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
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.
Last Edit: 3 weeks 3 days ago by franke12359.
The administrator has disabled public write access.

How 2 send registration Emails without creating a user account 3 weeks 2 days ago #25540

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Posts: 2967
  • Thank you received: 299
  • Karma: 45
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!)
5.5.5-10.0.30-MariaDB-0+deb8u1
PHP 7.2.9 on different sites
Apache
JEM 2.2.3+ template overrides with JEM RESPONSIVE and specials with Joomla! 3.8.13 stable on livesites
ja_simply, ja_purity_iii, multilingual DE EN IT FR
Last Edit: 3 weeks 2 days ago by jojo12.
The administrator has disabled public write access.

How 2 send registration Emails without creating a user account 2 weeks 4 days ago #25557

  • franke12359
  • franke12359's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
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>';
}

Last Edit: 2 weeks 3 days ago by jojo12. Reason: code in right format
The administrator has disabled public write access.
The following user(s) said Thank You: jojo12

How 2 send registration Emails without creating a user account 2 weeks 3 days ago #25559

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Posts: 2967
  • Thank you received: 299
  • Karma: 45
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?
5.5.5-10.0.30-MariaDB-0+deb8u1
PHP 7.2.9 on different sites
Apache
JEM 2.2.3+ template overrides with JEM RESPONSIVE and specials with Joomla! 3.8.13 stable on livesites
ja_simply, ja_purity_iii, multilingual DE EN IT FR
The administrator has disabled public write access.

How 2 send registration Emails without creating a user account 2 weeks 3 days ago #25563

  • franke12359
  • franke12359's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
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:
Last Edit: 2 weeks 3 days ago by franke12359.
The administrator has disabled public write access.
The following user(s) said Thank You: jojo12

How 2 send registration Emails without creating a user account 1 week 6 days ago #25574

  • franke12359
  • franke12359's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 4
  • Karma: 0
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)
Last Edit: 1 week 6 days ago by jojo12.
The administrator has disabled public write access.
The following user(s) said Thank You: jojo12
Time to create page: 0.292 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......