Jump to content

wbmnfktr

Members
  • Posts

    1,851
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by wbmnfktr

  1. wbmnfktr

    nvm

    Same as @diogo already said... I don't know and don't understand almost anything you wrote @hellomoto but eitherway... I know how it feels to be lost in some kind. Never had to deal with things you wrote in your first post (I read it, but won't cite it as you deleted it). All I can say, which is almost what Diogo already said... I won't make fun of you. Never. You are part of this community which is more important that anything else. Yet... I'll offer you an "open ear" for conversation, talks, exchange for all kinds of topics. I remember a time I needed something like that but haven't had anyone... so... the thing I can offer you is... someone to talk to. If needed and wanted. We all have some kind of daemon or daemons which follow us in some kind or another. Either in real life or in mind which disrupts our real life. No judgement or anything like that. Talk to me about the things that keep you in trouble. Drop me a PN for contact details. We can talk via whereby, Skype... whatever. Let me know. I won't let someone from this community go down a dark spiral. Talk to me. We are friends. Even though we don't know each other. Yours, Alex!
  2. Miss Monique (on YouTube)... awesome sets.
  3. Don't mess with @teppo. He sees and knows almost everything and therefore we love him so much (but don't tell him). Thank you as well for your module. This might and will be a great addition for a lot of us.
  4. Have you tried that setup in a recent 3.0.17x version of ProcessWire? Had almost the exact same setup running but it broke with 3.0.177 for some reason. Didn't dig deeper into it as that project uses other cookies now as well.
  5. The way I understand all this is as follows: You can create a new /site/templates/admin.less file and then based on either rock or reno you can start modifiying those @rock-* or @reno-* variables from those admin themes and override them from one single file. But not only that. You could also override almost each and every UIKIT base or component variable. Defining new gutter, font sizes, colors and all that's defined in UIKIT. It's more or less "limited" to the design as we can't add custom markup into the admin themes this way. Therefore we have to create our very own admin theme. The foundation is UIKIT, reno adds the know PW style, while rock adds just some different colors and slightly more modern tabs. As you can see in the Github repository... there are only two files for two themes with either a lot of customizations or just some tweaks. See here: https://github.com/processwire/processwire/tree/dev/wire/modules/AdminTheme/AdminThemeUikit/uikit-pw/styles Which can be compared here: I'm not sure what can be done this way at all but I guess and almost would bet that the community will soon show some nice examples. In the meantime I will play around a bit with this one. Right now I'm digging through a lot of files and the more I look the more confused I am... as I never built an admin theme nor really customized UIKIT in that way. Some things feel good, some things are just weird for now. Those links helped me to dig deeper (found them in the blog post): Rock style Reno style Uikit base Uikit components
  6. Just a guess but maybe $home isn't defined.
  7. Just played a bit with the most basic setup I found over here: https://processwire.com/docs/front-end/markup-pager-nav/ There are two circumstances that break the pagination in my test. when pagination isn't enabled in the template settings I use start=n in my selector Maybe you start over with the basic setup and without any functions around it.
  8. Pagination is enabled in the template?
  9. No clue right now. I have to test it here and will keep you updated.
  10. Try logging all outgoing mails with this little helper which is more precise: $wire->addHookAfter('WireMail::send', function($event) { $mail = $event->object; $event->wire('log')->save('sent-mail', "SENT ($event->return of " . count($mail->to) . "), " . "SUBJECT ($mail->subject), " . "TO (" . implode(", ", $mail->to) . "), " . "FROM ($mail->from)" ); }); https://processwire-recipes.com/recipes/logging-outgoing-emails/ What triggers the send function?
  11. You might want to give $sanitizer->purify() a try.
  12. Another thing I see here... as you are moving content from Textpattern (I loved to use it!)... you might want to double check that you don't import the textile version but rather the HTML version of each page/article. Otherwise it might end looking funny. Another thing that might cause a headache could be image management. The last time I used Textpattern images were placed just by referencing them by ID. At least that's what I did back then. In this case you could (if possible) import those nowadays with Import External Images which looks up full URLs to an image and imports them.
  13. <?php namespace ProcessWire; // get your languages $default = $languages->get("default"); // retrive default (german) $english = $languages->get("english"); // retrive english // imported pages with content in different fields // needed to move content in the correct fields there $importedPages = $pages->findMany("template=product, parent=4372, fkImportId=import44242"); foreach ($importedPages as $importedPage) { $importedPage->of(false); // outputFormatting must be OFF // title field $importedPage->title->setLanguageValue($default, $importedPage->fkTitleDe); // set in default $importedPage->title->setLanguageValue($english, $importedPage->fkTitleEn); // set in english // textarea field $importedPage->textarea->setLanguageValue($default, $importedPage->fkDescShortDe); // set in default $importedPage->textarea->setLanguageValue($english, $importedPage->fkDescShortEn); // set in english $importedPage->save(); // save the page with the new language values } Had a similar task a while back with content already stored in pages but in totally wrong fields (on purpose) - as we imported from CSV and moved content into their correct places later on which was way easier and faster with ImportPagesCSV and this little snippet here. Hope this helps a bit.
  14. I never used PerchCMS and from what I know and looked up over on their site reminds be a bit of something Functional Fields do in ProcessWire. Yet kind of different but still similar. AND another Pro module. Back to your concerns regarding 400 fields+. 400 fields for just a few cards and donations goals/amounts and such seems not only quite hight it's probably unnecessary as well. I'd bet if you could outline your needs more detailed and maybe even a screenshot of what it would look like in PerchCMS and it's behaviour that the forum might already have a solution for you or at least an idea.
  15. Thank you, @Pete for maintaining the forum! Just a question not only out of curiosity but... does this forum software support/provide a native dark theme?
  16. Don't change anything in your /site/.htaccess that's fine how it looks. Check the one in your web root. That's the one that needs to be complete and which might need some tweaks. For a better understanding where to look: The important files and folders are: site, wire, .htaccess and index.php
  17. If that's all you have in your /.htaccess then there is something wrong with it. The full PW .htaccess should look something like that: https://github.com/processwire/processwire/blob/master/htaccess.txt So please double check that first. If that's fine try to change the rewrite base in your /.htaccess which is necessary sometimes. Another thing could be wrong read/write/execute permissions on files and folders. There are already a few guides and tips for this error even on IONOS/1&1. Try either the forum search or Google search for that. Last but not least... welcome to the forum!
  18. Just in addition... this is what I use for similar tasks. <?php // Page sub-select - find pages based on previous selected pages // example: find all brand based on products // https://processwire.com/talk/topic/3553-handling-categories-on-a-product-catalogue/?do=findComment&comment=37833 // https://github.com/webmanufaktur/processwire-snippets/blob/master/api/api-page-subselect.php // define array for brands $brands = new PageArray(); foreach($pages->find("template=productTemplate") as $product) { // add brand from product page to brands array $brands->add($product->brandField); };
  19. $page->getUnformatted('yourDateField'); The example above should actually result in a timestamp. At least that's what I use each and everywhere. https://processwire.com/api/ref/page/get-unformatted/ https://cheatsheet.processwire.com/page/built-in-methods-reference/page-getunformatted-field/
  20. Once in a while in some older versions or sites that are based on pretty old versions. Never had any issues in newer version so far. Never tried it but disabling other AdminThemes might be an option here. So only the UIKIT version is available.
  21. Is your site using or running on the Cloudflare CDN as well? If so you might want to add custom page rules in Cloudflare to disable all kinds of caching for /youradminarea/*. Because that really interferes with your ProcessWire session and can make life quite hard.
  22. Ooooh... another service I use and really like is VULTR. Nice service, fair prices, full control. (still no links and codes)
  23. While Softaculous is a super convient way to install ProcessWire... almost all hosting companies (I know) that use it... are super cheap as in super cheap in service, super cheap in performance, super cheap in almost everything else. Get yourself or your son a solid hosting at Digital Ocean (US), webgo (DE), or... some others. As you are living in UK (I presume due to your location tag) you might want to look at something like webgo.de. It's quite cheap for that you get. The Business Tarrifs are ideal as you can host almost anything there. Let's encrypt, Git, SSH, unlimited external domains, unlimited databases, and such... in the business tarrifs. Sure... ~16EUR/month (for Business/ or 9,99 for personal) are quite expensive but unlimited external domains, while up to 10 (newly registered in the first year) are included. It's kind of a fair deal and I personally use them for about 3 years now. Before that I used... DreamHost, HostGator, NunHost, A2Hosting, AllInkl (DE), HostEurope (DE), ... yet webgo... is my favourite choice even for clients. Drop me a line if your interested in a test drive. I could create you a demo instance to test it. I could drop a promo / affiliate code or link but I prefer to not do things like that... as I just want to let people know what good hosting companies are here in Germany.
×
×
  • Create New...