1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change Date 1.7

Allows changing the date and time of a post.

  1. AndyB

    AndyB Well-Known Member

    AndyB submitted a new resource:

    Change Date - Allows changing the date of a post.

    Read more about this resource...
     
    OperaManiac, Beanjam, whynot and 2 others like this.
  2. borbole

    borbole Well-Known Member

    Congratulations on your first mod release Andy :)
     
    AndyB and Amaury like this.
  3. Amaury

    Amaury Well-Known Member

    Ditto.
     
    AndyB and borbole like this.
  4. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    I've been needing this one for some time. Thanks and congrats for making it happen.

    I'm not getting it to work but am 1.1.x. Is 1.2.x required?
     
  5. AndyB

    AndyB Well-Known Member

    Thank you, Jeff.

    Sorry this add-on only works on Xenforo v1.2 and above.
     
    Last edited: Sep 24, 2013
  6. Jeff Fuqua

    Jeff Fuqua Well-Known Member

  7. Daniel Hood

    Daniel Hood Well-Known Member

    PHP:
    <?php

    class Andy_ChangeDate_Listener
    {
        public static function 
    Post($class, array &$extend)
        {
           if (
    $class 'XenForo_ControllerPublic_Post')
            
    $extend[] = 'Andy_ChangeDate_ControllerPublic_Post';
        }
    }

    ?>
    overwrite /Andy/ChangeDate/Listener.php with that code, should work. Event hints weren't available until 1.2 so this how it had to be done on 1.1.x

    That's the only thing I noticed this far.
     
    Marcus and Jeff Fuqua like this.
  8. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    Thanks for your help but this didn't work. Would I need to reinstall?
     
  9. Daniel Hood

    Daniel Hood Well-Known Member

    No. Do you get any server errors in your admin panel?
     
  10. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    No server errors.
     
  11. AndyB

    AndyB Well-Known Member

    Hi Jeff,

    This add-on uses the new Template Modification system introduced in Xenforo v1.2. so it will not work on older versions.

    I created a thread here:

    http://xenforo.com/community/threads/creating-an-add-on-called-change-date.60211/

    that shows how the add-on is created. You can follow Daniels code and omit the Template Modification (just update the post template manually) and it should work on Xenforo v1.1.
     
    Last edited: Sep 24, 2013
  12. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    Thanks. I'll try that out.
     
  13. Andy.N

    Andy.N Well-Known Member

    You should also consider adding the Change author function into this as well, @AndyB
     
    Veer likes this.
  14. Veer

    Veer Well-Known Member

    +1 this.

    I'm using a very old free addon that change date & time and the author. It would be very useful if you could include the functionality into this addon.

    Thank you!
     
    AndyB likes this.
  15. AndyB

    AndyB Well-Known Member

  16. Veer

    Veer Well-Known Member

    @AndyB any comments about changing the post Author? :)
     
  17. AndyB

    AndyB Well-Known Member

  18. AndyB

    AndyB Well-Known Member

  19. Disciple of Nagash

    Disciple of Nagash Active Member

  20. AndyB

    AndyB Well-Known Member

    Aivaras and 51463 like this.

Share This Page