Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Pierre already gave you an answer. What you want is an AND (,) condition not an OR (|) in your selector. So.... $u = $users->find("roles=utente, roles=guest"); should give you what you want...That means, find users who have utente AND guest role. Both types of selectors are documented in the docs OR AND Edit: Clarification... See Pierre's post below. Above example is just for illustration and is somewhat redundant. All you need to search for is "utente" since everybody has a guest role....
  2. kongondo

    New Logo

    Chrome is always doing its own thing
  3. And now it's stopped working? Don't know what I did ....I'm getting server 404s
  4. @Adrian. Thanks, works a treat! Just tested on the blog profile...and got a nice 404! This is because the URL in session->redirect is "almost hard corded". In the blog profile search is under /tools/search . Assuming people would not always store their search page directly under root, maybe, in the instructions, ask user to change path in the module (tricky for some + would be overwritten with updates), or make module configurable. Maybe latter is better since some people might not even call the search page search?....Thanks again!
  5. Gotta love this community...just like that...here's a module! Thanks Adrian!
  6. kongondo

    New Logo

    Apeisa...read the page before this one.... ;-)...seems to be only on chrome ...Pete tested in FF....I also did....Safari? IE? I don't know...
  7. kongondo

    New Logo

    Are some people still missing the download buttons?
  8. The new admin theme is a module. You change it's settings in its module's configuration screen. Check under the Core tab in Admin/Modules - you'll see "Default Admin Theme". Click on the Settings button to select the option you want, Submit and enjoy
      • 1
      • Like
  9. You don' need to uninstall the core admin theme for your custom one to work...that's the whole idea with admin theme modules...multiple themes can be installed on the same site at the same time. You say you see it listed. Where? In modules or under users page? Have you actually installed the module? If yes, you should then go to access/users and select your theme there. Maybe you've done this already and my questions seem pointless but your post is not clear, sorry
  10. kongondo

    New Logo

    Been seeing that too...not just about page...this happens on all the side menus...maybe some js issue? Edit: attached screenshot
  11. http://processwire.com/talk/topic/4883-searching-pages-with-date-like-someday/ http://processwire.com/talk/topic/3290-sort-by-date-range/
  12. Clarify... Today (your title) or certain date and time? Modified or Created? Those two are different things ...hehe...I thought Soma is on to Something!
  13. That's the easy bit...I don't want to spoil ur fun...hint, check MM module Apeisa was right; once you create a ProcessModule, "your life will never be the same again!"
  14. - for jQuery DT - u can use Soma's module/helper class...if u want..
  15. Well Google does...it means you are using Drupal...hehe, just kidding . Googling that error returns Drupal stuff in the first few results... From what I see (and this is not very helpful)....something seems to be resubmitting the form? i.e. trying to create another page with the form using same name as one that already exists, or just created? (as in your step #1 in first post)....
  16. I thought that looked familiar, hehe!
  17. Thanks for the update Ryan! Great job!
  18. This should get you started... http://processwire.com/talk/topic/2331-doing-additional-logic-after-saving-a-new-page/?p=21881
  19. Aaah, I see. sorry for my rumblings then....In that case, like Horst said, you would need a hook, maybe in an autoload module...
  20. Edit....if those sub-pages will never be published, then, via their template (the sub-pages), you can remove guest role view....that way, whether published or not, guest role (the world) will never be able to view them... setup/templates/ access tab - then "do you want to manage view and edit access..." - select yes. Then, under "what role can access....", deselect guest under view pages. Save and you are done....You can always change the settings or move sub-pages that you want to be viewable to another (similar/clone) template... Above can be done in combination with limiting children of the parent whose sub-pages you want to control to only be able to use your particular template with the access controls (as explained above...) - "allowed template(s) for children" under setup/templates/ family tab... Edited: additions + clarified stuff.
  21. As far as I know: A hidden page does not make it invisible. If one has the URL AND the page has a template file AND the page is not a child or other descendant of the Admin page AND the page's "who can access this page?" setting allows guest role to view it, the page can be viewed on the frontend via its URL A hidden page status does not cascade to its children...a child of a parent with a hidden page status can be viewed too! The hidden status only blocks the page from searches and lists (e.g. selector; but can be overridden with include=all or include=hidden) Unpublished pages cannot be viewed via their URL Children of unpublished pages are still visible via their URL. Then again, you probably know all these already... References: http://processwire.com/api/selectors/#access_control http://processwire.com/api/variables/pages/ - scroll to "NOTE ABOUT ACCESS ROLES AND PAGES"
  22. Interesting, similar question was asked today (and has been asked before), so will refer you to that thread from today... Remember pages are also rows in the DB....whether a million, ten million or more
  23. Advantage with pages is that you can easily use PW API to select, manipulate, etc..the records.But there's nothing stopping you from creating custom tables to store the ratings and associate those with your users. [e.g. storing user ID together with their ratings]. Btw, there is nothing wrong with 1 million pages , per see...viewing them in the tree might be an issue though..in terms of scrolling through (but theres' search). If you have lots of pages, you can hide them under some parent page, e.g. in admin, and create a module to list them in a table with links to edit them. I am just thinking out loud here....Undoubtedly you'll get better ideas soon ...
  24. Just reading this quickly...There's a rating systems module somewhere here in the forums...I think....or maybe that's not what you are after... Edit: have a look at these: http://bit.ly/1pTvGnM
  25. I thought we had already sneaked it in....didn't even bother to confirm since it's the first one I normally go for...assumed it was one of @Adrian's links above
×
×
  • Create New...