Jump to content

opalepatrick

Members
  • Posts

    231
  • Joined

  • Last visited

Everything posted by opalepatrick

  1. Thanks @kongondo - in hindsight I should have resurrected the previous post.
  2. Probably nothing but I have gone around the houses, changed a lot of stuff, got a better understanding of what I am doing and come back to the same place... added images as I thought it may help explain better @kongondo
  3. I have a user template with a profield page table field for Businesses - this has a profield page table field for Addresses. The problem I have is that this does not populate the data in the addresses table. If I edit the empty row, the data is correct. The table column headers are correct. Any clues? Appreciated
  4. Been trying to get to griips with using RockTabulator to create grids today inside a Process Module. public function ___executeContactsPage(){ $finder = wire('modules')->get('RockFinder3') ->find("template=user,sort=surname,id>40") ->addColumns(['firstname','surname', 'linkedin']); bd($finder); $grid->setData($finder); return $grid; } The data is coming across fine, but I cannot work out how to define $grid - Undefined variable: grid. Any help appreciated Got myself confused between RockGrid and RockTabulator Actually the reason I was getting all the problems is that my version of PW was not working with RockFinder3, but I did not get the error message until I dumped the sql. Undefined variable: grid
  5. Strange - still not attaching the cid to the row. It is in a loop and I know it works as it is also in the data? *I spotted that in the options code it should read plural attrs
  6. Thank you @gebeer I stared at that for so long and just changed it to the shorthand version without thinking when looking at other code samples! Once again Thanks.
  7. Trying to get an id attribute to the row $table->row([$club->title, $club->id],['cid' => $club->id, $club->title, $club->club_status->title]); The attribute is cid in the options part of this row - the row is not getting tagged with the cid - Am I missing something? This is being used in a Process module. Everything else in both parts works fine.
  8. This has happened again on a completely fresh install. I suspect it has something to do with LoginRegisterPro but cannot prove it. I have taken into account all the things you mentioned above as well @wbmnfktr - Cannot work out why it seems to work fine for a while then stops working. I am going to move this over to the LoginRegisterPro forumas it appears to be responsible.
  9. Thanks a lot @wbmnfktr that is useful. I suspect a module but I cannot prove it :-)
  10. Ignore - I nuked it. I want to document what I did and be a bit more careful so I can report properly if I have an issue.
  11. I have seen many different responses for this problem, but none of the solutions work. This is a new install (the latest version) that has allowed me to log in as admin several times. But has stopped now. I have used the forgot password reset and I get exactly the same message - ProcessLogin: admin - Login failed I do not think I have installed new modules since the last successful login. Short of nuking it, I am fresh out of ideas. Very frustrated.
  12. Sorted this myself. It was because I had the field set for multiple references as has been mentioned many times... doh! As well as getting it by page id.
  13. So, I can access the value of a field in a club that my user belongs to $user->club['title'] However, I can't get the title from a select? I tried $user->club['status']->title but it didn't work. 'status' being the select field name that I am trying to get the value of from the dropdown. Any help appreciated
  14. OK, I have resolved this although I am not sure I fully understand but basically I was trying to use webhook code on a 'success' page. Moved it to something that could be polled asynchronously an it worked straightaway.
  15. Do you mean the @ symbol @psy as opposed to & ? If so, then yes I have done that but with no difference to the outcome. Thanks for replying. I have started a new question so I don't mess with your thread 🙂
  16. I should point out that I have tried a few different solutions offered elsewhere in other posts including the trailing slash. I used reqbin and got a "worked" back as well. I am baffled
  17. Narrowed this right down to $payload = file_get_contents('php://input'); if ($payload) { // $payload = file_get_contents("php://input"); echo "worked"; } else { echo "not working"; } So, in the browser, I am getting "not working" - in the stripe dashboard response, I am getting "worked" - how is this possible?
  18. I am trying to process a Stripe POST response with a webhook endpoint script. $payload = json_decode(file_get_contents("php://input")); var_dump($payload); Problem is that I am getting NULL. However... the Stripe Dashboard that shows the request & response to the Stripe request is correct for the specific event, even to the extent of showing the dump and error messages afterwards. Any ideas would gratefully received as I have spent way too long on this... although having to pick apart stuff like this does end up with me learning a lot more!
  19. Just out of curiosity, have you ever had a situation where stripe post data is being sent correctly (in the sense that the required event json info is posted and shows as a response in the dashboard) but when I try to parse the post variable with file_get_contents etc, it turns up NULL?
  20. Thanks for this. Very useful for debugging
  21. Thank you @MarkE - I spend too little time coding the se days. They are really useful tips, thank you very much
  22. I was attracted to the idea of pulling everything together in a process module as per @bernhard's excellent toots. I liked the idea that they were all in admin and not possible to accidentally publish to the web. But now I have thought about it and following your reply (Thank you) I realise that I should be looking at protecting the templates by user role and using all the tools available to me. I have just gone down the "over-complicating things" road. Wish I hadn't gone down that rabbit hole before the weekend! Thanks once again.
  23. I see old posts saying that repeaters are not the way to go in Custom Process Modules. If that is the case, when using forms (as I am trying to do) how would one tackle things like repeat contact fields where there can be multiple requirements for contact details with different parameters? (Like point of contact, director, etc) or even telephone numbers that have different uses? Just for background I am creating a process module that allows me to create types of financial applications in the admin area (no need to publish any of this, pure admin) that require a lot of personal or company information. Maybe I am thinking about this incorrectly?
  24. I am working on my first Process Module. I am creating forms. Fairly straightforward. However, I really can't work out how to create multiple fieldsets? $fieldset = $this->modules->get('InputfieldFieldset'); $fieldset->label = 'Customer Source'; $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1449, include=hidden'; $field->labelFieldName = 'yff-lead'; $field->name = 'yfflead'; $field->columnWidth = 16; $fieldset->add($field); $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1452, include=hidden'; $field->labelFieldName = 'customer-type'; $field->name = 'customertype'; $field->columnWidth = 16; $fieldset->add($field); //Rinse and Repeat $fieldset->label = 'Contacts'; $field = $this->modules->get('InputfieldPage'); $field->inputfield = 'InputfieldSelect'; $field->findPagesSelector = 'parent_id=1538, include=hidden'; $field->labelFieldName = 'salutation'; $field->name = 'salutation'; $field->columnWidth = 16; $fieldset->add($field); I can create the first fieldset (Customer Source) but then get into trouble as the second fieldset overwrites the first. I understand why, but trying to use the open and close fieldset routine has flummoxed me. Any help appreciated.
×
×
  • Create New...