Jump to content

arjen

Members
  • Posts

    1,222
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by arjen

  1. I used Gravity Forms a couple of times. While it is build for front-end forms I really like the way the depencies are build there with multiple conditions aka conditional logic.
  2. Great SUPERB work! Can't believe how mature this already looks and feels! Thanks Ryan and Antti/Avoine.
  3. arjen

    parentmost

    Top level page $page->rootParent Top level pages of a template $pages->find("template=thing, parent=1") // 1 is the ID of the homepage, so a child will automatically be the top level page
  4. Try a fresh install and copy your /site/ and migrate your database later on.
  5. Please let us know how you decided to approach this project
  6. I made a small mistake - probably wile copy-pasting code. I've updated the previous post with: $spamAction = $sanitizer->text($input->post->sendemail); In the previous example I just declared $spamAction and that won't work since we want it to check against the checkbox. Greetings from the North!
  7. I used to run into strange issues too - also with other systems when transferring files one-by-one. Nowadays I zip locally and transfer the zip and unzip it on the server. This way I can be sure all the rights, files, et cetera will be transferred.
  8. To use a honeypot I use the following code. Works like a charm and never ever get spam send through the forms on several websites. 1. First I add the checkbox $field = $modules->get('InputfieldCheckbox'); $field->label = "Stuur een e-mail"; $field->attr('id+name','sendemail'); $form->append($field); 2. When processing the field find the spam field and set the error // Get the form field $spamField = $form->get("sendemail"); // Get the spam action $spamAction = $sanitizer->text($input->post->sendemail); // If the spamAction is true tell the bot to try again if ($spamAction == 1) { $spamField->error("Please try again!"); } 3. Hide the field with CSS .Inputfield_sendemail { display: none !important; }
  9. Why shouldn't he trust the hosting provider? Also I would point out that the "site profile exporter was originally designed to serve as an upgrade tool from PW 2.0 to 2.1". Personally I would write a small script which zips and writes a filedump and mysqldump to the S3 server.
  10. You could initiate a script I was talking about from a custom admin page. What kind of functionality are you exactly talking about? One click backup from the ProcessWire backend? Also restore?
  11. What kind of backup are you thinking of? If it's the whole package you can write a bash script which tars and gzips the entire folder your ProcessWire site is in and a dump of the database - both with nice filenames. Next the scripts connects to the S3 server and uploads both the files. In that case you wouldn't need to touch the API.
  12. $count = 1; foreach($children as $child) { $type = $count % 2 == 0 ? "even" : "odd"; echo $type; $count++; } No need for a function Or pure css: section ul li:nth-child(even) { /* Do stuff on even list items */ } Written in the browser, but you might get the idea.
  13. It's just a notice. To fix this right now you can change it easily: $out = $form->render(); Apeisa will propably fix this in his repo.
  14. Great post! Commenting doesn't work here too.
  15. arjen

    IBM does it again

    Reminds me of a great CMF/CMS I usually work with.
  16. If you want to hire someone you may get more responses when you give some requirements. It is rather difficult to fix a quote based on the information given. For example a fully PW integrated solution with sending capabilities is a lot more comprehensive than just a sync tool or a newsletter signup form which also saves the subscriptions as PW users.
  17. Kongondo, I remember this post about markup for generating forms by Willy a while ago. Does that help you?
  18. arjen

    Vacation

    I visited the United States twice: the first time I went to New Jersey and New York. The second time to Washington. Next time I want to go to California (San Francisco) or Louisiana (New Orleans).
  19. Glad you got it working. Thanks for reporting this.
  20. I always export the database tables and not the entire database. So in phpmyadmin click on the database on the left to select the database. Then click on export, select all the tables and download the file. Go to your live server, create a user and a database. Select the database and import the tables. If that's succesful you edit the config.php with the credentials of the live server.
  21. Login in: this has come up on numerous occasions. Kongondo was really nice to sum up these posts Syntax: this seems to be a settingissue. Have you enabled short_open_tag? I doubt that they are related since I don't think the /wire/ folder uses shorthand code.
  22. In both branches the readme.md says 2.3. You can just install the zip and check in the footer of the admin which is supposed to say 2.3.2. You can also check the system version by running this code: echo $config->version; or echo $config->systemVersion; Like I said: I checked and the zip is the latest dev. No need to worry mate
×
×
  • Create New...