Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello again,

    I’ve found the problem on my side, it works now.

    Hi, I have the same problem. My SRV record does not get recognized by Minestatus. I am on the latest version.

    I’m running several minecraft instances on one machine with different ports, and I’m using SRV records to connect with subdomains instead of ports.
    So for example: http://www.server.com:25564 -> mc.server.com

    I’ve tried different combinations, specifying only the subdomain, specifying the subdomain with port, specifying the domain with port, they all only show me info on the game running on 25565, not the games on different ports. Do you have an idea what might be my problem?

    Thread Starter w00lly

    (@w00lly)

    I was able to make it work how I wanted it, it’s easy to integrate.

    w00lly

    (@w00lly)

    oh yeah make the heads that have a border smaller with
    width and height in your css

    w00lly

    (@w00lly)

    replace my snippet from above with:

    <?php if (isset($instance['show_minotars']) && $instance['show_minotars']) : ?>
                    <div class="MCplayer"><img style="float:left;margin: 0 5px 5px 0;" id="MCStatus<?php echo $player; ?>" src="https://minotar.net/avatar/<?php echo $player; ?>/25">
                    <span class="MCplayerText"><?php echo $player; ?></span></div>
                    <!-- <div style="clear:both"></div> -->
                <?php else: ?>
                    <span>- <?php echo $player; ?></span><br>
                <?php endif; ?>
            <?php endforeach; ?>
            </span>
            <div style="clear:both"></div>
        <?php endif; ?>
    </p>

    add a line in your css for every player you want to have a colored border:

    #MCStatus<PLAYER> { border:1px solid #F00;}

    Replace <PLAYER> with the username, usernames are cAsE sEnSiTiVe 😉
    hope this helps you 🙂

    w00lly

    (@w00lly)

    Sorry, no idea comes to mind. If you just set it so, the heads behind it stick out half way, it should work. So depending on your font size, try adding more margin-top. I’m sure there is a better way out there to do this, but this is one of the faster ways I believe.

    w00lly

    (@w00lly)

    those are vendor prefixes, google them 😉
    you can offset the box by changing the margin around

    w00lly

    (@w00lly)

    .MCplayerText {
    	float:left;
    	display:none;
    	position:absolute;
    	margin-top:30px;
            padding:5px;
            border-radius:3px;
            -moz-border-radius:3px;
            -webkit-border-radius:3px;
            color:#FFF;
            background:rgba(0,0,0,0.6);
    }

    like this for example.

    w00lly

    (@w00lly)

    yeah i left the background out of the example, i’m just using:

    color:#FFF;
    background:rgba(0,0,0,0.6);

    you could also add some padding and rounded corners 😉

    w00lly

    (@w00lly)

    Hi,
    I tried changing the script around, here is what I got:

    in /minestatus/templates/partials/online.phtml search for:

    <?php if (isset($instance['show_minotars']) && $instance['show_minotars']) : ?>

    select the whole paragraph up (not including) to:

    <?php echo $args['after_widget']; ?>

    Replace with this:

    <?php if (isset($instance['show_minotars']) && $instance['show_minotars']) : ?>
                    <div class="MCplayer"><img style="float:left;margin: 0 5px 5px 0;" src="https://minotar.net/avatar/<?php echo $player; ?>/25">
                    <span class="MCplayerText"><?php echo $player; ?></span></div>
                    <!-- <div style="clear:both"></div> -->
                <?php else: ?>
                    <span>- <?php echo $player; ?></span><br>
                <?php endif; ?>
            <?php endforeach; ?>
            </span>
            <div style="clear:both"></div>
        <?php endif; ?>
    </p>

    and also add these lines to your css file:

    .MCplayer	{
    	float:left;
    }
    .MCplayer:hover .MCplayerText	{
    	display:block;
    
    }
    .MCplayerText {
    	float:left;
    	display:none;
    	position:absolute;
    	margin-top:30px;
    }
Viewing 10 replies - 1 through 10 (of 10 total)