Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorNoWhereMan
    • CommentTimeNov 15th 2007
     permalink
    http://wiki.flatpress.org/res:plugins:datechanger

    Plugin datechanger has been updated to be more easy to use and less error prone. It will work only with entries (who cares about statics anyway?) and only on creation.

    Not a big deal, it was this way even with the older version, it's just that now you can't even try (and believe me, it's better you can't ;) it wouldn't work as expected).

    Have fun!
    •  
      CommentAuthorEmbrance
    • CommentTimeNov 15th 2007
     permalink
    Nice uadate on this man.
    •  
      CommentAuthorDavid
    • CommentTimeMar 17th 2008 edited
     permalink
    I'm wanting to bring some content from another CMS into FlatPress, but keep the original entry dates on the different blog posts.

    I just tried this plugin with my current .803 "Vivace" :) setup, and sadly :( it doesn't seem to do anything with the creation date.

    I tried both "Publish" and "Save&Continue", and both tell me the entry is saved, but the creation date is not affected.

    The pressure is on NWM to do other more important things :) but does anyone have any insight to share on this plugin?

    Many thanks! Grazie!

    Update: On thinking again about this, I thought maybe the plugin does not change an old "created on" date but rather will save a new entry with a different date. So I tried creating a new entry (today's date 17 March), but set the date for 01 February. Sadly, the post was published with a date of ... 17 March. Oh well!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 17th 2008
     permalink
    yes it should be fixed to hide the toolbar in 0.803 too
    •  
      CommentAuthorDavid
    • CommentTimeMar 18th 2008
     permalink
    Is it possible to edit this information by hand? I only have 12 or so entries to "import", so it wouldn't be very difficult simply to edit the files. But maybe this is a bad idea for other reasons! Any advice?

    Thanks!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 18th 2008
     permalink
    you can do it, but you'll have to both change the unix timestamp in the file (field DATE) and the filename itself, filing it under the correct directory, so

    entry080312-223000.txt must be under fp-content/08/03/

    also you'll have to clear the cache/ and especially the index found in %%cached_list.php which contains the index of all the entries; deleting it will rebuild it

    so... very boring actually (don't blame me I didn't invent this naming conventions - hint:spb :P)

    bye
    •  
      CommentAuthorDavid
    • CommentTimeMar 18th 2008
     permalink
    Thanks, NWM. Always appreciate your help! (And it's good to know who to blame for such problems! ;)

    David.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 19th 2008
     permalink
    hehe, well really that naming convention isn't so bad for a simple blog.

    it's people are asking for too many features for which FP (SPB) wasn't designed (because they just don't know how it works, and why it's hard)

    bye!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 19th 2008
     permalink
    toolbar should be now hidden when needed with 0.803, too; source always on the wiki
    •  
      CommentAuthorDavid
    • CommentTimeMar 19th 2008
     permalink
    w00t!! I don't know what you changed (not the version number! :) but whatever you did, this now works beautifully with .803.

    Mille grazie!!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 19th 2008
     permalink
    Prego :)

    I've just added another check...
    yes I always forget version numbers :D
  1.  permalink
    I've updated the datechanger plugin... Take a look at the wiki! Note that publish time still needs some improvement!
  2.  permalink
    Updated again the plugin: I think that now is fully loaded!!!
    I've reinforced the textbox time with regexp... On the wiki everything is explained!

    I was thinking of including the ScheduledPosts plugin into the datechanger, but I'm not sure of that...
    •  
      CommentAuthorRushwind
    • CommentTimeMay 20th 2009
     permalink
    it would appear that my ISP is in a different timezone than I am, so datechanger always brings up a default time that is +3h from my current time. Is there a way to make datechanger honor the timezone that's set in the FP settings?
  3.  permalink
    Try doing this: login, then go to the admin panel and under international settings set up the correct time!

    If you've already done this... I don't know! :P
    •  
      CommentAuthorRushwind
    • CommentTimeMay 21st 2009
     permalink
    I have already done that. The problem seems to be that datechanger simply does a time() to get the time, which asks for (I assume) the server's time, but doesn't bother to honor the timezone setting inside FlatPress.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMay 21st 2009 edited
     permalink
    change it to use date_time() instead of time() (date_time() is a FP function which should honor the timezone settings)
    •  
      CommentAuthorRushwind
    • CommentTimeMay 27th 2009
     permalink
    That worked; thanks!

    As an aside, on the Options screen, the timestamp that is displayed next to "UTC time is" is showing a time in US/Eastern, not UTC (it's ... -0400). I assume this has to do with how the time is stored on the web server.

    As a result, for my timezone offset, I had to enter "-3" (US/Pacific - US/Eastern) instead of my normal "TZ" of "-8" (US/Pacific - UTC).

    Now that the offset is being honored, the correct timestamp is showing up via datechanger.
  4.  permalink
    As soon as I have some free time I'll update the plugin! :D
  5.  permalink
    I've updated the plugin on the wiki!
    •  
      CommentAuthorStanley
    • CommentTimeJul 9th 2010 edited
     permalink
    I used this once or twice with the previous version of FP, but I can't seem to get it to show up in the new entry edit screen in 0.909.1

    Can someone check if it still works for them in 0.909.1 please?

    Edit: I just checked to make sure it wasn't anything to do with the theme - I switched back to Leggero but it still didn't work. I'm using the original toolbar.tpl in the BBCode plugin with no modifications.

    Edit 2: No worries - I tried the alternate version at the link on the post above, and that worked fine* (except that it needs some images for the buttons which aren't included with the v2.1 zip file - but I found these in the original calendar.js zip file). (* and except when using Opera)

    But it looks as though the original datechanger plugin needs a bit of attention?

    Edit 3: (heh!) I was having problems using the new datechanger. I use Opera and I think there's something in the DHTMLGoodies Calendar Script whichit doesn't agree with - I recall trying to use this calendar script myself once, but I ended up using a different one. The end result was that it seemed to work just fine, but the entry 'submit" button didn't work. So, I went back to the Wiki page which is referenced in the first post in this thread and copied and pasted the latest code into my plugin file. This worked - so maybe my original plugin code had eith got a little corrupted somehow, or it was now out of date. Anyway - it all works now.