Jump to content

Macrura

PW-Moderators
  • Posts

    2,765
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. you can just place like a fixperms.php (with the below code) file in the root and load it (then delete it): <?php exec ("find /home/user/public_html/ -type d -exec chmod 0755 {} +"); exec ("find /home/user/public_html/ -type f -exec chmod 0644 {} +"); replace the path with the root of which folders you need to fix. our main host switched like 30 sites to a different machine and the perms were completely messed up after the migration.
  2. I have the same issue as @Zeka - i can't use T on backend, because of the white screens... haven't had time to figure out the issue...
  3. right, you'd probably want to cache that markup for a certain time, like using wireCache otherwise, i'm not sure how else you'd get the contents of those files into PW pages, maybe ajax load, or iFrame are other options
  4. I would probably go with file_get_contents of the index.html files but you may also have to somehow account for asset locations, maybe with string replacements.
  5. you'd need to make some function to output the individual assets, for example when an admin is logged in.. (very basic example) if($user->isLoggedin) { listAssets($stylesheets); } else { echo AllInOneMinify::CSS($stylesheets)); } that's how i do it..
  6. don't you need to use $item->getForPage() (should return the page the $item is assigned to) <?> at least that's how i always deal with repeaters if they are not in $page context
  7. There does seem to be an issue. see i am going to be testing more later and try and submit a github issue
  8. Pursuant to the post above by @MarcU, i am seeing the same behavior, that is the "Add New" functionality for page selects appears to be broken (ProcessWire 3.0.25 devns)
  9. I guess i might have done the sticky thing, but i assumed that meant it would show up in the selected panels in the module settings; If that's not the case, then it would be hard to 'undo' a scenario where an enabled panel under sticky mode was causing epic page loads, how would you get to the frontend panel to turn it off? i probably will use it only in the regular template files, it will definitely come in handy - many thanks!
  10. 1) Right, I don't have ToDo enabled, but it still loads all 1000 warnings 2.) OK - yes there is a massive horde of js files inside my templates folder, because I have a /themes/ folder and inside there are like 5 themes, each with a ton of css and js files, and probably a lot of those are not UTF-8 I will go ahead and exclude everything now and see what happens (can't test much because it takes about 10 minutes to render the page with warnings!) EDIT: SUCCESS I disallowed a bunch of directories and i didn't have ToDo enabled in the module settings, but it was loading on the bar, until i actually went and turned of off from the bar; so now it all works, and the ToDo was actually loading, though i have it disabled now, will check it out later...
  11. I don't know about the upgrade from/to because i deleted the previous one - sorry! I also don't know anything about ToDo, i don't use it, and don't know how it works, but I'm sure i have a ton of whack stuff in my template files, so if it is trying to read those for anything particular, then i can easily see why it might crash; all of the templates are in UTF-8 i think but i put stuff like this at the top of some of them: /** __ __ / / / /___ ____ ___ ___ / /_/ / __ \/ __ `__ \/ _ \ / __ / /_/ / / / / / / __/ /_/ /_/\____/_/ /_/ /_/\___/ */ because I have a lot of template files open at once and this makes it easier to see where i am
  12. Just upgraded, and I'm getting hundreds of errors like this, which are hanging the browser, and making Tracy unusable: Warning: Unexpected character in input: '�' (ASCII=4) state=0 in .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/TodoPanel.inc on line 190 Warning: Unexpected character in input: ' in .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/TodoPanel.inc on line I tried un-installing and re-installing but still can't use it...
  13. I think what you are getting at is a way to "field cache" the results of the selector field so that you don't have to evaluate it at runtime, and thereby allow that field to be used in selectors etc; You can just add a hook to the saveReady and then evaluate the selector result, and save the pipe delimited ids into that field; very simple and effective way of field caching and i use it a lot. The only snafu is that the beauty of the selector field is it's inherent dynamism, meaning you don't need to interact with the page anymore once the selector field is configured (new pages would 'auto-add' to the results). But if you field cache those results, they will be frozen at the time you save that page. You'd need another element which would be like a cron job that updates the field once in a while or when other pages are saved. Another option would be to wirecache those selector field results.
  14. @kongondo great! Thanks for the update, and for this module! Will post the the final site/use once it's done (about a month away...)
  15. You can sell them here: https://processwireshop.pw/
  16. @kixe can you upgrade to 3.0.23. A lot of modules and other stuff was broken on .22
  17. right - the use case is that we have a media library and that holds images that are used in various places on the site. On any of those images in the library, the users should be allowed to use the image marker functionality, or not use it...
  18. working well, like the Lato font; noticing that the top breadcrumb is breaking to 2 lines
  19. I was thinking of using this, but was wondering about the possibility of making it optional, for example in a template where you might want to make it optional to create image markers, is there anyway for the module to not show an error if there is no image in the specified image field. If that's not really possible then we can come up with a work around (using an alternate template etc..) Thanks!
  20. 1.) "<article> <h2>{$page->title}</h2> <header class='news-meta'><strong>Date : </strong>{$page->publish_date}</header> <div class='news-content-text'> <p>{$page->summary}</p> </div> <div class='article'>{$page->body}</div> <p><img src='{$image->url}' alt='{$image->description}'></p> </article>"; _main.php should be the global layout; the templates just populate the content variable which is within the content area of the '_main' layout. $page->body is the "body" field (the one with the Rich Text Editor) Closing brackets are not needed and should always be left out when the file ends with php code: https://processwire.com/api/coding-style-guide/#2-general
  21. you could do a hook that rewrites the URL for those child pages to the parent.. doing it 'all the time' in site/ready.php /** * This hook modifies the default behavior of the Page::path function (and thereby Page::url) * this will rewrite the path to children that should not have their own page * any automatic links to the page, e.g. in the admin, will direct to the parent page. * */ wire()->addHookBefore('Page::path', function($event) { $page = $event->object; if($page->template == 'sometemplate') { $event->replace = true; $event->return = $page->parent->path; } });
  22. Latest version of InputfieldSelectize(1.0.1) has some cleanup and multiple version adds support for max items.
  23. So after some hours of testing/research/code experiments, that yielded the modifications I made to the module as noted on GitHub, i can now send messages with the ability to switch between the sending domain and it all works. (also see edited post above). Goodbye Mandrill!
  24. Also the new code button doesn't allow line numbers (?)
  25. cool that you found the selectize inputfield.. hope it works well and let me know if you run into any issues or requests. In combination with the custom PHP option it opens up to almost anything.. hope to be releasing an ajax version sometime in future..
×
×
  • Create New...