Jump to content

benbyf

Members
  • Posts

    818
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. @kongondo sorted now. my mistake
  2. Hi, Got a couple of sites going live. This is the first one Wolfpie creative agency website london. This is another collaboration with myself and Charlie Crook Design. Using AJAX to fetch new pages so the site feels like a one page app but all the URLS etc work. I was also asked to create a mophing animation of a playful rectangle for the homepage. At points the animation joins with the cutout o and creates the wolfpie logo.
  3. https://stripe.com/docs/api#metadata You can add key value pairs to your stripe api requests and i was just wondering if you had used it or had any idea about it. I was looking to add ids to payments to compare with info stored in my database fore invoices.
  4. @apeisa happen to know how one would add meta to a payment using the stripe module? thanks
  5. ok, well something to bare in mind and maybe something that needs remedying or not. @ryan?
  6. @adrian so i'm right in saying if the name is stored as e.g. yourname-web.com then both yourname-web.com and yourname@web.com log me in.
  7. @adrian Could it be that if the name and email are the same but the sanitizer is changing @ to - and thus making them equivalent?
  8. within my module not sure how to delete the current user and redirect without incurring this error: Fatal error: Exception: You do not have permission to execute this module - ProcessPageView (in /srv/users/serverpilot/apps/betaville-dev/public/wire/core/Modules.php line 1022) #0 /srv/users/serverpilot/apps/betaville-dev/public/wire/core/Modules.php(940): Modules->getModule('ProcessPageView') #1 /srv/users/serverpilot/apps/betaville-dev/public/wire/core/Session.php(609): Modules->get('ProcessPageView') #2 /srv/users/serverpilot/apps/betaville-dev/public/wire/core/Wire.php(398): Session->___redirect('/') #3 /srv/users/serverpilot/apps/betaville-dev/public/wire/core/Wire.php(333): Wire->runHooks('redirect', Array) #4 /srv/users/serverpilot/apps/betaville-dev/public/site/modules/Subscribers/Subscribers.module(345): Wire->__call('redirect', Array) #5 /srv/users/serverpilot/apps/betaville-dev/public/site/templates/login.php(27): Subscribers->deleteUser('benjaminbyford5...') #6 /srv/users/serverpilot/apps/betaville-dev/public/wire/core/TemplateFile.php(182): require('/srv/users/serv...') #7 /srv/users/serverpilot/apps/betavi in /srv/users/serverpilot/apps/betaville-dev/public/index.php on line 248 $u = $this->user; // user found and deleted $this->users->delete($u); // send to homepage $homepage = $this->pages->get('/'); $this->session->redirect($homepage->url);
  9. Great options @adrian. Strangely, I only asked as when login in with login() on my site it already allows either, which i thought was strange.
  10. quick question, can the $username in login() be email OR username, or anything else?
  11. @adrian E.g. my module sends an email when a page is published, but I dont want it to send when the page contains errors.
  12. Anyway of checking if there is an error from a module. i.e. I've added a hook to page save $this->addHookAfter('Pages::save', $this, 'pageSaved'); and check for the publish button, but I would also like to check to see is the publish was successful or if there was any errors like missing fields for example. Thanks
  13. +1 atom, Stack Overflow, Trello havent used but Postman looks interesting.
  14. Worked it out. payment->embed() should have been payment->render(); Would be ace to add some docs with your payment modules if possible. Happy to contribute if I get my head around it...
  15. Hi @apeisa Looking at using the payments module with Stripe, and have both PaymentsModule and PaymentsStripe installed with config. Seem to be getting a error using your example code, no such embed? Method PaymentStripe::embed does not exist or is not callable in this context using the code here but adding a product unit (as it was erroring without): http://modules.processwire.com/modules/payment-stripe/
  16. Hi, I working on auser module and have recently got this error when trying to delete a user: Error: Exception: You do not have permission to execute this module - ProcessPageView this only happens when accessing the user->delete function as the below within my module. Anyone happen to know why that may be? // @string $user = name field public function deleteUser($user){ $u = $this->users->get($user); if($u->id) { $this->users->delete($u); } } similar to this error i believe:
  17. Happy Christmas everyone! I had a bit of time to add tot his module It now has textareas (thanks @tpr) in it's config which means it can now add as many icons and field and/or template pairs as you like. This means you could add one icon for pages of the template basic-page, and also add another icon for all pages with a counter etc... Also... I've added a third textarea, allowing you to add a list of fields to show the data for IN the pagetree itself (see image below). In my example below I am able to show in the page tree by each page if they have a counter what the data is and whether the page has a field exclusive and its data. Thanks for peoples help and hope it is useful. (updated on github)
  18. not really sure how to make this happen... repeater? Anyone point me in the right direction to creating multiple additional fields to the module settings? so the module can have as many icon and template or field pairs as you want...?
  19. Pretty much exactly what I offer as a web designer -> look at wix or sqaurespace and if you want to do something more interesting in functionality or design then come to me and I'll make up a PW site with the extra requirements. I like working on new and interesting projects not just banging out the same site again and again, so PW works well for me. Plus the community are super helpful! I never enjoyed the swamp of wordpress and drupal modules and forums
  20. Updated and works well (needed to delete the extra fa- in the html as the icon selector adds the complete fontawesome name). Only thing I would change but unsure is whether you can have or selector somehow as it currenlty only adds icons to the selectors found pages not a template or a field for example. i.e. for mulitple selectors.
  21. couldnt work it out, just gave me a field for searching the pages on the site but not selecting them... and it wouldnt show templates or fields. I was able to use select multiple instead thought. For example: $f = $this->modules->get('InputfieldSelectMultiple'); $f->attr('name', 'template'); $f->description = $this->_("Template or templates of pages to trigger bulk email to users after new page published"); $f->addOption('', ''); foreach($this->templates as $template){ $f->addOption($template->name, $template->title);
  22. this module still working with Mandril? I'm trying it on the mailchimp trial. cannt seem to get an emali sent after setting up their DNS settings and using the example wireMail() example im getting 0 for $count = $mail->send()
  23. Sure, how does one do that
  24. MarkInPageTree New module which does what it says in the title. It adds an icon to a page on the page tree if -> a specific field is true and / or is a specified template. For example I'm using it to add an icon to any page that has a checked (checkbox) exclusive field. This helps with admin clarity as you can see instantly which pages of the same template have differing content (i.e. are exclusive or not). https://github.com/benbyford/MarkInPageTree
  25. I've been able to start adding some text to the Readme's for these two now. Please get involved if you're interested in helping with these two specific modules as im still relatively new at it.
×
×
  • Create New...