Jump to content

onjegolders

Members
  • Posts

    1,147
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by onjegolders

  1. Good question.

    Security is not something I have ever had to obsess over so I will leave it to others to reply to that but it does sound like a very interesting project.

    A general question would be, is there already a tool out there that serves the purpose well? A database driven one, even offline software like Filemaker which could perhaps be integrated. Or there might be a framework out there with security at the forefront.

    Sorry not that helpful an answer I'm sure but it's an interesting question and though it deserved at least a response :D

    • Like 1
  2. Another new design tool Affinity to take on the Adobe cloud prison.

    Affinity

    Looks really good at £27.99 ($40). 20% off introductory offer until 9th October.

    At the moment it is just for mac. Dam I am starting to wish I had a mac.

    I must be in the minority who like the new Adobe business model. But then again I'm a huge fan of monthly payments. Netflix subscription over Mountains of scratched DVDs etc. Yes you have to fork out £50/month but for anyone using these tools in any way professionally, it's nice to know all the tools are at hand. I have to say the system works very well too, nicely integrated. For me the prospect of paying thousands for tools that became outdated quickly was more of a turn off in the past than the current plan.

    As to whether the Adobe apps still have an edge over the competition, that's a different question :)

    PS: Affinity looks very interesting, the site does a great job too in my opinion.

  3. Just had this error again. Strange one, "there is no thumb called: " (empty), before that I was getting "no width and height" errors.

    I've tried clearing cache and resaving the field but nothing seems to be working. 

    UPDATE: I think I may have had some whitespace left over from when I deleted a thumbnail row in the input setting part, deleting that has cleared the error.

  4. Hi guys,

    Is there any reason why $session variables shouldn't get updated when using jQuery $.post?

    For some reason, no matter how trivial the example I use, data received from $.post which is successfully updating pages is failing to set $session variables.

    Am properly in "banging head against wall territory" now :D

  5. Sorry very quick update. I think it may have something to do with setting file overwrite to true/false


    Any chance it started happening after an upgrade to 2.5.1?

    There's a new setting for replacing existing files - not really sure, but might be worth a look.

    Thanks Adrian, I hadn't noticed that but am still on 2.4 on this install. I tried changing fileOverwrite to false and it seems to have sorted it. Strange as it is actually overwriting it?

  6. Hey guys,

    Not sure if any of you have had this issue before but I have some file upload front-end forms where the client is able to add new files, replace, update etc.

    Recently they have been having problems where some files when being replaced are failing (they become 0kb) - up until now I've been trying to figure out the pattern to produce this and it seems to be when replacing the existing file with a file with the exact same filename.

    Can anyone think of a PW or PHP reason why this might cause a problem?

    If not, I'm guessing it's something within the form code...

    Thanks.

  7. Yes, in admin, not in front-end  custom template.

    Then you'll want to add all the necessary fields to the other template then create a new module in your /site/modules folder, install it in the admin and using what I wrote as a starting point, (editing the field and template names to match your case), you may want to add another function in the module that handles cases where a user gets deleted?

    It's not as complicated as it sounds but you'll want to try all this on a local install, while you get it working right.

    We can help you as you go.

    • Like 2
  8. The question is where (template, field) to insert that " $user->nameOfField" to show content of that field.

    Generally:

     Current user has entered value in the field "Administration", in current case "Administration 1"

     When that current user creates new page (different template), in this page there is another field that should accept the value of the field "Administration" of this current user.

    Thank you for helping me! 

    Just to confirm - So this is about showing the same value in the admin and not the front-end of your website?

  9. Hi awebcreature. Here is something very simple that I've just put together but I haven't tested it and you'll have to apply it to your scenario. There may also be other ways of achieving this but just as an example:

    <?php
    
    class DuplicateField extends WireData implements Module {
    
        public static function getModuleInfo() {
    
            return array(
                'title' => 'Duplicates a field value',
                'version' => 101,
                'summary' => 'Duplicates a field value from user template to other template',
                'singular' => true,
                'autoload' => true,
                );
        }
    
        public function init() {
            // we hook into the page save function
            $this->pages->addHookAfter('save', $this, 'duplicateField');
        }
    
        public function duplicateField($event) {
    
            $page = $event->arguments[0];
    
            // when a page of type user is saved and our field's value has changed
            if ($page->template == 'user' && $page->isChanged("myfield")){
    
              // get the page that this field will get dupicated
              $other_page = $wire->pages("template=other_template, name=$page->name");
    
              // if we don't find this page return
              if (!$other_page->id) { return; }
    
              // update this other page
              $other_page->of(false); // set output formatting to off to update values
              $other_page->myfield = $page->myfield;
              $other_page->save();
    
              $this->message("$other_page->url also changed");
            }
    
    
    }
    
    • Like 2
  10. If you need to duplicate information in the admin from one template to the other you will need to create a simple module that hooks on page save or page add and updates the other template.

    Let us know if you need some help getting started.

  11. I'm totally up for a conversation about sliding navigation and if I'm coming across an defensive, that's not my intent. It's genuinely interesting to hear other people's views, and I was genuinely surprised to hear a few people mention uncertainty about the hidden nav.

    From my own view, I'm 80% sure it's still the right decision and keeps any single page super-minimal and focused on content. Take the About page, for example. I think it's nice to be on that page, and all you have at the top is MIRA OPALINSKA / About. It almost comes across like a printed page, and I like that about it. I think a menu and language selectors etc. would detract from the simplicity and elegance.

    On more ProcessWire specific stuff...

    I have now updated to PW 2.5. There was some compatibility issues with the Thumbnail module, so for now will just use the built in core functionality. Everything else seems to work very well. Although I did have to refresh the browser two or three times to get the admin to look right (probably the old CSS was cached).

    So, yeah... pretty seamless upgrade. But then I am only using 1 module now outside of core.

    I think Diogo's suggestion of it being hidden on your homepage as it gives the full effect of the beautiful photograph, then it could show on the inside pages but you can be pleased with your work :)

    • Like 2
  12. Thanks!

    It's funny, I didn't expect such a negative reaction from people to the menu. I totally hear what you're all saying, but it's sort of surprised me. It's interesting, because I wonder if it's a "developer" type reaction. I mean, would the reaction would be the same if you were just going onto the site as a normal person, browsing the site in a normal fashion. I think when you're in "developer mode" checking out a site, if you're anything like me, you're sort of jumping back and forward from page to page, seeing how things work, checking stuff out, using the menu probably way more than you normally would. Do you know what I mean?

    I think the average site visit is *click* to where I want to go, then read on that page for a while. *click* to another page. Read etc. Whereas, I'm almost certain all of you guys didn't bother to check any text and just clicked around to see how things look. I know that's what I do when I'm checking out a site design. The text might as well be Lorem Ipsum and I'd never even notice, ha ha!

    @onjegolders | BTW, just checked out Milktop... very slick... I like it! (although, I didn't read any text ;) )

    Thanks for the compliment Douglas :) (although it is in the process of being updated)

    • Like 1
×
×
  • Create New...