Jump to content

Adam Kiss

Moderators
  • Posts

    1,303
  • Joined

  • Days Won

    7

Everything posted by Adam Kiss

  1. How in the world do you write a post to topic and miss an hour old post?
  2. Adam Kiss

    Getting Busier

    @Pete https://dl.dropbox.com/u/5392092/Screenshots/7q.jpg enclosed in bbcode's img tags
  3. Adam Kiss

    Getting Busier

    It isn't just your feeling I'd also include an image, but it tells me that I can't (using both PNG and JPEG)
  4. But the answer isn't very hard! The year 2013 is a year of 3 things we'd like to accomplish: Continue with this nice growth we are currently experiencing Get the documentation in the top notch shape (so the forums don't explode with the same questions and confused people) Keep on improving website All of these of course while improving the CMS (and the ecosystem as well) itself. Note: this is my opinion, not official statement from PW Team
  5. Yeah well, when I wrote that, I forgot for a while that it has to be confirmed on modules.processwire.com by Ryan, I suppose. So many mistakes… But, I repeat, it's out!
  6. Well, the strings should be prepared for translation, even though I haven't really played with translations before. I use static (read: always the same) strings for translation, although there might be problem with them being passed through variables. Unfortunately, there can't be $this->() call in class variable definition. Would it help if I moved the those string definitions into init() function? Any help here would be great! Also, Soma, thanks for spotting all the errors I am personally happy with my fast shipping (for a change!), but these things happen, and another set of eyes is always welcome. So, thanks again!
  7. Fixed. I also bumped version, so the fix gets picked up by ModulesManager
  8. I hear ya. 11 months ago has place for blogs for one There are many things planned, namely: limiting the level you go into (maybe you want something like 432 days and don't want it translated into 14 months) other formats (today at XX:YY, for instance) configurability of soft limits simpler way to go to hard limits than defining precise soft limits I just wanted this one out quickly, because I also planned to introduce new Modules group with it which I hope will catch on.
  9. My today's module ToolsTimeAgo sports also other function than only a tiny plugin. I would also like other plugins that give web developers API funcionality - like this one - to be grouped under tools. Out of my head, I am preparing also YAML parser (although I have to select one yet), and also Excel exporter could be there, and many more things, that basically have no place in Administration, usually. What do y'all think?
  10. TimeFormat for ProcessWire v1.0.3 This is a tiny ProcessWire Modules used for formatting times as 'X seconds ago', 'minutes ago'. It goes up to decades. Important note: this module uses 'soft limit' for units. That means that it will show '8 days ago' for 8 days, but '1 week ago' for 9 days, for instance. This will be configurable in one of the later releases. Usage It's very simple. Load module, pass the timestamp to `format` function. Bam, done. <?php $time_format = $modules->get('ToolsTimeFormat'); $posted = $time_format->ago($page->created); Links GitHub modules.processwire.com Notes v1.0.2 & v1.0.3 - bugfixing and module rename
  11. I support this, +1 Additionally, I think ACE Editor should be shipped with PW and used as default edit…
  12. @Ryan: I haven't realized that there was posted any code (I somehow thought this is just an idea), my bad! @OP: Wouldn't be better if these settings were somewhere in config possibly, rather than in administration? This is obviously just my preference, have code related settings in code, but I thought I'll throw it out; You could have something like this: $config->MarkupCache->rules = array( array('cache'=>'MyCacheName', 'selector'=>'template=home'), array('cache'=>'/^reg(.*?)exp$/', 'selector'=>'template=home|page|contact'));
  13. Also, since you are on /portfolio/, you might switch the call for portiolio items: $portfolio_items = $pages->get("/portfolio")->children(); //this is your call $portfolio_items = $page->children(); //you have '$page' from PW - current page Since in template you have always access to current page in $page variable, if you visit /portfolio/, $page is already there for you Note: if you are not using the page array in any other way later in code, you can as well do this: foreach($page->children() as $item){ // items' code }
  14. Ryan: any chance that this might get into 2.3? I'm kind of wrapping up one of my modules for 1.0, and this would make it super easy (well… easier) to implement waterfall partial caching for me (and speed stuff up).
  15. Hey Nico, I am totally using this already on two sites, but… Have you tried this with $config->debug turned on? It appends debug result under the mainframe, so you have effectively two body sliders - one on the content (next to sidebar, above breadcrumbs), and one for the whole page, because with debug info it's longer than 100%. Just letting you know. P.S.: Some solutions: If it's possible, you could control where the debug output is and push it in your div for content. Or, based on $config->debug, you could turn off some CSS styles and just let it grow naturally.
  16. @Soma: I'd leave the wireRmdir as it is; 2.3 is close, for one thing, and for people using MM to install modules upon creating new site (= just installing one of the theme, not reinstalling), it works on 2.2 as well.
  17. If that works like that, yes (regardless of quotes). Does that work like that?
  18. I was looking to replace one of my custom classes in http://processwire.com/talk/topic/1589-render-%E2%80%93-views-for-processwire/?hl=helperrender'>Render:: with TemplateFile, since it's core. What I need is a thing that takes variables and feeds them to the PHP file. But I was looking at the TemplateFile and I've seen no apparent way to feed it custom data? How would I do it? Thanks.
  19. Woohooo! I was thanked! What a day!
  20. Well, except that editor is going batshit crazy for me when I try to quote ("myParser is not defined in JS console") – but then again, I tried to turn it off… It's a good job done, Pete! @Ryan, do you really have ~700 unread notifications?!
×
×
  • Create New...