Jump to content

arjen

Members
  • Posts

    1,222
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by arjen

  1. I did some more research. With PHP 5.5.3 and MySQL 5.5.33 (MAMP) the switching between PageTitle and PageTitleLanguage works fine with a clean install. But when importing the files from the other version it won't work resulting in the same errors.
  2. Switching fields like PageTitle to PageTitleLanguage gives errors like: Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_title.data1011' in 'field list' (in /Users/xxx/Sites/xxx/www/wire/core/DatabaseQuery.php line 86) Both admin and frond-end gives this error. Installed (core) modules: Languages Support (1.0.1) Languages Support - Fields (1.0.0) Languages Support - Page Names (0.0.8) Languages Support - Tabs (1.0.8) ProcessWire: 2.3.9 (clean install with the latest dev branch - 0bb84e0d9fdd973376e5bbaaa1e1e4cf4fcc8c5c) PHP version: 5.4.17 MySQL version: 5.6.14 When I try the same files on another MySQL version 5.1.54 the changing works fine. Does anyone knows if this is MySQL related and how to fix this? Thanks!
  3. What ID are you getting when you echo $pages->get($cityid)? You might want to wrap into quotes like $pages->get("$cityid").
  4. You guys hooked up? Like a ProcessWire marriage? I must have missed that one. Good luck on the new business! Great work on the website. Looks really, really good.
  5. No, I just use it nowadays for a simple sign up form and as a tool to sync user with mailchimp. This module is pretty basic and can't send e-mails or someting. You might want to take another approach and set up a simple PHP mailing system with PHPMailer or use something like Mandrill if you want to see statistics.
  6. Yesterday your feed was empty, today it's there. Must been a Digg issue. I just tried your other url too and this times it worked instantly.
  7. Absolutely love your technical drawing skills.
  8. Will check it out. Seems well worth the 30$.
  9. Digg Reader didn't seem to pick it up. Added it manually and it seems not to pick up any posts. Strange, but Digg is sometimes strange. Still looking for a Google Reader alternative.
  10. Hi Teppo, any change you could add a rss feed? Just made a folder in my reader app with some ProcessWire blogs (since soma started one) but I can't seem to add your blog/website.
  11. arjen

    soma|blog

    He did it. Just subscribed and looking forward to your posts.
  12. Thanks for responding. I really have a hard time unstanding the database-querying selector vs in-memory selector For now it's working for the client so that makes me happy!
  13. There are similarities, but most seem pretty different too. I don't really know if I should do this if the sites are really different on front-end side. If I could manage to design a (design) template-like structure with different colourschemes I might do it.
  14. @pwired, kind of you to help, but OllieMackJames posted the thread in the jobs board
  15. It's not a stability issue. We've been using the multisite on several sites and it's working fine. The issue could be that if the sites all have different fields and templates you create a sort of frankenstein. On the sites we've used it on, the subsites are pretty simple and straightforwand basicly only using a basic-page template. I understand where you are coming from. We never did a project like that, but I would use ProcessWire to setup something like the thing you are describing. If you can provide the sites you are describing we can take a look and give a more detailed advice.
  16. <img src="logo-<?php echo $user->language->name; ?>.png" alt="" /> This will give you the name of the language. So you either make sure you change the language name or the filename of the images to make sure they match.
  17. Hi Sinmok, I don't think there is another option but namespaces, but this isn't supported yet (read the whole topic it has a bit more information).
  18. Everyone learns different. I tend to think I'm like you Martijn. First read as much as you can then explore the code. Some others dive straight into the deep. @Chris: you can use Google to search the forum. I.e. the query "site:processwire.com wire function" would have given you loads of information.
  19. You're welcome. It takes some time to get used to the 'simple' way of thinking, but after a while you see the greatness of the simplicity and you build all kinds of this stuff. Do not hesitate to ask more questions.
  20. The strategy you are describing is somewhat similar to the Multisite module by Apeisa. Read the thread for more info and you'll find that Soma rewrote the module. I don't know how wise it would be to create that many sites using this strategy since you'll end up with a lot of templates and fields if the sites are all different in their approach or needs.
  21. There are a couple of ways to accomplish this from creating your own inputfield to using templates. This is how I would do this. You create a template called 'donations' (/donations/) and a template called 'donation' (/donations/donation). You create a called 'donations'. You add the donations fieldtype to the user template - be sure to enable "Show system templates" in the filter option above the templates in the admin. Now you can create a donation through the API: // Create a new donation page $donation = new Page(); $donation->parent = $pages->get("/donations/"); $donation->title = "Some random title"; $donation->amount = 10; // Or any number $donation->save(); // Assuming the right user is logged in $user->donations->add($donation); $user->save(); And it is saved in the Page fieldtype with the users. As a reference see the excellent cheatsheet by Soma and Ryan. You sure need some code for a user to login, to process the donation itself, bit this gives a basic example of how to save through the API. Note: this is all written in the browser so it might generate some error.
  22. You do know you can make tabs and close a field as well?
  23. Offcourse you are right Soma. I was just pointing out as a reference since it's in the directory. Quality coding should be taking serious. That's why most of my modules aren't there (yet)
  24. Couldn't you create a date field which saves the date/time when a page is getting trashed using a hook? Then you should have a reference to make a selection.
×
×
  • Create New...