Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kingstonrichard

    (@kingstonrichard)

    So, the final result was to effectively reset all directory and file permissions back to the WordPress defaults as part of the Vagrant provisioning script.

    codex.wordpress.org/changing_file_permissions contains more detail but I used these 2 commands:

    chmod 755 $(find /DIR -type d)
    chmod 644 $(find /DIR -type f)

    Hope it helps someone else out.

    Cheers

    Thread Starter kingstonrichard

    (@kingstonrichard)

    OK, so an update for anyone else struggling with this problem, I’ve launched clean versions of the vagrant box on both my Windows host and my Ubuntu host. So to recap, this is the same Ubuntu box running virtually on 2 different hosts.

    Using vagrant ssh I’ve connected into each box and with cmd/terminal I’ve traversed to the themes directory and run ls -alh and to my surprise noted different permission levels:

    From the Windows host (which doesn’t ask for FTP permissions):

    drwxrwxrwx 1 vagrant vagrant 0 Jul 22 09:47 .
    drwxrwxrwx 1 vagrant vagrant 0 Jul 22 09:47 ..
    -rwxrwxrwx 1 vagrant vagrant 30 Jul 22 08:19 index.php
    drwxrwxrwx 1 vagrant vagrant 0 May 8 17:45 twentyfourtee
    drwxrwxrwx 1 vagrant vagrant 0 May 8 17:45 twentytwelve

    From the Mac host (which does ask for FTP permissions):

    drwxr-xr-x 1 vagrant vagrant 0 Jul 22 09:47 .
    drwxr-xr-x 1 vagrant vagrant 0 Jul 22 09:47 ..
    -rw-r–r– 1 vagrant vagrant 30 Jul 22 08:19 index.php
    drwxr-xr-x 1 vagrant vagrant 0 May 8 17:45 twentyfourtee
    drwxr-xr-x 1 vagrant vagrant 0 May 8 17:45 twentytwelve

    So, it looks like the Mac instance of the box is missing some write permissions on files (and folders?) – actually this goes all the way up the tree structure to the WordPress root.

    Hi Maggie,

    If all you’re wanting to do is search through photos with info on them, have you considered registering an account on something like Flickr?

    I work for a large organisation and we have a Flickr account that contains thousands of photos, grouped into albums and ‘sets’. We can search them, upload new ones, delete them, etc.

    Only people with the username and password can get in and access them, and best of all, Flickr give you loads of storage space for free so to date, it hasn’t cost us a penny.

    Appreciate it may not be a perfect solution, but I hope it helps.

    Thread Starter kingstonrichard

    (@kingstonrichard)

    I wasn’t suggesting specific categories Matt, more a feature that everyone could use with whatever categories they add.

    Imagine landing on the Press settings page and seeing a list of all the categories currently in use. Besides each one, an option to tick “Selected by default”.

    When we then hit the Add New button in the plugin, any categories we’ve defaulted will have a tick in them already.

    Do you see what I mean?

    I can add it into the JS for now, but thought it might make for a nice feature.

    Thread Starter kingstonrichard

    (@kingstonrichard)

    Ok Matt, no worries.

    RE the news fix, it looks like the plugin is outputting // at the beginning of the links when the $slug is empty.

    I’ll rectify that now – sorry I thought you’d sorted it.

    Thread Starter kingstonrichard

    (@kingstonrichard)

    Additionally, would it be possible to have a setting to hide minutes on times if they are 00?

    Our time formats are 12:50pm or 1pm if the minutes are 00.

    Perhaps a checkbox on the settings page?

    Thanks

    Rich

    Thread Starter kingstonrichard

    (@kingstonrichard)

    Thanks Matt,

    Bug fixed – by you 🙂

    As an extra ask on this, is it also possible to be able to pass in a date range to further customise the feed?

    Specifically for a MailChimp campaign, I’d like to be able to get a feed of all the items published in the last 7 days that are tagged with a certain news category.

    Cheers

    Rich

Viewing 7 replies - 1 through 7 (of 7 total)