Jump to content

adrian

PW-Moderators
  • Posts

    11,171
  • Joined

  • Last visited

  • Days Won

    371

Everything posted by adrian

  1. Could be totally off here, but have you tried start=0 in the selector in your hanna code?
  2. Hey Wanze, Just a small thing Could you please have the chart color config setting also control the color of the bar graphs throughout the module, rather than just the jQPlot charts? Thanks.
  3. Hi jacmaes, I have tracked down the issue. It is definitely a bug that should be reported to Ryan on Github. There are newly added checks for module permissions around line#457 of Modules.php (https://github.com/ryancramerdesign/ProcessWire/commit/2c0762d1f346a3f01171b4f65fa97242f17fd916#diff-995c5c9ce48d4bff459f52363c6e190eR457) The module that is blocking your access is actually ProcessPageSearch, which required page-edit permissions, which of course a guest user doesn't have. If you temporarily remove the permission check, or change the ProcessPageSearch permissions to page-view, it works again (obviously this is not the appropriate solution . Once that hack is in place though, there is one other new bug: {"errors":["Field 'it' is not allowed in queries"]} This can be fixed easily by adding this line to ServicePages.module inside the loop starting at line#174 foreach($k as $name) { if($name=="it") continue; //add this line Let us know if you want us to submit an issue of Github, or if you have taken care of it.
  4. Wow horst - just WOW! Once again, thanks for the amazingly detailed testing and for making the results available for all of us to see in such a well formatted and documented way!
  5. Hi Kae, Welcome to the forums! The default PW profile and the Zurb Foundation profiles that are available all come with a search box, search template, search page and associated search.php file. Have you tried using these? Or do you need something more customized? Well Kongondo just beat me to it
  6. It's not that I don't like the hamburger menu icon, but these days I associate it with a mobile menu, rather than a sidebar toggle.
  7. Thanks Nikola, Just playing around with this now - very nice It's great to have another 2.4 ready theme. I think it's time all the others listed in the modules directory get tagged as <=2.3 A few small things I have noticed. Scroll to top button closes the left sidebar I am not sure that the hamburger icon is the most obvious way of toggling that sidebar - maybe an arrow over at the top left of the page would be more obvious Your Pages menu item is not showing the new Tree and Find dropdown options (just made available in 2.4.4) With Lister (Page and User), there is an issue with the pagination buttons overlapping the selector string box With Kongondo's blog module the white text on the grey background doesn't work for the tabs very well. Not sure if this is something you should tweak, or he should tweak Thanks again for sharing! EDIT: Here is the change that is required to make the Pages dropdown work for 2.4.4: https://github.com/ryancramerdesign/ProcessWire/commit/0d6d11207e40bd605efc1f7e958c031845a05214#diff-543b5b46d33bea6194fe304104d022c6L208
  8. Sporadic errors like this that can't be reproduced consistently suggest it is a problem with your host. It is certainly not an issue with PW or it would happen every time you clicked on the same link. Ask your host to investigate, and if they can't fix it, change hosts. Here are a couple of discussions about the exact same problem that others have had with hostinger: http://forum.youhosting.com/topic6929-client-website-automatically-redirecting-to-hostingerinerror404.html http://www.000webhost.com/forum/customer-assistance/32262-error-404-redirect.html A little reading around about hostinger in general suggests that they are super cheap and unfortunately you get what you pay for You don't need a premium service, but in general it is a good idea to avoid the bargain guys!
  9. ok, clicking around things, I do randomly end up getting redirected to: http://www.hostinger.co.uk/? Is that what you mean by getting a 404? It seems completely random to me though - sometimes the page loads fine, and the next time it goes to that address. I think this might be a question for your host. This is not a real 404 error - it's a weird redirect that I am sure is because of a problem with hostinger. This generates a real 404 on your site: http://www.superguiabrasil.com.br/guia/dghjk
  10. I can login and access the admin panel just fine - what exactly are we looking for?
  11. A Forgot Password feature is available, but is not activated by default. I would recommend at this point installing a fresh copy of PW, but if you want it is possible to reset your password using one of these options: https://processwire.com/talk/topic/1736-forgot-backend-password-how-do-you-reset/?p=16133 https://processwire.com/talk/topic/490-how-to-reset-your-password-how-to-enable-the-forgot-password-function/
  12. Those details don't seem to be right - I get a "Login Failed" But the main pages of your site seem to be working fine: eg: http://www.superguiabrasil.com.br/guia/templates/
  13. Hey Jonathan, Thanks for this. I have just done some initial testing and it's working fine. I haven't yet done any comparisons with GD or Imagick to see if it is any better size/quality wise, but you sound convinced, so I am looking forward to analyzing more. One thing I did notice is that the ".jo" files will be left behind after deletion of the initially uploaded file. It is easy to extend Pageimage::isVariation to handle these. Horst did it with the PIM module and I did it with ImageRasterizer. EDIT - any thoughts in incorporating http://optipng.sourceforge.net/ (or similar) as well for PNGs?
  14. Thanks again for this! Just a couple of quick things. I am getting this notice: Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /Users/ajones/Sites/pwtest/site/modules/ProcessDiagnostics/ProcessDiagnostics.module on line 301 Also, I'd like to add my support to horst's suggestion of a batch table optimize button, because as it is, it just ends up being much quicker to fire up PHPMyAdmin to optimize all at once. EDIT: Sorry, looks like that notice is only there on < PHP 5.4 - my testing server is still only running 5.3, even though my live sites are 5.4 or 5.5
  15. Sounds like the google maps js file is not being loaded. You should see something like this in your page source: <script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?sensor=false'></script> Not sure why things would have changed though after your PW upgrade and server migration.
  16. You think that's cool - check out the new "Pages > Find" functionality which makes use of Lister, which is now available in the latest dev 2.4.4 PS, the new Users section uses Lister too
  17. You need to change your: != "" to: !== "" EDIT: It's a PHP zero empty thing Google "php empty zero" or something else along those lines.
  18. I have no need for the German language pack , but I am always so impressed about how quickly you are on these updates. I am sure lots of users are super appreciative!
  19. This is really rough, but I have tested it and it does work $p = $pages->get("/test/"); $rf = "repeater_test"; //repeater field name $ptf = "pagetabletest"; //pagetable field name $ptt = "basic-page"; //pagetable template name foreach($p->$rf as $r){ $npt = new Page(); $npt->of(false); $npt->template = $ptt; $npt->parent = $p; foreach($r->fields as $f){ $npt->$f = $r->$f; } $npt->save(); $p->of(false); $p->$ptf->add($npt); $p->save(); } The key thing is that for this to work as is, the repeater field must include a title field, because this is used to generate the names of the child pages for the pagetable entries. You could of course manually add a title field in the loop when creating the $npt page. EDIT: You can ignore the need for a title by making the title hidden and not required in the context of the pagetable template and setting a value for the automatic page name format when setting up the pagetable field. For this to work, the pagetable field must be already set up and ready to go. If I had more time today, I would have enhanced this a little more regarding the title/name issue, but hopefully it should get you going.
  20. Hi skidr0w and welcome to PW. I am not a multi-language guy, but have a read from this post onwards: https://processwire.com/talk/topic/2979-multi-language-page-names-urls/?p=35403 I skimmed quickly, so not sure how much it helps.
  21. Danijel, If I understand what you mean, then it's simply: foreach ( $page->children as $product ) { echo $product->sc_price; } The renderPrice function included in the shop module (https://github.com/apeisa/Shop-for-ProcessWire/blob/e27eb462502feecca085db82d3183204b2925850/ShoppingCart.module#L278) is just there to format the price, it is not needed at all to get the price for the product. Not sure how far along you are in your PW learning process, but the $page->children foreach is only relevant if you are on a page with multiple child pages as products. If you are on a single product child page already, then you might simply want this: echo $page->sc_price; Remember that $page refers to the current page being viewed, so in this case you are asking for the sc_price field for the current page. Hope that helps.
  22. Hi Danijel and welcome to PW. I haven't used the shop module yet, but I think what you are probably looking for is something like this: $product->sc_price So now of course you need to define $product. From looking around I think this should work: foreach ( $page->children as $product ) { echo $modules->get( "ShoppingCart" )->renderPrice( $product->sc_price ); }
  23. It actually depends a bit whether you want a single checkbox, or an array of checkbox items to choose from. The former is simply a matter a creating a field of type checkbox. The latter is what Martijn is talking about and requires creating a pagefield.
  24. You can do this: $userid = $users->get("$userName")->id; $ps = $pages->find("created_users_id=$userid");
×
×
  • Create New...