Jump to content

Juergen

Members
  • Posts

    1,306
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Juergen

  1. Hello @bernhard, no it was independent if they were in a repeater or not. Image upload doesnt work at all. But as written above it works again without any interaction from my side.
  2. Thanks for your response. I dont know why but today the image upload works as expected without changing everything. Yesterday I have been working on a frontend user template with image upload and afterwards I have tried to upload an image in the backend which didnt work. Maybe there is something strange going on afterwards. Anyway! It works now
  3. Hello @ all, today I have discovered that the image upload in backend no longer works after upgrading to the latest dev. It seems that after the progress bar is full the image upload stops and will never get finished Aufnahme #6.mp4 Does anyone has discovered the same issue?
  4. In my case I also had the problem that the map was not rendered. I found out that a javascript (in my case fullcalendar) for initialization was responsible for this behavior. So I decided to put it inline only on that page where I needed it and not in an external javascript file which is included in every page load. Another point was that if I turn template cache on the map will not be rendered too, so I disable the cache on the template where the map is included. So if you have problems, please check this 2 points. Maybe this solves your problem.
  5. Hello @sunlix I get the following error after activation of the automatic markup of abbreviations. My site is multilingual and I use the lates PW dev version. Maybe a namespace/file compiler problem? Best regards
  6. Juergen

    Rockpool Painting

    Great site! One recommendation: use an internal anchor after form submission to get back to the contact form if there are errors. At the moment you get to the top of the page and have to scroll down to the contact form to see the errors. Best regards
  7. From the marketing point of view there is a strategy called "product bundles" which means you put at least one product which is very well selling into a bundle with lower selling products to increase the sales in general. Maybe thats the idea behind this. But its only a thought. I am also interested in buying just on or two modules, which I am really interested in. I am not ready to buy the whole stuff at the moment.
  8. Great design, cool filter functionality and it loads really fast here in Austria. Good work!
  9. If you write "bce_adminDataTableSelector.length instead of ($(bce_adminDataTableSelector).length) it will return 41 instead of 0 after clicking the tab. It seems that $ before causes a problem.
  10. What I have found out is the following. In the JS-file there is the part where the additional function will be created (approx. at line 218) function addBceColumnControls() { //this timeout is a bit of a hack that should be improved in the future setTimeout(function () { if (bce_isColumnControlsAdded) { return false; } if ($(bce_adminDataTableSelector).length === 0) { return false; } // do not add controls if there is no more than 1 row if ($(bce_adminDataTableSelector + ' tbody tr').length <= 1) { return false; } //$(bce_adminDataTableSelector + ' tbody').on('click', 'input[type="checkbox"], i.InputfieldChildTableRowDeleteLink', function () { $(bce_adminDataTableSelector + ' tbody').on('click', 'input[type="checkbox"]', function () { setColumnControlStates($(this)); }); // add new controls for (var i = 0; i < bce_allowedColumnControls.length; i++) { var currentControl = bce_allowedColumnControls[i]; // skip non-existing elements if (!$(currentControl).length) { continue; } // get index of first checkbox in the first row var index = $(bce_adminDataTableSelector + ' ' + currentControl + ':eq(0)').parent().index(); // do the add $(bce_adminDataTableSelector + ' th:eq(' + index + ')').prepend($(bce_toggleControl)); // set initial checkbox states setColumnControlStates($(bce_adminDataTableSelector + ' th:eq(' + index + ') input')); // add event addColumnControlEvent(bce_adminDataTableSelector, currentControl, index); } // disable thead break to multiline $(bce_adminDataTableSelector + ' thead').css('white-space', 'nowrap'); bce_isColumnControlsAdded = true; return true; }, 1000); } There are a lot of if-statements depending on the length of a variable. It is not possible to log the variables inside this function. Fe. if I want to check the variable length of the second if statement if ($(bce_adminDataTableSelector).length === 0) { return false; } with console.log(bce_adminDataTableSelector.length); or console.log($(bce_adminDataTableSelector).length); nothing will be returned, so maybe the if-statements doesnt work in this case.
  11. Of course Here is what I have added: a = "test"; console.log(a,length); console.log(bce_fieldID,length); // add column controls (top, bottom and replace modes) $(document).on('loaded', '#' + bce_fieldID, function () { addBceColumnControls(); }); And this is what I got: As you can see the variable "bce_fieldsetID" consist of 23 letters (= ProcessPageEditChildren) So this variable of the if statement is there!!!
  12. OK I have tried the following: I have added the following script to the admin.php file <script type="text/javascript"> a = "test"; console.log(a.length); obj = bce_toggleControl; console.log(obj.length); </script> The variable a with the content "test" is only to check if the console.log works. I got the following output: As you can see the variable "a" has a length of 4 - this is correct. But the variable "bce_toggleControl" which is responsible for the checkbox doesnt return anything. I have also tried it with bce_fieldID depending on this snippet // add column controls (top, bottom and replace modes) $(document).on('loaded', '#' + bce_fieldID, function () { addBceColumnControls(); }); Same result
  13. Now I have tested it with the browser console. As you can see, there are no JS-errors: In line 165 of the BatchChildEditor.js the checkbox markup will be declared: bce_toggleControl = '<input type="checkbox" class="' + bce_columnControlClass + '" style="position: relative; top: 2px; margin-right: 4px;" />', But this markup will not be added next to tableheader cells. I havent been working with the browser console so far. Maybe I am doing something wrong or I am in the wrong part of the console, but I cannot find an error.
  14. Thanks @adrian, now the "double list" problem is gone. Your fix works
  15. Ah I see, I have custom labels for my children tab. In may case its called "Events". So it doesnt fetch "Children or Subpages".
  16. I can switch between "English" and "German" admin but there is no difference in my case. No there is no conflict between AOS and this module. The function seems ok. I have all my custom admin scripts disabled too. Maybe there is another module which could be responsible for this behaviour. Anyway! If I get more time I will try to find out if there are interferring problems with other modules.
  17. I cannot find any errors in the browser console too. I also cannot find any markup for the "delete all" icon. The corresponding table header cell looks like this: <th style="width: 76px;">Delete</th> As you can see there is no additional markup.
  18. I have uploaded a picture of this behaviour in the previous post. The batch child editor will be shown in addition to the default children list (tree) of PW under the children tab. At the top there is the batch child table and below is the PW child table. I have choosen the "replace" mode which should replace the default PW list with the batch child list. No there are no errors in the Tracy bar.
  19. Just to mention: Batch child editor version 1.6.4 ProcessWire: 3.0.60 PHP: 5.6.30 Server: Apache MySQL: 5.5.54
  20. No its not there in my case. I have downloaded your module today so it is the current version. Another problem is that the "replace" mode shows the default children list too (under the batch child list). I use the latest dev version of PW.
  21. Hello Adrian, it would be a good addition if it is possible to delete all children at once (fe. toggle a checkbox or a "delete all" button) without deleting the parent page. Especially if there is a great amount of child pages. So you dont have to toggle the delete button of each child. Best regards
  22. Thanks @gebeer but after replacing the MarkupLeafletMap.module file with your version, the map will be not rendered at all. So its not a big problem. I can view the map without modal too. A code modification is not what I want. But thousand thanks for your efforts. Best regards
  23. Does anyone has tried to show a Leaflet map inside a UIKit modal? The problem is that the map will not be rendered properly. I have searched the web but didnt found a working solution. The only one that I have found was https://yootheme.com/support/question/80769 but I cannot adapt it to get it work. Maybe someone had the same problem and found a working solution. Best regards
  24. Does no one has an idea? I have used the code from this post on the lates PW dev version (3.0.58) https://processwire.com/talk/topic/6277-image-upload-field-and-display/ For testing purposes I have copied the code from this post and put it into a new template. Unfortunately this code leads to this error message: So this upload example code doesnt work in PW 3.0.58 any longer. Here is the complete code example if someone wants to test it. <?php $upload_path = $config->paths->assets . "files/avatar_uploads/"; $f = new WireUpload('userimage'); $f->setMaxFiles(1); $f->setMaxFileSize(5*1024*1024); $f->setOverwrite(true); $f->setDestinationPath($upload_path); $f->setValidExtensions(array('jpg', 'jpeg', 'png', 'gif')); if($input->post->form_submit) { if(!is_dir($upload_path)) { if(!wireMkdir($upload_path)) throw new WireException("No upload path!"); } $files = $f->execute(); if ($f->getErrors()) { foreach($files as $filename) @unlink($upload_path . $filename); foreach($f->getErrors() as $e) echo $e; } else { //$u = $users->get($user); //$u = $user->name; //Save the photo to the avatar field $user->of(false); $user->userimage = $upload_path . $files[0]; $user->save(); $user->of(true); @unlink($upload_path . $files[0]); } } ?> <div id="content"> <form class="uk-form" accept-charset="utf-8" action="./" method="post" enctype="multipart/form-data" > <input type="file" id="attach" name="userimage" accept="image/jpg,image/jpeg,image/gif,image/png" /> <input type="submit" name="form_submit" value="Submit"/> </form> </div> "userimage" is the name of the imagefield "files/avatar_uploads" is the name of the temp folder Best regards
×
×
  • Create New...