Jump to content
  • 0

Server Description


Question

Good time of day!

how to make links about server information. each block had its own ?

the code for the output of the block is the same, and the link is created for each server the same. and you need your own for everyone..

example:
s16 - Server Description - https://website/info/default
s15 - Server Description - https://website/info/season15

 

<div class="server">
	<div class="flex-s-c">
		<span class="server-name"><?php echo htmlspecialchars($value['title']); ?></span><span class="status-online"><?php echo round((int)$value['players']*1.5); ?> players online</span>
	</div>
	<div class="progress-bar">
		<span style="width: <?php echo (int)$online;?>%;"></span>
	</div>
		<a href="<?php echo $this->config->base_url; ?>about/stats/DEFAULT" title="<?php echo _('Server Description'); ?>"></a> 
</div>

 

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
21 hours ago, EvilAlex said:

Good time of day!

how to make links about server information. each block had its own ?

the code for the output of the block is the same, and the link is created for each server the same. and you need your own for everyone..

example:
s16 - Server Description - https://website/info/default
s15 - Server Description - https://website/info/season15

 


<div class="server">
	<div class="flex-s-c">
		<span class="server-name"><?php echo htmlspecialchars($value['title']); ?></span><span class="status-online"><?php echo round((int)$value['players']*1.5); ?> players online</span>
	</div>
	<div class="progress-bar">
		<span style="width: <?php echo (int)$online;?>%;"></span>
	</div>
		<a href="<?php echo $this->config->base_url; ?>about/stats/DEFAULT" title="<?php echo _('Server Description'); ?>"></a> 
</div>

 

Loop

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...