Jump to content

diogo

Moderators
  • Posts

    4,296
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by diogo

  1. Yep, I did notice you were liking a lot of quite old posts of mine
  2. Great to see you in the videos Peter. I'll watch some of them as soon as I have time
  3. diogo

    I'm back

    You look just like your father
  4. It's fixed for info: we had a grayscale filter on the css for those images that was causing the weird behaviour. For now we only removed it because we don't need it anymore, but later I will investigate why. Thanks guys!
  5. I don't know about the password problem, but what kind of server do they provide? Is it Apache? Does the .htaccess work on it? You might also want to have a look at https://koding.com/, I've installed PW sucessfully there, here is a small explanation (it's old though) on how http://processwire.com/talk/topic/2348-koding/?p=22461
  6. Thanks guys, we will see what's happening.
  7. Wonderful story Danny! Hope your leg will be well soon. I'm very curious about the tatooed pigs I was working on a Atom feed only some days ago. Here is my code: if ($input->urlSegment1 == "atom") { <?php header("Content-type: text/xml; charset=utf-8") ?> <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom"> <title><?php echo $page->title ?></title> <subtitle><?php echo $page->headline ?></subtitle> <link href="<?php echo "http://" . $config->httpHost . $page->url?>" rel="self"/> <updated><?php echo date(DateTime::RFC3339, $page->child->created)?></updated> <author> <name>$page->autor</name> <email>$page->email</email> </author> <id><?php echo "tag:" . $config->httpHost . "," . date("Y-m-d",$page->page->children->first()->created) . ":http://" . $config->httpHost . $page->url ?></id> <?php foreach($page->children as $article):?> <entry> <title><?php echo $article->title ?></title> <link type='text/html' href='<?php echo "http://" . $config->httpHost . $article->url?>'/> <id><?php echo "tag:" . $config->httpHost . "," . date("Y-m-d",$article->created) . ":http://" . $config->httpHost . $article->url ?></id> <updated><?php echo date(DateTime::RFC3339, $article->created)?></updated> <author> <name>$article->author</name> </author> <summary><?php echo strip_tags(str_replace(' ', ' ', $article->summary)) ?></summary> </entry> <?php endforeach?> </feed> } else { // code for the articles listing page This code assumes that you have a articles listing page with the articles as children, and that the feed url is a urlSegment on this same page. Depending on your situation is just a matter of changing this line foreach($page->children as $article) Another note on this line: <summary><?php echo strip_tags(str_replace(' ', ' ', $article->summary)) ?></summary> I used the strip_tags() and the str_replace() methods because XML doesn't accept any tags or the entity on the content, and my "summary" field was a rich textarea. The ideal is to have a simple text field for this, and in that case you would have only this: <summary><?php echo $article->summary ?></summary>
  8. I'm not saying it's the ideal solution. The ideal would be Pete reading this and changing it on the module. We can also make a pull request to him, of course.
  9. Agree. It should definitely have a class. And styling should be in an external css and not inline. @ceberlin, I think the best thing for you to do is to add the class on the module itself.
  10. Do you have both a parent and template selected under "selectable pages"? Check again the full instructions if needed http://processwire.com/videos/selecting-and-adding-pages-with-autocomplete/
  11. Thanks for all the reactions guys I guess you can call it that We have a very interesting triangle Solihul/Frankfurt/Porto going on here, and hope we will show more nice websites on the forum soon @pwired, you completely missed the point here and I hope others didn't interpreted it the same way. The CSS logo is not about performance at all, it's just a "nice to have" feature, something to represent what we do. We know most people won't even notice, but we think it's a nice touch for those who do. *sigh* Well, then again, thanks to all
  12. Sorry, I'm not looking at the code, and didn't noticed that you posted it above. And yes, it's the same thing... and it's strange because that should prevent any error. Anyway, and answering your question, I don't think it's something you should worry about.
  13. True, it is being encoded. Must be a problem with the selectors. If you do it while logged i you will get a useful message that should confirm this. To solve this you can pass the query to $sanitizer->selectorValue($value) and make the search only if it returns a value: // (not tested) $query = $sanitizer->selectorValue($query); if (!$query) // not a valid search
  14. Hm, it's the responsibility of the browser to do this. What to you get on the url? is the & encoded or not? Can you also try in another browser?
  15. GET on a form should turn & into %26 and prevent this problem. What method are you using?
  16. You use http://php.net/json_decode or a specific library to turn the json into a PHP array, and then use the PW API to create the pages. Here is a good example of how to do it: http://processwire.com/talk/topic/352-creating-pages-via-api You might also want to have a look at the code of this module to take some ideas, since it does exactly that: https://github.com/adrianbj/ProcessPageTreeMigrator
  17. Hi biojazzard! For now, all we have is this forum thread http://processwire.com/talk/topic/523-good-hosting-for-processwire/
  18. The latest hot thing is ghost, tumblr is also great, of course. But you should stick with PW, it's much more fun
  19. diogo

    soma|blog

    I can confirm the problem in Firefox.
  20. diogo

    soma|blog

    Manfred, that doesn't happen to me
  21. diogo

    soma|blog

    Looking great Soma! Can't wait to start reading your posts. I hope they will be many Completely personal preference, but I think that with .block-group{margin-top:-15px} and .masthead{padding-bottom:5px} the blog would look even better.
  22. completely out of the subject: by the way Adam, I love your new dribbble work http://dribbble.com/shots/1278118-Minimalistic-branding-mock-up
×
×
  • Create New...