Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/04/2012 in all areas

  1. I see that Ryan is about to become the first forum member to pass the "one thousand and one" thank-you's (likes) so I'd just like to take the opportunity (seeing as we are in the Pub) to raise my glass and say a big "Thank You" for the effort he keeps putting into PW, the site and the forum. Whilst I'm at it, I'll raise my glass to the others who contribute regularly too.
    11 points
  2. Thanks Steve! That's very kind of you. What you may not know is that I've been raising my beer glass to all of you this whole time. Here's the rest of my profile photo
    9 points
  3. Michael van Laar was kind enough to make a vectorized version of the ProcessWire logo with several variations, and he sent them to me. This is the first time the PW logo has existed in a vectorized format. Now I'm thinking I need to have some coffee mugs, hats, t-shirts, or airplane banners made. Attached is a ZIP file of the logos he put together, in case anyone wants them to make their own "powered by ProcessWire" banner or anything like that. This will probably become part of a more formal media kit at some point. ProcessWire-logo-michael.zip
    5 points
  4. For sites without a lot of fields, I think that adding a groups designation would just be confusing, at least for new users. So would ideally like to find something that you don't really notice until you are specifically looking for it. How about if the field's 'advanced' tab had a text input where you could enter one or more tags? When used, the fields list would include a list of tags in use at the top, and clicking any one of them would make the list show only fields with the clicked tag.
    4 points
  5. Ryan you reached the thousands likes! WOW, can I have some?
    3 points
  6. That made my day! ROFL!
    2 points
  7. Well, technically it's a double-handled ProcessWire-engraved beer stein, but you can also use it for coffee too if you want.
    2 points
  8. Try using $session->authenticate() to do this. Check it out in wire/core/session.php Call it something like the code in line 209.
    2 points
  9. This is a bit confusing because you have two pages called notes. Still, I will give it a try. Is this what you want? foreach ($pages->get("/category/")->children as $cat) { // find all pages with this category $withThisCat = $pages->get("/notes/")->find("note_category=$cat"); // if some pages have this category if($withThisCat->count() > 0){ // print the category link echo "<p><a href='{$cat->url}'>{$cat->title}</a></p>"; } } edit: added variables to make it more clear
    1 point
  10. HAHAHA! +1 on what Soma said.
    1 point
  11. Wait for Nik, he has pretty insane posts to likes ratio...
    1 point
  12. Michael should comment here so we can like him! And PW coffee mug? Great idea!
    1 point
  13. 1000 !!! Thank you Ryan...
    1 point
  14. Gave a like to him just before reading this, so it goes on 998 now. wait, 999 now... This is exciting +1
    1 point
  15. Looks good! Though I think you are probably better off with a solution that doesn't require modifying a core file (but I'll be happy to update the core if you think this is going to have broader usefulness). I modified my previous example a bit, just so that it's a little smarter about when it decides to add the hook (slightly less overhead). Basically, it moves some of the logic out of the hook function and instead uses it to determine whether to even attempt the hook. public function ready() { if($this->page->template != 'admin') return; if($this->input->get->parent_id != $the_parent_id_you_want) return; // only add our hook if template is admin and there a parent_id GET variable with the value we want $this->addHookBefore('InputfieldPageName::render', $this, 'hookRender'); } public function hookRender(HookEvent $event) { // if process isn't ProcessPageAdd, exit now if($this->process != 'ProcessPageAdd') return; $inputfield = $event->object; // if the input already has a populated value (possibly from another hook?), exit now if(strlen($inputfield->attr('value'))) return; // if we made it here, populate the value attribute $inputfield->attr('value', 'the-page-name-you-want'); }
    1 point
  16. I don't understand how you page tree goes? What are posts and what are categories? Can you post a screenshot? It seems that you are looping through all the posts and getting categories that way -> you should loop just the categories.
    1 point
  17. Problem is that that isn't really secure. If I would use a computer with an account still logged in and I could just change the password like that the actual owned of that account wouldn't be happy. That's the reason why many of the sites out there ask you for your old password before you can change it.
    1 point
  18. Nice NetTuts+ tutorial about using the GoCardless payment system for those based in the UK.
    1 point
  19. I used to get clients to do it themselves but sometimes they forget. Now I do it automatically with a PHP script and cron job that copies all files and databases over to AmazonS3. There's a few like that around.
    1 point
  20. Turns out that is the case. I was going by the youtube embed code from the site which would use a URL that looks like this: https://www.youtube.com/embed/Wl4XiYadV_k?rel=0 But using &rel=0 is correct and works. Thanks for the correction.
    1 point
  21. I might be remembering this wrong from my deep past of playing in the mirky bowels of output buffering in PHP but I think you can do it by either adding something into php.ini or by setting up your output buffer to use gzip. Check out ob_gzhandler().
    1 point
  22. SInce you have it in a subfolder PW will include it in url generated for pages. To modify the url PW spits out you could create a simple module to the Page:path This will work for also links in tinymce and $page->url would spit out the right url in your case, so no code changes in your templates. Although you could. A module like the HelloWorld.module can be taken and add this stuff. The module is autoload so will always replace the path, backend and frontend. In the init add a hook: public function init(){ $this->addHookAfter('Page::path', $this, 'replacePath'); } In add a method replacePath: public function replacePath(HookEvent $event) { // url generated by PW $old = $event->return; // strip out the subfolder $new = str_replace("/annemieboer.nl", "", $old); // return new path $event->return = $new; } Install it and see if it works as it should everywhere. Tinymce links, page fields and selects.
    1 point
  23. Hi, there I run pw on nginx too, here you are my $0.02 When I was setting up pw I got a page with the error "No input file specified" which I think served to me not nginx, but a php engine. I solved that by adding this line to the location block in nginx site config: fastcgi_param SCRIPT_FILENAME /path/to/processwire/root/folder/$fastcgi_script_name;
    1 point
  24. The Save-to-Pages feature is now available in the current version of Form Builder (0.1.4) posted in the Form Builder support forum this morning. It hasn't had a lot of testing yet, but I believe this feature is ready for people to use so long as you test things out adequately after configuring them, and let me know of any issues or concerns you find. To use it, you click "Save to ProcessWire Pages" on the Actions tab of any form. A fieldset will appear asking you to select a template to use for new pages. Hit save, then go back to this screen. More options will now appear, like this: From there, you choose the parent where pages will be created and setup what fields in Form Builder will populate the Page fields. You also get to choose whether you want the pages to be created manually or automatically. If automatically, then you can set whether they should be published or unpublished. Automatic pages are created at the time the form is submitted. Manual pages are created by you checking a box on the entries screen. Here's what that looks like: You click the checkboxes for any of the entries you want to create pages from and then click the "Send Checked to Pages" button at the bottom. The pages are created immediately. Note the "Page" column in the screenshot above. If an entry has already been sent to a page, then this column will be populated with the ID of the page. If you click on it, it'll take you to that page. Should you re-send one of those to a page, then it will update the existing page rather than creating a new one.
    1 point
  25. Here is one. After I saw this, I decided to also build my small icon with css ➔ http://diogoo.com/ I love it
    1 point
  26. Yep. Form Builder 0.1.4 supports the Password Inputfield (which always uses double inputs).
    1 point
  27. Below, I'll write how you can move your site from Drupal to ProcessWire. It's quite simple. In Drupal you will need: - Views Module, - Views Data Export Module, - Views UI Module (integrated with Views), - Chaos tools Module - required by Views. Install these modules and switch them on. In ProcessWire you need only: - CSV Page Import Process (Import Pages from CSV). Install this module. When you are ready, you have to create a new View (select: "Create a page") in Drupal with all fields which you want to export. Then, add "Data export" subpage and make sure, that format is CSV file. It's a good idea, to use Pager when you have lot of nodes (pages). You have to setup an url to download your CSV files. When you are ready - download your data. Next step: In ProcessWire, you have to prepare a template with your fields. When that's finished, you can import your data from CSV files using "CSV Page Import". That's all. If you have any questions, write them below. I can also write complete scenario for my website (if there will be anyone interested in that).
    1 point
×
×
  • Create New...