• Content count

  • Joined

  • Last visited

Community Reputation

40 Excellent

About alexmercenary

  • Rank
    Sr. Member
  • Birthday 04/12/1988

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Warwickshire, UK

Recent Profile Visitors

1,846 profile views
  1. alexmercenary

    Hi guys, On some instances of ProcessWire I'm finding that the cookies only for admin area or even $config->sessionAllow Is not disabling the wire cookie on the front end. Does anyone know why this would be? I've tried switching to DB sessions too. Thanks
  2. alexmercenary

    @ethanbeyer Got it sorted. Thank you for pointing that out. I got an instance of the module and then used $mail->attachments(array($filepath => $filename)); And that worked!
  3. alexmercenary

    @ethanbeyer here you go: Should I be doing $mail = $modules->get('WireMailSmtp') or something? $mail = wireMail(); $mail->to($name); $mail->from = ''; $mail->subject("Subject Here"); $mail->body("Hello bla bla bla"); $mail->attachment($filepath); $numSent = $mail->send();
  4. alexmercenary

    I'm getting the following error when trying to add an attachment and not quite sure why: Exception: Method WireMailSmtp::attachment does not exist or is not callable in this context. Is there any reason for this that anyone knows of?
  5. alexmercenary

    Does anyone know if it's possible to get the standard resolution image as square rather than non-square at all?
  6. alexmercenary

    Ah you added the method. That's brilliant. Thanks again.
  7. alexmercenary

    Oh, well I stand corrected! That's just awesome. thank you @justb3a
  8. alexmercenary

    Here's a question. is there a way of setting the imageCount value when initialising the module. I don't think there is taking a look at the modules methods but perhaps I'm wrong? This might be handy in the instance where you want to have one page show say 4 images and another show 8. I know you could do this when iterating and limit but might be able to set limit based on each instance of the instagram feed?
  9. alexmercenary

    @Robin S that's a good shout! Thank you for that.
  10. alexmercenary

    Ok, so I have used a str_replace like the example in the hook docs for now like so: $wire->addHookAfter('LoginRegister::renderMessage', function($event) { $value = $event->return; $value = str_replace('Thank you, your account is confirmed and you are now logged in', 'Thank you, your account is confirmed and you are now logged in.<br>We have added the membership to your cart. To activate your membership please complete the checkout process.', $value); $event->return = $value; }); I'm still curious if this is the best way to change the module messages so any feedback would be awesome.
  11. Hi all, I'm using Ryan's new Login/Register/Profile module for accounts and PadLoper. I've made a hook in site/init.php that adds a product to the cart after someone creates an account and activates it and would like to also update the message "Thank you, your account is confirmed and you are now logged in" and append "The product has been added to your cart etc" but can't figure how to access $this->message. Any help would be greatly appreciated. Many Thanks, Alex
  12. alexmercenary

    Unfortunately not. I just get the page you are looking for is not found.
  13. alexmercenary

    Has anyone managed to get PW working in a sub directory as well. I have PW running at route and also I have a second demo PW running under /demo/ I have tried adding: location /demo/ { try_files $uri $uri/ /demo/index.php?it=$uri&$args; } but if I try to navigate to any page other that the root page (/demo/) they are broken. Any help would be appreciated.
  14. alexmercenary

    @mel47 How do you mean? If you add the following to your CSS file this should work #wrap_Inputfield_scf-website, #wrap_scf-date { display: none; } That should work
  15. alexmercenary

    Weirdly it's working now... Or at least the image is loading the correct one. I have just cleared the default meta description from the MarkupSEO module settings and added directly to the homepage and then used the body as the smart description so it is used for open graph description and meta description for all other pages and that isn't showing the correct description yet when being posted but perhaps Facebook caches the results for a while? Either way you have been a BIG help and I can't thank you enough for taking the time to take a look with me! Thank you @videokid