Jump to content

Nico Knoll

PW-Moderators
  • Posts

    1,835
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by Nico Knoll

  1. Lovely theme you are using
  2. I think we should do it the WordPress way (sorry for mention the w-name). We don't need processwire.de - we just could use http://de.processwire.org/ (or .com) as a beginning (like: http://de.wordpress.org/). This page doesn't have to include all of the pages processwire.com does. It just would be a "hello german user. Yes, ProcessWire has a german admin interface. You can downlad the bundle here." And if you download processwire on this site it may should contain a german profile already...
  3. I probably would join it - it's not that far from Germany
  4. Nico Knoll

    other CMSs

    @mathias: Lovely to have you here
  5. <?php $latest_portfolio = $pages->get("/portfolio")->children(); foreach($latest_portfolio as $item) { $thumb = $page->portfolio_image->first()->size(160); echo '<a href="' . $thumb->url . '"> <img src="' . $thumb->url . '" alt="' . $thumb->description . '"> </a>'; } ?> Should be fine.
  6. Still get the same error... I gave ALL files 777 before I continued the installation but assets only contains "index.php" and "installed.php"...
  7. Hi, currently TinyMCE is kind of standard implemented into PW. But I think that's no good practice because of the following points: (Almost) all of the Inputfields in /wire/modules/Inputfield/ are kind of "natural" html types. Like checkboxes or textareas. But TinyMCE is not. The size of the whole processwire folder is ca. 5mb and TinyMCE alone is 2.6mb. So TinyMCE is more then the half of the WHOLE system. And if I want to use ProcessWire only as CMF not as CMS I don't need it. TinyMCE is just one editor. The ACE module is another one but it's not installed by default. So in my opinion it's like IE on Windows (but of course PW is much nicer then Windows!). It's installed by default... How I would solve this: The easiest thing would be to move TinyMCE into the /site/modules/ folder. It would work from there as it is working currently. But you would have a stronger line between "naturally" implemented Fields and modules and additional modules (like TinyMCE should be!). And it would be easier to delete it if you don't need it because you don't have to "touch" the real system folders and files. Greets, Nico
  8. Still fixing some bugs. But will definitely do it when I'm done doing this!
  9. Isn't ->first() still working if I change it to allow only 1, is it?
  10. Hey, you should try: $image = $page->portfolio_image->first(); If I'm not completely wrong, the problem was that $page->portfolio_image points to the image field, not the first image. So $page->portfolio_image->url gives you the url of the folder where the files of this image field are saved. If you use $page->portfolio_image->first() you will get the first (and probably only) image in this field. And so $page->portfolio_image->first()->url gives you the right url. And if you want to add a real thumbnail you can do it with $image->size($width, $height, $options). More about this here: http://processwire.com/api/cheatsheet/#files
  11. Hey, not sure, if it's helping but here's the unzip function I'm using for my AuoUpgrade module: private function unzip($file){ $zip = zip_open($file); if(is_resource($zip)){ $tree = ""; $i = 0; while(($zip_entry = zip_read($zip)) !== false){ //echo "Unpacking ".zip_entry_name($zip_entry)."\n"; if(strpos(zip_entry_name($zip_entry), DIRECTORY_SEPARATOR) !== false){ $last = strrpos(zip_entry_name($zip_entry), DIRECTORY_SEPARATOR); $dir = substr(zip_entry_name($zip_entry), 0, $last); $file = substr(zip_entry_name($zip_entry), strrpos(zip_entry_name($zip_entry), DIRECTORY_SEPARATOR)+1); if(!is_dir($dir)){ if($i == 0) { $first_folder = $dir; } @mkdir($dir, 0755, true) or die("Unable to create $dir\n"); } if(strlen(trim($file)) > 0){ $return = @file_put_contents($dir."/".$file, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry))); if($return === false){ die("Unable to write file $dir/$file\n"); } } } else { file_put_contents($file, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry))); } $i++; } return $first_folder; } else { echo "Unable to open zip file\n"; return false; } }
  12. I think that's mine - great!
  13. Like I mentioned here: http://processwire.com/talk/topic/2105-custom-installation-generator/
  14. Looks nice, but: I don't like the white line. Would it be hard to change it like it was changed on the main page (the section above the line with a bit darker background and then remove the bar)?
  15. Looks gorgeous! But a quick question: I auto-translated the page to german and ... is this really russian blind text?
  16. Love this! Really nicely done!
  17. Had the same issue and since them I have to put a hash (#) in front of it everytime I upload a processwire installation to my server.
  18. Nico Knoll

    Member Map

    Ok. Thanks for at least trying!
  19. Nico Knoll

    Member Map

    Would be nice to have this (http://community.invisionpower.com/files/file/3070-member-map/) on the forum
  20. I've got a MacBook Pro 15" and a Dell 21" monitor. So I can take my Laptop with me and if I'm at home I just connect the monitor and don't use the laptop ones. It's faster then a MacMini I guess..
  21. -- Moved into development -- Please create a separate topic in "modules" for the finished module.
  22. I think I found the problem. It was just a TinyMCE thing. Uploaded a new version on GitHub. Should work...
  23. Thanks for the feedback. I will include the points into the next "pull"/"push"/"version"/whatever
  24. Hi, just had some free days and build my first admin template. I'm open for any ideas how to improve it. You can download it here: GitHub Greets, Nico
  25. shopify not spotify I guess
×
×
  • Create New...