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

Sidebar block with PHP script in it

Discussion in 'General PHP and MySQL Discussions' started by Jake Hakoda Shirley, Jul 28, 2011.

  1. Jake Hakoda Shirley

    Jake Hakoda Shirley Active Member

    Hey guys, I am trying to add a side block that lists all the users online on our Minecraft server. Does anyone know of a way I can do this? I have a .php file that outputs the list already, is there a way to just embed (no idea if you get what I am asking there) it into the side bar?
  2. James

    James Well-Known Member

    Create a PHP file and use your existing PHP file to output it in a variable to the templates.

    What does your existing PHP file do?
  3. Jake Hakoda Shirley

    Jake Hakoda Shirley Active Member

    All it does is pull an array of players from my Minecraft server and echos them.

    I am not-so-technical with XenForo or PHP. Want to go more in-depth with your idea?
  4. Saarbruecken

    Saarbruecken Active Member

    That's easy, I've written a similar plugin to display the currently active IRC users. See this thread:

Share This Page