Jump to content

szabesz

Members
  • Posts

    3,015
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by szabesz

  1. I've been googling around and found these two as well: surveyjs Multiple Choice Quiz Engine
  2. Thank you Adrian, this is what I need. I've long forgotten about it even though I did read your post. I've just refactored my code to take advantage of it and everything works as expected, great module as always! As for $u->sendEmail = true; I do not need it because my frontend form is not for creating new users but for sending an email to existing users. Why sending the same email? Because already registered users might have long forgotten how to login to the system so I want to send the same instructions no matter what. I will probably introduce a slight difference based on some simple logic but most part of the email body will be the same. For this reason I use the hook to completely overwrite $htmlBody which I find easier to implement than using str_replace and such to change something created in the RTE.
  3. Hi Adrian, I have a question I implemented login via link base on @Ivan Gretsky's code snippet: https://processwire.com/talk/topic/13708-login-with-a-link-is-it-called-magic-link/?do=findComment&comment=155465 I'm also using your module so that the site manager creating the users in the admin does not have to send the very first email to the user manually. The module sends the email successfully but I have a two issues: While http://example.com/?user={id}&token={login_token} is turned into the proper "link", hardcoding the protocol+domain is not a good idea and {adminUrl} is not what I need. I also implemented a simple form asking for an email only. When submitted, the login token is regenerated for the user (associated with that email) and an email is sent with the new login link in it. It would be great to be able to base these two emails (mail sent by this module and mail sent by my form) on the same template, meaning they should be identical without me implementing them twice. My function to send the new link via email is dead simple: <?php function site_email_user_login_info($login_user) { createLoginToken($login_user); $login_link = createLoginLink($login_user); $mail = wireMail(); $mail->to($login_user->email); $mail->from('contact@example.com'); $mail->subject('How to login...'); $mail->bodyHTML("<html><body> <h2>Some dummy header</h2> <p>Some placeholder text. Blah-blah. Please click to login:</p> <a href='{$login_link}'>{$login_link}</a> </body></html>"); $mail->send(); } It is bodyHTML and the module's Email Massage which should be populated from the same source. Could you please give me some guidance on how to achieve this? Is it possible?
  4. Argh, I've just learnt what I was missing: logout+login for the user in question
  5. If "tab" means "main menu item" then I have the same issue. The user has access to the custom page attached to a process module but the menu item shows up for the superuser only. I've refreshed the modules a lot to no avail. Note that PW did not create the permission either like discussed here: https://processwire.com/talk/topic/276-creating-new-admin-page/?do=findComment&comment=1856 "In 2.1, PW doesn't install a permission and access to the Process is assumed if user has access to the page it's on. If you want PW 2.1 to behave like PW 2.0 and require a specific permission before it'll run the module, you want to specify it in your getModuleInfo function:" I had to create the permission manually. What else I'm missing? I'm stuck...
  6. Thanks @SamC I understand that it can be easy to change UIkit's LESS variables, however, about 95% of the time I would be quite happy to leave this task to ProcessWire Why? Because I like the new theme the way it is, it is just that too much extra whitespace compared to Reno that bothers me, so why should I spend more time on it then absolute necessary? I'm not lazy, I just do not want to setup UIkit for each project in order to change one (or a couple of?) variable(s). I get your point and appreciate your help. We just need that setting somehow, I think Since: "ProCache 3.1.7 adds support for SCSS and LESS" https://processwire.com/blog/posts/pw-3.0.76-plus-login-register/ It might also be possible to recompile UIkit admin theme's variables if this support is also added to ProcessWire core somehow.
  7. Same here, padding looks good to me rather than everything all squished up. 27" monitor at 2560x1440 with chrome at 110% zoom. Also use a 13" retina macbook (for sitting in bed lazy coding - my fave) and looks fine on that too So that is why we need that setting Seriously, using the UIkit admin smaller part of the GUI can be seen and used on the very same screen (compared to the classic Default and Reno themes). Some of us do not like loosing functionality (me included) even if it looks better that way.
  8. @rick Did I have a same issue maybe? See: https://processwire.com/talk/topic/17714-pw-3083-–-core-updates/?do=findComment&comment=155578 What is the dependency in this case? I do not understand what went wrong. This was the first time I had run into this issue.
  9. You are welcome! If it makes you feel better...
  10. In this forum you will not find too many fanboys (ie. members) who are interested in comments like this. I do not know what "bigboys" mean but you should familiarize yourself with the philosophy behind the ProcessWire project: https://processwire.com/blog/posts/new-2.8-version-current-projects-and-pw-usage/ Quote from Ryan: "I'll be honest, I've never cared much about our usage numbers, as I'd be doing the same thing with ProcessWire even if there were just the two of us, you and me. I do this work because I love it, and I don't care about being popular. Popularity is a burden as far as I'm concerned. Our focus has always been to be the best CMS according to our standards rather than anyone else's. But it's also encouragaging to look at things outside every once in awhile and see that ProcessWire is becoming more and more recognized in this market." ProcessWire forum members are open-minded. You came here to insult them.
  11. Maybe an indicator to show that there are inactive languages and when the user clicks it we get the tooltip? In a tooltip you have more room to use something else which can be better than a line-through.
  12. I'm not quite sure what you mean. Do you list all languages when they are not visible? btw, HUN crossed out (aka line-through) looked like Arabic to me. I had to zoom in see what it is.
  13. They have "USA CODE SAMPLE"s as well, eg: https://developer.moneris.com/Documentation/NA/E-Commerce Solutions/API/Refund?lang=php I guess it means US based companies are OK too, right? I am asking this because I still need to decide what to pick when I get to the ecommerce features of the site I'm still building... Have you already implemented ecommerce features for a ProcessWire site based on Moneris? I do not want to highjack this topic, btw...
  14. Generally agree, we just need less padding: https://processwire.com/talk/topic/17786-pw-3084-–-core-updates-installer/?do=findComment&comment=156119 Maybe by being able to set it in the config? That would be great.
  15. Please do not! Don't be like Apple who keeps removing useful features from the system Jokes aside, this module has not yet received the attention it deserves but things can improve any time. For example as soon as I have the time to implement something useful I will surely contribute.
  16. Thanks for sharing this tip! I will try it out as soon as I have the time but I already have one question: how do you fight nasty bots when this setup is used?
  17. @flydev Thank you so much for this module! Just a side-note: please consider turning the next version number to at least 0.1.0 or better yet 1.0.0 (I do not think this module is in beta state as it is stable. It might lack some functions you have not yet found the time to finish but those can be pointed out in the read me and not in the version number ) We have a recent discussion about this and it seems to be beneficial to use semver 2.0 : https://processwire.com/talk/topic/17767-module-release-notes/?do=findComment&comment=156350 And for those who doesn't already know I would like to point out that Duplicator is not just about duplicating but making regular backups (via (lazy)cron).
  18. I registered at cloudinary.com a year ago in order to manage images. I found that the free plan is only good for testing purposes because the monthly quota quickly got exhausted as they took into account any bits that were transferred in any way possible. I cannot remember the details but the only useful plans were the paid ones which were not an option for the client so I have not yet checked their services since then.
  19. Couldn't a module like this would be a better solution for "sharing"? @flydev has not yet released it so it's hard to compare two sneak-peek projects but still...
  20. I opted for this one here: https://www.szepelet.com/products/product-categories_cleansers/ for example: product-categories_body-care vs skin-concerns_body-care Where product-categories and skin-concerns are parent categories while body-care and body-care are different subcategories under their respective parents. However, these categories are sort of set in stone, meaning that they rarely change – if ever – and not manageable by the site editor by design.
  21. @adrian's Admin Actions module is a good starting point as well, take a look at source code files, most of them are short and good examples how to work with the API, you can create your own "action" and run from the admin if you want to:
  22. Sure, it is odd to put View Site and Debug there in the first place. Maybe the logo could have its own dropdown menu and View Site and Debug could be moved there?
  23. Doesn't sound good to me, at least I would not like to encounter such an issue. I hope I will remember to check the image fields when I need to upgrade some old sites. If it happens automatically that is quite a breaking change
  24. Also the changelog: https://getuikit.com/changelog "3.0.0 beta 3 (January 17, 2017) Add support for data-uk- prefixed component attributes" But they keep fighting it as they tend to miss some tests of the "support" of data- prefix as the changelog lists various fixes regarding this issue. If they themselves were to use it as a default we would we see less bugs, I guess.
  25. https://processwire.com/api/multi-language-support/multi-language-fields/#getting-and-setting URL needs to be fixed, I think.
×
×
  • Create New...