Jump to content

fruid

Members
  • Posts

    680
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by fruid

  1. and a follow up question: if I do something like $src = $urls->site.'modules/myModule/templates/'; $dst = $urls->templates; $move = wireCopy($src, $dst); inside init() or ___execute() It of course asks for what is $urls. How would I pass it the $urls variable because if I just put it in the brackets, it's too few arguments where it's called, which I don't know where. Am I misunderstanding?
  2. thanks @ukyo I guess it works now, you're clearly in the user list. thanks for the tipp, what's the name of the FieldType? A sort of "range" input field that lets you drag with the mouse from start to end is cool for a month or year view but if you're trying to select multiple weeks over a a period of months, I reckon it's easier to just enter the week number and year. At least I couldn't find any time picker that makes this task easier, not in flatpickr nor anywhere, maybe something like drag or click the week number on a year calendar. And the other thing is entering times. The time input functionality from flatpickr is not much of use and dragging hardly could be an option since you would want to enter time slots and not so much ranges. So just having a simple text field is just as straight forward and probably more flexible.
  3. I actually have a very specific issue that I'm stuck with… How do I make the module create the template files, not just the templates in the database via API but also the corresponding php files in the webcontent when being installed?
  4. OK so I was looking for a module for weekly schedules, available time slots and bookings thereof. But all I could find is other people looking for a module like that. So I gave it a try. It's not a module yet but it will be soon, for now it merely is some templates and some fields. I gave ryan's ProcessHello module a try which makes module development much easier but I'm still not sure where to begin. How and where to create templates, with fields and repeater fields. Also, this setup requires FieldTypeTable which is a pro module so I'm not sure everyone will appreciate this requirement. I guess there could be an easier way? The tableish requirements are quite basic. https://foobar.roofaccess.org/userlogin/ if you have time and feel like it, you can just create a fake account and play around with it a bit, I hope it's somewhat self-explanatory. Should the module do more? or less? I welcome any feedback!
  5. I'm trying to give the newly registered user (via LoginRegister) permissions to edit some page in the admin. So I added permissions accordingly to the role login-register, but now the role is not assigned to the user when they register because in the settings it says Roles with page-edit permission are not shown. so that's kind of paradoxical. How to solve? only with hooks? EDIT: never mind, this works perfectly:
  6. I use pages instead, each with two files-fields (one for each language). Does the trick and is quite clear.
  7. @Jan Romero thanks, I knew I saw that somewhere before, just couldn't recall. Works.
  8. doesn't work with blank PW profile. Also, my attempts to make it multilingual not only do not work but break the site. $config->pageNumUrlPrefix = _x('Seite', 'general'); thoughts?
  9. I did this. If I leave the src tag empty, nothing is loaded. If I accept the marketing cookies, nothing is loaded either ? I'm on local BTW, not sure if that's relevant
  10. thanks, I will try that. And a follow-up question, would those cookies set by Vimeo or YouTube indeed be marketing or external media?
  11. I installed PrivacyWire and am having a hard time testing if it's doing what it should. I can check the cookies in the Google Chrome console under "Application". Before I accept and if I reject the cookies in question, there shouldn't be any, otherwise there should, right? Well they are never there, no matter how. Here's what I do and what I use to test. <iframe src="https://player.vimeo.com/video/<?=$page->vimeoID;?>?color=5a90ff&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen> </iframe> <script data-src="https://vimeo.com/" data-category="marketing" src="https://player.vimeo.com/api/player.js"></script> As you can see, i put data-src="https://vimeo.com/" data-category="marketing" inside the script tag so to categorise the cookies set by this script as marketing-cookie. Is that right? Is that enough? Should that work? Maybe there just is no cookie set by the vimeo-script and I waste my time to handle it? Also, I have a newsletter-subscripion form using a third-party newsletter-service. I guess I need to add another data-attributes to the <script> in use. What category would that be? thanks for help EDIT: actually, when I view the embedded video on the website, no cookie is set. But if I click on the vimeo-link inside the viewer, bringing me to vimeo.com, I get 13 cookies expiring in 1 year. Whether I don't select anything in the cookie consent, "accept only necessary cookies" or "accept marketing cookies" doesn't make any difference, it's always 13 cookies. Doesn't seem right… The cookie domain of these 13 cookies in the console is .vimeo.com, so are they out of scope? Maybe it's just my lack of understanding…
  12. I would need some kind of advanced files-field that enables upload to subfolders, so that the uploaded files are nicely organized and so that I can output different categories in the frontend. Any ideas?
  13. I have an issue where some emails are lacking the replyto email-address though I set it in the code as follows… $mail->sendSingle(true); $mail->subject($subject); $mail->body($message); $mail->replyto($email); So that's bad because, needless to say, cannot reply to the email. The log clearly show the email address in the array [replyTo] => yada@example.com Any ideas how that can happen? I mean why how... Is that just an email client configuration? EDIT: never mind, pretty sure it's an email client issue
  14. I'm trying to add a simple explanatory text within the options of my custom admin action. Right now it seems like all elements of the array returned by defineOptions are input fields. But I just want to add a text to explain some stuff to the user. Also, I need basic formatting like line breaks etc. What to do?
  15. I'm not using any custom code, just the module settings in the admin backend and the following (which is the default email template of the Promailer module) : if($input->get('type') === 'html') { ?> <!DOCTYPE html> <html> <head> <title>{subject}</title> <meta http-equiv="Content-Type" content-type="text/html; charset=UTF-8;" /> <style type='text/css'> body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 15px; } a { color: #009ADA; font-weight: bold; text-decoration: none; } a:hover, a:focus { color: #333; } </style> </head> <body> <h1><?=$page->title?></h1> <div><?=$page->body?></div> </body> </html> } else if($input->get('type') === 'text') { // Text-based email output (optional) if($input->get('preview')) header('content-type: text/plain'); echo $sanitizer->getTextTools()->markupToText(strtoupper($page->title) . "\n\n$page->body"); } else { // show preview links to our text and HTML emails ?> <html> <body> <ul> <li><a href='./?type=html&preview=1'>Preview HTML email</a></li> <li><a href='./?type=text&preview=1'>Preview TEXT-only email</a></li> <?php if($page->editable()) echo "<li><a href='$page->editUrl'>Edit this email</a></li>"; ?> </ul> </body> </html> <?php }
  16. I'm trying desperately to send HTML emails with WireMailPHPMailer, but It always seems to convert the markup from a CKEditor body to I think is what you call autogenerated text or alternative text. something like FLOWERS ARE RED =============== my name is NOT Dave this poem makes no sense microwave (https://en.wikipedia.org/wiki/Microwave) instead of: flowers are red my name is NOT Dave this poem makes no sense microwave What could it be? Thanks for help!
  17. OK I had some sort of success with the contact form. Apparently $mail->AltBody = $message; destroys the line-breaks of the message. When I remove this, it sends emails with line breaks, that's all the message via contact form needs anyway. But I'm still having troubles with the newsletter though, I'd appreciate if someone could just thought-shower with me, I'm out of ideas. It doesn't use any more code other than what is in the email's template (shown above) which is the code provided template when you buy it (!). Other than that, as far as I know, it completely relies on what I configure in the modules' settings. But no matter what I do, it just won't send any markup or css styles. I don't even understand what's happening and google is no help either. So is it the ProMailer module? (I hope not), the WireMailPHPMailer? (positive), the mail server settings? or my email client? (unlikely) I also changed the content-type of the template for the promailer-email template for the newsletter emails to "text/html". No success. Thanks for help!
  18. mails get sent now, contact form and newsletters. However, I struggle with sending HTML content with ProMailer via WireMailPHPMailer. The issue definitely is with WireMailPHPMailer because HTML emails get sent just fine via regular php. Also, on the newsletter template I have if($input->get('type') === 'html') { ?> <!DOCTYPE html> <html> <head> <!-- <meta http-equiv="content-type" content="text/html; charset=utf-8" /> --> <meta http-equiv="content-type" content="html; charset=utf-8" /> ... etc. And it always enters this block, no matter what is sent, but it always "auto generates" text, I guess, and strips the HTML. Don't know why.
  19. Markup Google reCAPTCHA doesn't allow recaptcha v3, only v2, and firefox won't work with recaptcha v2, only v3 ?
  20. when I install this module, it messes up my <head> tag big time. The tags get added INSIDE the <title></title> tag (!) see for yourself: view-source:https://foobar.roofaccess.org/contact/ thoughts?
  21. I keep getting these errors (just one of them at a time)… PHP Notice: Undefined offset: 1 in /home/.sites/66/site2760076/web/site/modules/ProcessPageViewStat/func/useragent.php:3310 PHP Notice: Undefined offset: 1 in /home/.sites/66/site2760076/web/site/modules/ProcessPageViewStat/func/useragent.php:1743 PHP Notice: Undefined offset: 3 in /home/.sites/66/site2760076/web/site/modules/ProcessPageViewStat/func/useragent.php:1656 PHP Notice: Undefined offset: 3 in /home/.sites/66/site2760076/web/site/modules/ProcessPageViewStat/func/useragent.php:1619 thoughts?
  22. Thanks but no, that doesn't seem to be the problem. I'm now using WireMailPHPMailer which works fine. The contact form at least which uses the code and API I wrote on the contact form's template file. So that's good, at least I know the module is working and the connection to the SMTP server is established. Rock-mail-logger is also good as a log-tool. Still having issues with sending newsletters with Promailer via WireMailPHPMailer though, which doesn't use any custom code AFAIK, just the settings in the module. But that's to be discussed in the VIP support.
  23. OK so I'm in a pickle now, no email module seems to work. As mentioned above, I had been using the php mail function before, which worked ok for some time, but then not anymore. So I learned about WireMail SMTP and that sending via SMTP is always better in terms of spam protection. As required by the host (World4You), I setup an authenticated user in the settings with port 587. This worked fine for some time, now it doesn't anymore. Now I installed SwiftMail which also has test connection and test email features. I tried these tests, both are claimed successful, no errors, but no emails get received. This is scary! Is there any mail module that actually works? There are no errors neither on PW nor on the server, just success messages from PW. How to debug this stuff? Need help urgently!
  24. WireMail SMTP, WireMailPHPMailer or SwiftMailer - which one is state of the art? Or any other? What are the pros and cons? I tried WireMail SMTP, it doesn't seem so reliable. Many people seem to be in favor of WireMailPHPMailer, but that needs some attention, but before I start, there's also SwiftMailer, so I don't know what's the best bet and which one's the newest.
×
×
  • Create New...