Jump to content

Pete

Administrators
  • Posts

    4,033
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by Pete

  1. Pete

    Your hourly rate?

    Ah yes, I love that video - gave me more confidence definitely! I really need to bookmark it. One of the things I took away from it was "if you think you're not charging enough then you probably aren't" - simple as that.
  2. Thanks to Apeisa I'm currently doing some work in UIKit and loving it. They all come with a certain amount of baggage, but I'm finding that compared to Foundation UIKit is a bit more straightforward and, well, if I had the time and expertise it's probably how I would have built a framework. Plus it looks nice.
  3. Pete

    Your hourly rate?

    Yup, there's another topic that touches on pricing here with some really useful links: http://processwire.com/talk/topic/3309-i-just-got-fired-from-my-job/page-2 I seem to think there was one someone linked to ages ago as well where a web developer did a really nice graphic breaking down the different parts of a project and arriving at a price but I can't remember where that was.
  4. Pete

    Your hourly rate?

    This has been asked before and you're unlikely to get an answer - not because rates are trade secrets, but because it depends on so many things. Experience is subjective, but which country and which city in which country also makes a difference. New York developers will charge more than rural developers. The short version rate you charge should be based on what you can live off plus some additional to cover times when there's not as much work on, plus extra for how much you think your experience is worth. It's not as clear as "what's the average" and it should be more about "what do you want to charge". If your rate is set and you're getting no customers then you need to re-think it, but essentially it's about your variables more than what anyone else charges. All that said, if you really want an answer then you can type this sort of thing into Google - "web developer rates in X city". Hope that helps a bit.
  5. Cheers adrian - I'll check it out later unless someone beats me to it. The problem I found is that even just between Thunderbird and Outlook signatures are treated a bit differently and there's no code in the source of the email to say when a signature starts in an email unfortunately. I honestly don't think that until someone big enough like Google (joining forces with Microsoft and possibly supermom) redesigns how emails should work from the ground up we'll ever see a satisfactory standard for handling email signatures
  6. You can write that as something like this (pipe symbol | means OR): $usersWithoutRole = $users->find("roles!=gooduser|guest|superuser"); You don't need to try and partial match if you know the exact names of the roles. If you just want to make sure every user has the guest role though, just re-add it regardless of whether they have it or not like this: foreach ($users as $u) { $u->addRole('guest'); $u->save(); }
  7. Thanks for all the updates adrian - I've commited the latest updates on Github and am looking forward to your latest addition for embedded images. I wonder if it might be worth making the embedded images feature optional though? I'm thinking of a case where this could be used in a company where people have images in their email signatures and these would come through as well - just a thought.
  8. Yup - very nice to see all of these creations, many of which I'd not seen before... but then I do have 12 pages of posts to catch up on again!
  9. I ran across this same issue with a field on a site after upgrading to 2.4. Whilst I have no idea how to reproduce the issue, it goes away when you do the following: On the Input tab for the field, remove all settings you might have put in under the Selectable Pages section Change the Parent of Selectable Pages page to be the homepage, then save it Change the settings back to how you had them before It works again Sadly, without being able to reproduce it this is only a little bit helpful. When I created another identical field from scratch it didn't have the issue, but fiddling with the field in question as per the steps above resolved it. Weird huh?
  10. It is a nice way when you need to roll your own forms on the frontend (in my case it's a bit complicated/customised for FormBuilder or that would have been my choice) and you don't want to write the form from scratch. This way means you can build your form in the admin as a template and then just iterate through the fields on the frontend and style them how you like. In the particular site I'm doing this on, there are a lot of one-to-many relationships happening, so there's one long form where I'm outputting the fields from multiple admin templates - in some cases with an "Add" button so I can add another set of fields with some JS - and then it'll all get saved when submitted using those separate templates.
  11. Well I kind of meant I wasn't being very clear at the beginning and hopefully the code example would make it clear. I guess I made it less clear by saying "all will become clear"
  12. Cheers all! My code now looks like this and works perfectly: $template = $templates->get('your-details'); foreach ($template->fields as $field) { echo "<label for='$field->name'>" . $template->fieldgroup->getField($field, true)->label . "</label>"; ... EDIT: Which I see is the same as what Adrian posted above - it's nice when you come to the same conclusion separately sometimes though as you know it's definitely correct that way
  13. @Martijn - there is no page. I'm just getting a blank template and echoing fields for a frontend form so the form doesn't relate to a page. The form fields do relate to the template they came from though so it looks like it should work. @kongondo - none of that seems to apply in this situation. I did try a few things from that page but they didn't work. Part of the problem is probably that the page I'm outputting this on doesn't have the same template as the fields I'm outputting in my code, but it looks like it should work anyway. Keep the suggestions coming though
  14. Hi folks I'm just playing with a form in a frontend template that pulls fields from a backend template and outputs them as form fields on the frontend (all will become clear soon ). Unfortunately, the template-specific versions of the field labels won't display - it just reverts to the default. Any ideas? This is what I'm doing in my frontend template: foreach ($templates->get('your-details')->fields as $field) { echo "<label for='$field->name'>$field->label</label>"; $inputfield = $field->getInputfield($page); echo $inputfield->render(); } The default label for the field "fullname" is "Full Name" and on this specific template in the admin it's "Your Name", but using the code above it outputs "Full Name" despite the template-specific label. I also tried doing this before the code above: $newpage = new Page(); $newpage->template = 'your-details'; ... $inputfield = $field->getInputfield($newpage); but that didn't work either. I suspect the answer is something simple as usual
  15. Ha, yes, but when it was a case of copying it to template/admin-template or wherever int eh old days it was easy to just go about changing colours. Now I feel like I just want to add another colour scheme to the new admin theme but I'm confused as to how I would go about it.
  16. Now the new default admin theme is a module, how would I go about creating another colour scheme for it? Is there a way to extend it and if so how would I do that?
  17. Actually, scratch that. Since what I'm doing can have multiple software tagged to it (it's a knowledgebase system where some articles can overlap different packages) there is no quick and easy way to achieve this anyway. Not to worry - new versions don't come out very often anyway.
  18. I've got a Pages field that I've set to allow new entries whilst editing a page. What I want to do is intercept the page save for the added content if possible and set another field on that page based on something in the main page. So to make that clearer (yes please) I have a page with fields for: Software name Software category Software version Software version is my Page field and I want the ability to add new ones on-the-fly, so I set this field to Pages and allow new pages to be added. The software version template itself has a Page field that links it to software name, so when the page above is saved, I want to intercept the software version page creation and link it back to software name. Any ideas? I know it will be possible somehow, but I've not heard of anyone trying this before.
  19. I've merged the pull request - thanks
  20. The problem was the more I thought about it from a technical point of view trying to get everything as a single page, the more headaches it gave me. Plus I'd likely prefer having the text box be a minimal CKEditor as well
  21. For use cases I'm thinking of right now, I think images, text and videos would be enough for now. If you have a module that allows you to tie these to fields in a specific template, then when you create a new page replace the normal editor with Sir Trevor, you could have it use the native fields and store the parsed content in a hidden body field. So your images go in a multiple images field, your video URLs in a custom field (repeaters don't scale infinitely) and text some other way and the whole thing is parsed into a body field ready to render.
  22. I forgot to mention as I saw it asked earlier in this thread, I've had bad experience with DROBO (so bad I can't remember what went wrong now!). QNAP is a fairly good solution - problem is it has fallen over when I've used one at the point it got full. No warning, just RAID failure. The flavour of the year for me in NAS backup is Synology - lovely interface, easy to set up. You can run a webserver on it so you could have a script on your sites perform backups to compressed files then have this box just go and fetch the files via FTP in a PHP script. Leave it in a cupboard and you're sorted You could of course do the same thing via your PC/Mac I imagine after they boot every day, but there's something nice about being able to set something like this up and just leave it going. They power down the disks when not in use so are reasonably power-efficient, and if you get a 2-bay model in RAID you're covered from data loss. Put one in your house or a relative's house as well and you're doubly covered.
×
×
  • Create New...