Jump to content

elabx

Members
  • Content Count

    626
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by elabx

  1. The link I've been needing all my life thanks!
  2. elabx

    Get field id

    Try: https://processwire.com/api/ref/page/get-field/ $page->getField('Formattext01')->id
  3. Here I had thought you wanted the actual PHP code inside the function! lol
  4. ohhhhh got it! no idea man hahaha
  5. Hi @Joss !! What are you having trouble with? Most of the time I forget to call ProcessWire variables like this inside custom functions: $hanna = wire('modules')->get('TextformatterHannaCode')
  6. Does anyone know if there is a way to do this in Firefox?
  7. This looks like a reasonable approach! There is currently nothing like those tools you mention. What I've seen works for a lot of ProcessWire developers is to use the Repeater Matrix module to create content. Take a look here: https://processwire.com/store/pro-fields/repeater-matrix/
  8. About to purchase it now that I have a new computer because on my old one it just couldn't handle!
  9. Try adding: <?php namespace ProcessWire; ?> To the top of the file where that function is used and defined.
  10. I think it should be: $page->fixtures->find("team_a=$teamA,team_b=$teamB");
  11. https://processwire.com/docs/fields/dependencies/
  12. This is not possible right now, but it is definitely possible to implement, though I highly doubt Ryan would prioritize this right now, you have a better chance giving it a shot yourself editing the module's code and setting up the role/permissions yourself.
  13. I think this might be the issue, LoginRegister supports starndard fields. At least says so in the description of the "Registration form fields" field, in the module's configuration.
  14. In what context are you trying to output it? Do you mean in a tempalte, after "first login"? Could I see some code?
  15. What have you tried? Have you tried any of these suggestions?
  16. Take a look at what the payment gategay sends as a response in the return url and use that to check true a "Paid user" field in the user. $user->of(false); $user->paid = true; $user->save('paid'); Here I asume you already got $user with data you got on the return url.
  17. Just to be clear, I was refering to FormBuilder's Stripe integration. So you'd have to consider that also. I have not used the payment feature with Stripe, so I couldn't tell you more details on how to implement this, but here is a pretty nice documentation page: https://processwire.com/store/form-builder/stripe/#hooks-reference. So a hook on chargeSuccess, chargeFail should help you implement what you want. Or, another option I guess (maybe even more reliable?), could be using Stripe's webhooks. Add a checkbox field to the user template, that's what I meant.
  18. I'd use LoginRegister module for registering the user, and then taking them to a form with FormBuilder that later basically just flags the user as paid (on a checkbox field for the user template) on a hook after payment. EDIT: Just re-read that you want the users to pay first before actually registering them, I'd still try to find a way to use FormBuilder to simplify the payment part and just use hooks to validate the form and create a user.
  19. Or a query param if you set the forms to use the url params? Otherwise sound like a plan, check for a specific email and just update the form settings you need to, before processing. I haven't really been exactly in your scenario, but a hook does feel like the best option here and have used hooks extensively to hack form builder and works wonders. I then use either a chrome extension to fill the forms, for example this extension always uses the domain "xxx@mailinator" . Or write a small javascript that fills the forms and I call it from the browser console if i need more control.
  20. Wow I hadn't done this and realize there's a lot of good stuff i didn't know about!
  21. Silly question but, have you included the javascript library?? Also maybe just another silly mistake, but you point to UIKit v2 tutorials, shouldn't you be looking for UIkit v3 tutorials? I've been using all most of UIkit as my go-to library on a lot of projects now, really includes most of the stuff I had to glue up one time or another with different js libraries . I wish they had kept the "per component javascript file" , now everything is bundled. I remember it used to be the other way around.
  22. https://processwire.com/api/ref/sanitizer/ I think this docs page documents it pretty well!
  23. Check Padloper
×
×
  • Create New...