Jump to content

MarcC

Members
  • Posts

    380
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MarcC

  1. Just launched my father-in-law's pottery studio website: Jim McKell Art Studio. Technically I suppose it's nothing super special, but it's been really fun to put his work on display. Enjoy.
  2. This is great, Ryan. I admin another site that has a "Failed login attempt" check -- it emails me the IP address and username when an incorrect password or username is entered. This has been really nice because after a few failed attempts I can call the client and offer to help. And of course security reasons--it's a financial services site. So if you do add to this module in the future, such a feature would be awesome.
  3. What about ProcessWire's $a->first() and $a->last() ? Unless there's something I'm not seeing here.
  4. Hey Tom, I really like Ryan's approach in the thread linked above. For one, it's well-documented (and gets better toward the bottom of the post), but I like how it lets you modify items in <head> in a really elegant way. Heck, the whole thing is really elegant compared to the standard include method. I'd love to see some of Soma's code from his example though, since I didn't grasp it entirely.
  5. Ah, that was it. I created that particular page in a practice run, before I had created the separate templates. Thanks apeisa!
  6. Doh, just checked, that's what I was already doing. My brain is fried Thanks again !
  7. I have a selector that uses the page ID to narrow down items by a page field. Basically $pages->find("organization={$page->id}"); However, it doesn't work with one page, because it lacks an ID--how is this possible? What can I do to fix it? Thanks. This is in PW 2.2.0.1.
  8. Very helpful! Thanks Soma, I'm excited to try it. BTW, is there a way to exclude items from the menu? Maybe I missed something...
  9. These can be as simple as typing the blocks into a PHP file, like "building_block_a.inc.php" and then putting this in your template: <?php include('./building_block_a.inc.php'); ?> Yes, so inside of building_block_a.inc.php you can use ANY ProcessWire calls you like. So you can put <?php echo $page->sidebar; ?> and it will pull in the sidebar from the current page. You can display any field from any page on the site. Much different from working with MODx, but simpler I think ...and no extJS ha ha
  10. Hi joyfulcode, To do an offset I think you could just add "start=n" right after you've got "sort=date" where n is the number of items to offset (though this attribute is a bit hard to find; even using the cheatsheet search). Using the example from the docs: <ul><?php $moreitems = $page->children("sort=date, start=3"); foreach ($moreitems as $item) echo "<li><a href='{$item->url}'>{$item->title}</a></li>"; ?>
</ul>
  11. Since you can use TimThumb with any CMS, it's definitely worth scanning for. I have used it in the past with Textpattern. It's neat but I remember last August & that was a gaping security hole. Glad it was forked and fixed and re-merged. I don't do Wordpress projects anymore. I have had some clients ask about it because they heard about it from friends, but it's a low-end market and the good folks who develop WordPress have a roadmap that diverges from what most of my clients want and how they want it. I just tell my clients that and, if anything, it gets me more business. There is a very large audience for the product, but it's not my audience.
  12. Thanks, Robert. Looks like a fix was checked in, too.
  13. Perhaps someone with more knowledge of how this bug works than myself could file the bug at https://github.com/n.../textile/issues
  14. TXP user here, too. I was a little confused by terminology--not sure what a "workfield" is, but I am creating a similar project in ProcessWire right now--a business dashboard. As far as I can tell, what you want to do is possible. With the relationships, AFAIK it's very similar to setting up e.g. a tag or category system with a blog. For the News / Related Items portion, you can add a field to your News template that lets you select any number of pages on the website. Then you would just put in code that renders those items as linked titles. This is kind of open-ended (maybe a bit annoying if you have thousands of items from which to choose) but it would be very straightforward to use. Maybe Ryan or others could suggest alternate approaches.
  15. Ha ha, no, I saw the thread, but it just confused me Thanks, Ryan.
  16. I updated the TinyMCE content.css in the /wire folder to add a fairly important style declaration. Since I know this can be completely wiped during an upgrade, I created an upgrade_notes.txt file in /site that documented the change. But it felt a little weird so: Am I missing something here? A better way to make this fix? Thanks.
  17. Which browser? I had this happen in IE8 but it's not recommended for ProcessWire.
  18. MarcC

    Adminer

    Thanks for the info on Adminer. Looks interesting. I tried SQL Buddy recently too, and really loved the simplicity of it.
  19. Three times in logs in the last day. I found out about it via automated error email from the site.
  20. Yep, it's a single image field. Weird, not sure why the error then.
  21. I'm seeing this error in the logs: 2012-01-18 09:23:37: guest:/pagename/:Error:Call to a member function width() on a non-object (line 57 of /home/blah/public_html/site/templates/sidebar.inc.php) Here's the code in question: (56) $newsletter = $pages->get('/'); (57) $newsThumb = $newsletter->sidebar_image->width(155); The sidebar seems to render OK, there's an image in the field in question, and it is being resized properly. But I fear my way of getting the page or image is a bit off. Thanks
  22. Thanks guys. Ryan, thanks for the new image, I tested it and it works fine. 1.562 DPI though...that is really odd. I've emailed some instructions for future image editing, and told them it may end up being the fault of the image editor.
  23. There is an organic carrots image here on the front page that doesn't show up in Internet Explorer 8 in Windows 7, but shows up in every other browser I've tried. Any ideas why this might be? Here's the direct image URL: http://ukiahcoop.com/site/assets/files/1/organiccarrots.jpg I'm wondering if it's an issue with the file size--way too large at 670KB, but anybody know if that would be causing the problem? File attributes and privileges look OK.
  24. Oh, looks like it's working now. Sorry! Thanks for the responses.
  25. Thanks, Ryan. I switched display_options to a single checkbox (bool). However, both checked and unchecked items are hidden now. See anything wrong with this? $stories = $pages->get('/news/co-op-news')->children("limit=4, display_options=0"); (Will probably change the field name later so it's more specific)
×
×
  • Create New...