-
Posts
710 -
Joined
-
Last visited
-
Days Won
2
Everything posted by alexm
-
Work in progress modules Subscribers / WireMailChimp
alexm replied to benbyf's topic in Module/Plugin Development
Does this still work? I've installed it, but when I create new accounts with the correct role it doesn't add to to the mail list.- 18 replies
-
- users
- subscribers
-
(and 1 more)
Tagged with:
-
Is there a way to get media with a certain tag limited to one user with this module. Have tried chaining getRecentMediaByTag() but I don't think that's possible.
-
How could I assign specific admin page for user role?
alexm replied to adrianmak's topic in General Support
Apologies for slow response @dragan I cleared the assets/cache directory and logged out and in but user with role admin cannot see the process page. The role admin has the required permission assigned to it. -
How could I assign specific admin page for user role?
alexm replied to adrianmak's topic in General Support
I can't seem to get this setup working. I have added permissions to a Process module which lives under Admin and added the permission to the role 'admin'. But the module page is still not visible in the top navigation. Any thoughts? Thanks in advance. -
Yeah, totally agree, I don't think people should jump straight to this, it was more a suggestion for a circumstance where a client would like all cookies unset initially, allowing people to enable them.
-
Ok, I found out what was going on and it's me being silly, nonetheless, hopefully this will help someone. I use FormBuilder for some forms and by default CSRF is enabled for obvious reasons, but this relies on sessions to validate the form submissions and this adds info to the wire/s cookie. If you need to disable cookies then make sure to check this on the form settings and then I would suggest enabling this if people accept the cookie policy.
-
@Robin S @Susticle Apologies for my slow response. It's very peculiar. I've just used a cookie checker as you did and it says that it isn't setting them however when I check in web inspector for this particular site and another, it still shows the cookies if I delete them and refresh, as if it has set a new one. checked in Chrome and Firefox in private windows too. Very bizarre.
-
Hmm well I'm slightly baffled... If I set it to false it does indeed disable login however a wire cookie and wire_challenge cookie are still set on the backend and on the frontend there is still a wire cookie being set?
-
@LostKobrakai I'm using PW version 3.0.103.
-
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
-
@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!
-
@ethanbeyer here you go: Should I be doing $mail = $modules->get('WireMailSmtp') or something? $mail = wireMail(); $mail->to($name); $mail->from = 'example@example.com'; $mail->subject("Subject Here"); $mail->body("Hello bla bla bla"); $mail->attachment($filepath); $numSent = $mail->send();
-
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?
-
Does anyone know if it's possible to get the standard resolution image as square rather than non-square at all?
-
Ah you added the method. That's brilliant. Thanks again.
-
Oh, well I stand corrected! That's just awesome. thank you @justb3a
-
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?
-
Login/Register/Profile Module - Update $this->message
alexm replied to alexm's topic in General Support
@Robin S that's a good shout! Thank you for that. -
Login/Register/Profile Module - Update $this->message
alexm replied to alexm's topic in General Support
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. -
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
-
Unfortunately not. I just get the page you are looking for is not found.
-
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.
-
@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
-
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
-
I do: https://www.featherbow.co.uk/gallery/cherington-open-plan-kitchen/ By the way thanks for the help on this. I'm using MarkupSEO which is auto detecting the image field as it turns out so I don't actually need to add anything into the AutoFbPost field for image field name etc. Although I have anyway. The default 'images' field. Thank you for your time