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

Put text into a post when banning someone?

Discussion in 'XenForo Development Discussions' started by William35, Feb 28, 2012.

  1. William35

    William35 Member

    Hello. I am trying to use $_GET to make it so when an admin bans someone, if he did it from a post, the post will be automatically edited so there will be a text "User was banned for this" in the bottom.

    The thing is, i dont have any clue how to change the post itself, like how to put it in so when you click on the "Ban" button, it will add a text to the post.

    The question is, how do i put a text into a already existing post? I got the postID.

    Thank you!
    Darkimmortal likes this.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You need to use the datawriter to update an existing post. See this function as an example:


Share This Page