Jump to content

neophron

Members
  • Posts

    131
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by neophron

  1. Hi guys, I need some help with this gallery: <?php $options = array('cropping' => true, 'upscaling' => false, 'quality' => 80); // cropping => true is default and same like 'center' foreach ($item_gallery->gallery as $img) { if ($img->width > $img->height) { // check for orientation $slide = $img->size(2400, 0); // we have a landscape oriented image } else { $slide = $img->height(1800); // we have a portrait oriented image } // output your markup here echo " <figure> <a class='uk-inline' href='{$slide->url}' data-caption='{$slide->description}'> <img class='photo' data-src='{$slide->size(760, 0,$options)->url}' alt='{$slide->description}' uk-img> </a> <figcaption class='uk-hidden@s'> <p>{$slide->description}</p> </figcaption> </figure> "; } ?> The goal is to show in a uikit lightbox images that are max. 1200px wide and the max height is 900px. The client will upload images that are 2x bigger, to have resources for the retina output. How should I define the srcset and the sizes if you have all these different proportions and orientations? I saw that in sizes I can use this: (orientation: portrait) Thanks in advance.
  2. Thanks for the link, I had this link buried somewhere in my bookmarks. Sadly most of the nav examples are equal to the UIkit accordion, where a parent page is only a trigger. The big screen navigation has the usual dropdown (ul.level_2) You mean adding a redirection link to the parent page, based on a template that can be hidden via: 'selector' => 'template!=basic-page-hidden', home parent-page 01 parent-page 01 (redirect) child-page child-page child-page parent-page 02 parent-page 02 (redirect) child-page child-page child-page about contact
  3. Hi guys, for a website, the client wishes a mobile menu with an accordion nav. Since I'm using UIkit in the frontend, I implemented this https://getuikit.com/docs/nav with Somas MarkupSimpleNavigation module. The problem is, that the accordion nav solution from UIkit converts all parent pages into accordion triggers. You can't access these pages by clicking on it. I've seen other solutions, where only the arrow or plus icon is the trigger and the name is the link. This is my code: <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'parent_class' => 'parent', 'current_class' => 'current', 'has_children_class' => 'has_children uk-parent', 'levels' => true, 'levels_prefix' => 'level-', 'max_levels' => 3, 'firstlast' => false, 'collapsed' => false, 'show_root' => true, 'selector' => 'template!=basic-page-hidden', 'selector_field' => 'nav_selector', 'outer_tpl' => '<ul class="level_1 uk-nav-primary uk-nav-parent-icon" uk-nav>||</ul>', 'inner_tpl' => '<ul class="level_2 uk-nav-sub">||</ul>', 'list_tpl' => '<li%s>||</li>', 'list_field_class' => '', 'item_tpl' => '<a href="{url}">{title}</a>', 'item_current_tpl' => '<a href="{url}">{title}</a>', 'xtemplates' => '', 'xitem_tpl' => '<a href="{url}">{title}</a>', 'xitem_current_tpl' => '<span>{title}</span>', 'date_format' => 'Y/m/d', 'code_formatting' => false, 'debug' => false ); echo $treeMenu->render($options); ?> This the result, where the parent pages are triggers. So, I'm looking for a solution, where the only the arrows are triggers.
  4. What about purchasing the same domain name with ue, oe or ae?
  5. Ok, I solved this problem by deinstalling and installing it again.
  6. I can only say, that a domain with an »Umlaut« causes trouble, especially the emails with this domain name. A few years ago, I had to build a website with a domain with an »ü«. I remember how suddenly part of the email was converted into an »xn--« Since then, when a client want's a fancy Umlaut domain, I'm sending him some informations about alls pro and cons and usually they agree, that it's better without. Check this: https://bambule.de/umlaut-domains-ja-oder-nein-unsere-empfehlung/ https://webhoster.de/oe-ae-ue-¬-sind-umlaute-in-der-domain-sinnvoll/
  7. Hi, for my personal websites with a lot of paintings, I installed your module and it is really helpful 🙂 Recently I'm getting this error in the backend from Tracy (check screenshot). I have a 3.0.184 multi language installation. 153: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 154: $thumb_url = $v->getCrop($subfield); 155: $thumb_url = $v->pagefiles->url . $this->resizeThumb($v, $thumb_url, $size); 156: } 157: 158: } else { // all normal image fields 159: 160: if($v instanceof \ProcessWire\Pageimages && count($v)) { 161: $thumb_url = $page->$field->first()->size($size[0],$size[1])->url; 162: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 163: $thumb_url = $page->$field->size($size[0],$size[1])->url; 164: } 165: 166: } After skipping the error message, I'm getting an javascript error when I click on a > in the page tree (like »Liguria«).
  8. Thanks for this solution.
  9. Hi guys, thanks for your ideas, thoughts and blabbering 🙂. May be you are familiar with the following situation: A customer with almost zero knowledge about web design/development needs a website and approaches a print designer, who knows a little bit more about the »web and stuff«. Like »in the land of the blind, the one-eyed man is king« the designer prepares a design with different functions and presents his ideas to the »two-eyed guy«, the web designer. In my case, I tried to convince the designer to use Figma instead of Indesign. But due to lack of time, I received Indesign files 😞 Meanwhile I finally could convince the designer, to use a single form with different sections. So the headline of this thread is meanwhile obsolete. But nevertheless I think, that this conversation contain some good stuff. The thing is, that such guidelines could be integrated only in bigger projects with a bigger budget (here in Germany). And first you have to convince some persons, that usability and accessibility is meanwhile really important (https://www.deque.com/blog/accessibility-importance-for-seo/)
  10. The designers wish is, that these three separate forms, should be placed in a »switcher« from Uikit (https://getuikit.com/docs/switcher). I've never seen such stacking with different forms. No idea how they will behave inside the switcher.
  11. Hi there, I received a design guide, where 3 different forms are placed on the same page. All of them have about 6–8 input fields and some radio buttons.The website is going to be from a doctor's office, specialized in geriatrics. So may be half of the website users, will be people above 70. There are discussions, that more than 2 forms on one page is a bad practice. Till now I avoided two forms on one page, but now I have to find good reasons not to place more than one form on a page. Do you have any experiences with multiple forms one one page?
  12. @netcarver Thanks. I renamed the module directory like this: _EmailObfuscation Now, I'm getting these errors / messages: Deprecated : Function get_magic_quotes_gpc() is deprecated in /wire/core/WireInputData.php on line 81 Notice: Trying to access array offset on value of type int in /wire/core/PagesLoader.php on line 138 I can log in the backend, but I'm getting a blank page with a lot of errors. Deprecated: Function get_magic_quotes_gpc() is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php on line 81 Warning: Cannot modify header information - headers already sent by (output started at /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php:81) in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/admin.php on line 27 Deprecated: Function get_magic_quotes_gpc() is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php on line 81 Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 787 Warning: Cannot modify header information - headers already sent by (output started at /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php:81) in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 799 Warning: Cannot modify header information - headers already sent by (output started at /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php:81) in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 1036 Warning: Cannot modify header information - headers already sent by (output started at /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php:81) in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 1037
  13. Hi there, I have two PW installations on the same hosting company (Ionos 😞 ). Till two or three weeks ago everything's worked fine. Now both websites show almost the same errors: Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 161 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 163 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 164 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 171 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 171 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 171 Deprecated : Array and string offset access syntax with curly braces is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module on line 171 Warning : ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 238 Warning : session_name(): Cannot change session name when headers already sent in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 242 Warning : ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 248 Warning : ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 249 Warning : ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 250 Warning : ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/Session.php on line 251 Warning : Cannot modify header information - headers already sent by (output started at /homepages/39/d334050941/htdocs/processwire_06.07.18/site/modules/EmailObfuscation/EmailObfuscation.module:161) in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/modules/Process/ProcessPageView.module on line 142 Deprecated : Function get_magic_quotes_gpc() is deprecated in /homepages/39/d334050941/htdocs/processwire_06.07.18/wire/core/WireInputData.php on line 81 I called the »support« and asked them, what they exactly changed, but they couldn't help me. I have to wait till Monday. PHP is 7.4, PW is 3.0.165 and the EmailObfuscation modules is the latest version. The bad thing is, hat the backend is not accessible. Is there a way to deactivate a module via ftp?
  14. Hi, cool site! One thing though – Safari (14.0.3) doesn't support .webp and all nice images are not visible 😞
  15. neophron

    Webwaste

    Hi guys, I just found this article on A List Apart: https://alistapart.com/article/webwaste/ Here is a quote: After reading this, I have to rethink my design strategy for my future websites.
  16. neophron

    no more google

    Hi guys, I thought, this collection of alternative google services would be interesting for someone of you: https://nomoregoogle.com
  17. Hi guys, I'm involved in a project with two main domains, each split into subdirectories representing countries. And finally there will be also a multi-langual function. So this is the structure: mydomain_first.global (in english, for neutral visitors) mydomain_first.global/at/ mydomain_first.global/bg/ mydomain_first.global/ch-de/ mydomain_first.global/ch-fr/ mydomain_first.global/ch-it/ mydomain_first.global/de/ mydomain_second.global (in english, for neutral visitors) mydomain_second.global/at/ mydomain_second.global/bg/ mydomain_second.global/ch-de/ mydomain_second.global/ch-fr/ mydomain_second.global/ch-it/ mydomain_second.global/de/ Every visitor will be redirected by geolocation to the country of interest. The goal is, to manage all these domains in one PW installation. For now there is a PW installation with the multisite module (https://github.com/somatonic/Multisite/). Аll discussion here are about other domains and subdomains. In our case, we're dealing with subdirectories (a good explanation can be found here: https://neilpatel.com/blog/international-seo/). Sub-directory is a combination of ISO 2-digit country plus 2-digits language codes. The main reason for managing all this in one PW installation is to keep the later support on a low level. Is PW capable to manage this structure?
  18. Hi, thanks for your help, but right now it doesn't work. I prepared in codepen an example: https://codepen.io/neophron/pen/mdeaoyK I also tested the accordion example directly in codepen (https://getuikit.com/docs/accordion) with your script, but with no result.
  19. Hi guys, I have a page with multiple uk-accordions (https://getuikit.com/docs/accordion). The problem is, that if an user opens an item in one uk-accordion and after that clicks on the next item in a different uk-accordion, the first item stays open. I want to change this in a way, that nevertheless where the user clicks, only one item should be visible. I found a script and now I'm trying to adopt it: $('.uk-accordion > li > a').click(function(e) { // hide all div.uk-accordion-content $('.uk-accordion-content').attr("hidden", true); // remove class .uk-open $('.uk-accordion > li').removeClass('uk-open'); $(this).addClass('uk-open'); // show selected accordion var id = $(this).data('.uk-accordion'); var article = $('article[data-article=' + id + ']'); article.removeAttr('hidden'); }); $('.uk-accordion > li > a').click(function(e) { e.preventDefault(); }); As you see, my problem is, that I'm not familiar with js.
  20. Thanks for this. I want to show this error for better search results: WireDateTime: The parsed time was invalid
  21. Recently I discovered this plugin: https://github.com/BlowbackDesign/TinyPNG I found it on this website: https://tinypng.com I don't know, what and how they are doing, but the size reductions is sometimes more then 50%.
  22. Thanks a lot for your quick response. It works 🙂
  23. Hi, I'm having trouble with a maybe simple code: I created a repeater (gallery_logos_links) and a repeater matrix (RepeaterMatrix_unternehmen). The repeater (gallery_logos_links) is inside the matrix repeater as a matrix type. The repeater matrix type is: gallery_logos_links and the image filed from the repeater is single_image. This my code: <?php foreach ($page->RepeaterMatrix_unternehmen as $item) { if ($item->type == 'gallery_logos_links') { echo " {foreach($item->repeater_logos_links as $logo)} <img src='{$logo->single_image->url}' alt='{$logo->single_image->description}' width='400'> {endforeach} "; } else if ($item->type == 'some_stuff') { echo"
  24. Damn, I totally forgot about! Thanks for the explanation 🙂
×
×
  • Create New...