Jump to content

PWaddict

Members
  • Posts

    926
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by PWaddict

  1. @matjazp The module's css is causing style issue on the entire admin at inputfield label headers. This happens only on localhost. This line causing the issue: .InputfieldForm label.InputfieldHeader { padding-top: .4em; } Localhost screenshot Server screenshot
  2. Go to your PW installation files. There you will find the .htaccess file among the site & wire folders etc. Open that file with an editor and paste the above code.
  3. @bernhard Here is the code I used on site/ready.php and it works great: if($this->page->template == 'admin') { $this->addHookAfter('Page::render', function($event) { $css = wire('config')->urls->templates . 'styles/AdminThemeUikit.css?v=1'; $js = wire('config')->urls->templates . 'scripts/AdminThemeUikit.js?v=1'; $event->return = str_replace("</head>", "\n<link type='text/css' href='{$css}' rel='stylesheet'/>\n</head>", $event->return); $event->return = str_replace("</body>", "\n<script type='text/javascript' src='{$js}'></script>\n</body>", $event->return); }); }; I've also uninstalled Admin Custom Files since I was only using it to inject theme files. Thank you.
  4. Is it possible to do this on site/ready.php without creating a module?
  5. Here is the css & js structure with the AdminThemeDefault: and here is with the AdminThemeUikit: So maybe it needs an extra hook that is specific to AdminThemeUikit in order for the files to be injected at the very end
  6. My custom js for AdminThemeUikit is still loading before the original files. This is happening only for js. The custom css loads properly.
  7. I'm trying to inject a custom js for AdminThemeUikit but it loads before the original AdminThemeUikit js files. How to make it load after the original files?
  8. How to hide the dropdown menu of "Pages" on AdminThemeUikit?
  9. I think @adrian's reply on a similar topic will help what you want to achieve.
  10. Chrome has been officially updated to 62.0.3202.62 and now the problem is gone
  11. I just found this one http://www.malevole.com/mv/misc/text/
  12. @maxf5 Did you installed the Page Path History core module?
  13. I'm already having the latest graphics driver. I don't think that's possible to roll back to an older version of Chrome but I've just installed the latest beta version of Chrome 62.0.3202.45 and the issue is gone. Btw the images are blurry on the beta so I will uninstall it and wait for an update on the stable version. At least now I know that they fixed it. I will post again on the next stable version.
  14. I've already disable all the extensions and the issue is still there. I tried both and the issue is still there.
  15. I've already updated to the latest nvidia drivers 385.69. I always have the hardware acceleration disabled. I forced vsync on Chrome but nothing is fixing the issue.
  16. Install the Admin Custom Files module. On site/templates/AdminCustomFiles folder create a css file named ProcessPageEdit.css and add the following code: .InputfieldImageButtonCrop { display: none !important; } Then on the Admin Custom Files module settings at the "Activate for process" section select ProcessPageEdit, (Page Edit).
  17. While I was developing a website in the previous week I notice a strange behavior on Chrome browser. When hovering on image links they were moving down 1px and sometimes getting vertical screen tearing. I couldn't find why this was happening. I googled about this issue and didn't find something similar. Then I saw the exact same issue on other sites too (not mine). It doesn't always happen, you have to scroll up/down first and try to hover on links or img links or even click on those links. I tried other browsers like Firefox, IE11 even the Steam web browser and everything is working fine there. In the previous week Chrome updated to 61.0.3163.100. Is any of you having this issue? Here is screenshot while I was hovering the navigation menu on the Steam site and the vertical screen tearing happened.
  18. @renobird Are you trying this on localhost or server? You should try both with the same installation.
  19. To always display the map at the center even if the browser resized or the full screen button pressed just use the below function: google.maps.event.addDomListener(window, 'resize', function() { var center = map.getCenter() google.maps.event.trigger(map, "resize") map.setCenter(center) });
  20. Here is my best solution so far. Now, when I click on the "a:not(.external)" links the pages are always load with "scrollTop(0)" and when I use the browser's back/forward buttons "popstate" I always get the saved scroll position. There is only 1 tiny problem with the "popstate". Once I press the browser's back/forward buttons I get instantly the saved scroll position on the current page and then the page gets replaced with the correct one. How can I make it to get the scroll position ONLY when the page gets replaced and not before? $(function() { $(document).on('click', 'a:not(.external)', function(e) { var replacePage = function(url) { $.ajax({ url: url, type: 'get', dataType: 'html', success: function(data) { $(window).scrollTop(0); var dom = $(data); var title = dom.filter('title').text(); var html = dom.filter('.ajax-container').html(); $('title').text(title); $('.ajax-container').html(html); } }); }; history.pushState(null, null, this.href); replacePage(this.href); e.preventDefault(); }); $(window).on('popstate', function() { var replacePagePopstate = function(url) { $.ajax({ url: url, type: 'get', dataType: 'html', success: function(data) { var dom = $(data); var title = dom.filter('title').text(); var html = dom.filter('.ajax-container').html(); $('title').text(title); $('.ajax-container').html(html); } }); }; replacePagePopstate(location.pathname); }); });
  21. @abdus It doesn't work and I don't know how to modify it but thanks anyway!
  22. There is only a small "downside" if the website is already online. All links from the default language (except homepage) will change so the Page Path History module MUST be installed to avoid 404 errors from previously shared pages, google search etc. Make sure to update your README.md with all these important info.
  23. @Mike Rockett nice "trick"! I don't remember seeing that option on LanguageSupportPageNames. I will definitely gonna use that. I'm currently using the language_iso_code field not only on my sitemap but also on site's navigation (hreflang) and the flag icons but I will delete it
  24. I'm currently using the Window Resizer Chrome extension.
×
×
  • Create New...