Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. I noticed the same thing a week ago - Ryan committed the fix just recently: https://github.com/ryancramerdesign/ProcessWire/issues/134
  2. It shouldn't be anything unstable, just what came from package manager: PHP Version 5.4.6-1ubuntu1 I was thinking that maybe I was messing with git, but other than that all the 2.3 features seem to work just fine. Does anyone else have 5.4 available to test dev branch? I did follow the inheritance stack (just to be sure) and I don't understand why it is throwing that error. It does comes from WireData.
  3. I did forget to update this: there was an actual issue that is fixed now on latest commit. Thanks Arjen for finding and Teppo for fixing!
  4. Testing dev branch on my local linux: great work with responsive stuff! But modules page gives me this: Error Class SessionHandlerDB contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (ConfigurableModule::__get, ConfigurableModule::__set) (line 195 of /home/apeisa/Apache/Admintest/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module) I tried to clear modules cache, but still no luck. PHP is 5.4 something.
  5. What about using gist and embedding those on the forum? Gist embeds are simply: <script src="https://gist.github.com/4146884.js?file=gistfile1.txt"></script> (of course not yet supported, needs plugin for this board/editor). That would fix indentation problems, but also would offer version history, support for multiple files and it would be very easy to build central repo to just referencing to those gists.
  6. Or this: $page->import_page->render();
  7. Did you check the above tip from Nik? ppt and pptx are not in allowed file types by default.
  8. How about this: if ($page->guests->has("guest_name={$guest->title}")) { $checked = 'checked'; }
  9. What about Setup => Templates => basic-page (or any other template you need) => Advanced tab => List of fields to display in the admin Page List => "title path" Edit: and if "path" is too much information, you can use "name" also.
  10. Edit the corresponding field settings. Setup => Fields => your_image_field
  11. Please, see this topic (there are few other server settings that needs to be adjusted):
  12. It is supercool. Be sure the check these short tutorials from Youtube: https://www.youtube.com/watch?v=IRelx4-ISbs
  13. Oh, and few things I would like to add: Voting only for logged in users and once per user Vote multiple options Create more than one poll per page (or at least archive old ones) Better "have you voted yet" -checking. Not sure which would be best way to go and not looking for anything bulletproof here Using some csrf-token to avoid super easy "hacking".
  14. I just pushed a new module to Github. I really liked Soma's idea (and execution!) to learn new frontend stuff while building useful modules to PW. While Soma is learning Knockout, I actually find AngularJS more interesting. So here is my first "AngularJS-powered" module: FieldtypePoll. This is simple polling fieldtype for (not so serious) votings like: Q: How is the weather today? a) Fine b) Rainy c) I don't know, been coding all day This should be all usable already, so if you are adventurous and want to help me debug, this is how to get started: 1. Grab the code -> https://github.com/a...a/FieldtypePoll (actual fieldtype and inputfield) -> https://github.com/apeisa/AngularJS (AngularJS and AngularUI for PW) 2. Install the FieldtypePoll module 3. Create new field, choose "Poll" as a new fieldtype 4. Add field to a template 5. Edit your template file, output the field: echo $page->whatEverNameYouGaveInStep3 6. Add some css: .PollApe .percentage { background: black; font-size: 10px; min-width: 5px; border-radius: 4px; padding: 4px 8px; text-align: right; color: white; margin-bottom: 0.6em; } .PollApe .PollApeTotalVotes { border-top: 1px solid #ccc; }
  15. Well, kind of obvious but is mod_rewrite enabled?
  16. Arjen, sorry to hear about problems. Your setup seems right to me. Just to confirm: if you do remove the domain from module settings, you can use www.seconddomain.com and browse the "root site" normally? Also www.maindomain.com/www.seconddomain.com/ works and you can access that page normally? Then if you try www.seconddomain.com is the 404 error msg generated by PW or Apache? Does the module do any redirects? What is visible on addressbar? Feel free to PM me any additional details if you want me to take closer look.
  17. 1. This will be fixed when we get the new site design released (preview: www.processwire.net) 2. Same thing as above. 3. True. It would be great to have simple tutorial, which takes static site design and brings it to live. PW is very straightforward to use in that case. 4. We all do!
  18. Can you paste full code you have now?
  19. There isn't a method to grab width or height of single thumbnail. Never actually even thought about it, since you have defined those by yourself (they aren't actually dynamic values). I have been thinking of making cropping little less custom and work little like size(100,100) works. So you could say: $page->image->crop('thumbnail')->url; Then it would actually return pageimage and it would have all the methods normal pageimage has.
  20. What does js console says?
  21. I think user needs edit role (in general, not in any template required) to view admin site. Not sure though and not in position to confirm.
  22. $projects = $pages->find("template=portfolio-item, sort=-created, limit=6"); foreach ($projects as $project) { $image = $project->images->first(); echo "<a href='{$project->url}'><img src='". $image->getThumb('thumbnail') ."' alt='{$image->description}'></a>"; }
  23. $results = $page->children("limit=25"); ... now loop the results ... echo $results->renderPager();
  24. <?php // Check if there are any images if ($page->images) { // Loop through all the images foreach($page->images as $img) { $thumb = $img->size(100,100); // Create the thumbnail echo "<a href='$img->url'><img src='$thumb->url' alt='$img->description' /></a>"; // Echo <img> with thumbnail, wrapped with link to original image } }
  25. apeisa

    FYI :-)

    Found it: http://www.mademyday.de/why-i-chose-processwire-over-modx.html
×
×
  • Create New...