Jump to content

MSP01

Members
  • Posts

    90
  • Joined

  • Last visited

Everything posted by MSP01

  1. Does anyone know if using SMTP user without a password is a problem? Authentication is taken care of by something else in this case.
  2. @adrian Unfortunately no. Tech support from the hosting company was also quite sure that the information we've entered is correct.
  3. We are getting the "WireMailSmtpConfig: ERROR: SMTP settings did not work" error with these settings (real address replaced with ***). Local hostname: www.***.com SMTP Hostname: ***.mail.protection.outlook.com SMTP Port: 25 SMTP User: (required to be left empty) SMTP Password: (required to be left empty) Use START-TLS: Yes Authentication is made using something called O365 (assuming it means Office 365). Could this be the reason nothing works? Does WireMail: SMTP even work with user and password left empty? What does the Authentication Mechanism stand for? An IP address? In the front end when trying to submit from by Formbuilder I get "Notice: Undefined index: replyToName in ***.com/httpdocs/wire/core/WireMail.php on line 319
  4. The problem is probably "Valid OAuth Redirect URIs" field in which you can find under Facebook Login in the app menu. Problem is, the URL for each page is different. How does one use dynamic URL for something like this? Perhaps the maker of the module can enlighten us.
  5. Hi, All these settings are already correct. Another module (login-facebook) is working just fine. -Hurme
  6. I guess I just solved this myself. I needed to use get instead of find in the: $removeParticipant = $eventPage->eventParticipant->find("eventParticipant_deletekey=".$removeKey); Or possibly use the include=hidden. Oh well. It works.
  7. Hi, The input part is working fine, and gets passed to a form the user will use to confirm the deletion. A hook is ran when confirmation form is submitted, but frankly I'm very much stuck with actually deleting the repeater item part. $forms->addHookBefore('FormBuilderProcessor::saveForm', function($event) { $sanitizer = wire('sanitizer'); $page = wire('page'); $pages = wire('pages'); $form = $event->arguments(0); if($form->name != 'removesubmission' && $page->template != 'removeSubmission') return; $removeKey = $form->getChildByName('remove_deletekey')->value; $eventPage = $pages->get('template=event, eventParticipant.eventParticipant_deletekey='.$removeKey); if (!empty($eventPage->id)) { $eventPage->of(false); $removeParticipant = $eventPage->eventParticipant->find("eventParticipant_deletekey=".$removeKey); $eventPage->eventParticipant->remove($removeParticipant); $eventPage->save(); } }); There's lots of stuff missing still. But right now I'm just trying to kill the repeater (eventParticipant) item. So a deletekey gets passed from input into the confirmation form. This is picked up in the hook ($removeKey). The correct page and repeater item are found. But how do you actually delete the item? I've been looking into it for several hours now and no luck. The form runs, no errors, but nothing happens either.
  8. Hi, We have a simple submission form where people can sign up. This sends an email to the person signing up. To allow submitter to remove themselves we sen a link with randomized unique ID along with the email. This unique ID is also part of the repeating field. How would one use an external link like this to either delete or disable one of the fields in a repeating field? Should we make a page that catches the ID and runs a hook based on that, or is there a better way?
×
×
  • Create New...