Complete Code?

Discussion in 'Web Design & Development' started by RookieCraft, Apr 9, 2017.

Thread Status:
Not open for further replies.
  1. RookieCraft

    RookieCraft Member

    Messages:
    43
    Reactions:
    +12
    Hey! How do i add this (http://prntscr.com/eueln2) to my site? I know it's code, but does someone have that code that i can have? Or at least tell me where to put the code because i can get the code but i dont know where to put it . thanks.
     
    • Funny Funny x 1
  2. Petabyte

    Petabyte Website Developer And Designer Supreme Premium

    Minecraft Accounts: Petabyte
    Messages:
    776
    Reactions:
    +334
    Are you talking about xenforo?
     
    • Like Like x 2
  3. OP
    OP
    RookieCraft

    RookieCraft Member

    Messages:
    43
    Reactions:
    +12
    It's for A XenForo site, yes.
     
  4. Petabyte

    Petabyte Website Developer And Designer Supreme Premium

    Minecraft Accounts: Petabyte
    Messages:
    776
    Reactions:
    +334
    What do you specifically want.. highlight it
     
  5. OP
    OP
    RookieCraft

    RookieCraft Member

    Messages:
    43
    Reactions:
    +12
  6. Petabyte

    Petabyte Website Developer And Designer Supreme Premium

    Minecraft Accounts: Petabyte
    Messages:
    776
    Reactions:
    +334
    I could do this for you for like $5
     
  7. OP
    OP
    RookieCraft

    RookieCraft Member

    Messages:
    43
    Reactions:
    +12
    I'm literally broke, i have like $0. If you'd like to talk further about this though, could you PM me so we don't flood the thread? Thanks. :)
     
  8. tiehm

    tiehm Developer Supreme Premium

    Messages:
    809
    Reactions:
    +443
    Don't pay someone, in general just add a div with the id "players" for example.
    Add this Script:


    $.getJSON( 'https://mcapi.ca/query/IPHERE/players', function( status ) {
    if (status.status) {
    $('#players').html("Currently " + status.players.online + " players online");
    } else {
    $('#players').html('Server is offline');
    }
    });
     
    • Like Like x 1
  9. OP
    OP
    RookieCraft

    RookieCraft Member

    Messages:
    43
    Reactions:
    +12
    I'm like really dumb, so if someone could elaborate on the above a little that would be great!
     
  10. StretchPvP

    StretchPvP Member

    Messages:
    116
    Reactions:
    +35
    Do you mean a, XenForo theme?
     
  11. Ben J.

    Ben J. Owner of Slashy Supreme Premium

    Minecraft Accounts: Policeboy109
    Messages:
    631
    Reactions:
    +233
    He means a div with a background color,
    then text saying Play With,
    Then a Span that shows the player count,
    then text saying other players on
    Then a span with the ip
     
    • Agree Agree x 2
  12. Petabyte

    Petabyte Website Developer And Designer Supreme Premium

    Minecraft Accounts: Petabyte
    Messages:
    776
    Reactions:
    +334
    A span? Loool
     
  13. Ben J.

    Ben J. Owner of Slashy Supreme Premium

    Minecraft Accounts: Policeboy109
    Messages:
    631
    Reactions:
    +233
    spans would be easier than a div
     
Thread Status:
Not open for further replies.