💖 Apoie o Servidor

Escolha sua forma de contribuição:

esse copilot está cada vez mais engraçadinho

Lugar pra conversar com outros jogadores, fazer amizade e marcar partidas.
Avatar do usuário
Resistência PSO
Site Admin
Mensagens: 301
Registrado em: 02 Abr 2025, Qua, 10:16
Localização: Pioneer 2
Has thanked: 26 times
Been thanked: 96 times
Contato:

esse copilot está cada vez mais engraçadinho

Mensagem por Resistência PSO »

Imagem

:lol: :lol: :lol: amanhã tem mais pessoal
Imagem
Avatar do usuário
Sabonete
MEMBRO HANDGUN
Mensagens: 8
Registrado em: 14 Abr 2025, Seg, 07:01

Re: esse copilot está cada vez mais engraçadinho

Mensagem por Sabonete »

Estão tentando oque afinal deixar um status direito? Eu encontrei um tutorial interessante e acho que isso resolve o problema de vocês
Para exibir o status de um servidor diretamente em um fórum phpBB, você pode utilizar um sistema de integração de código ou extensão que permita a comunicação com o servidor e a exibição das informações relevantes no fórum. Uma abordagem comum envolve o uso de um script PHP para obter o status do servidor e, em seguida, exibir esses dados em um bloco de código HTML dentro do template do phpBB.
Passos:
1. Criação do Script PHP:
Desenvolva um script PHP que se conecte ao servidor, obtenha as informações de status desejadas (por exemplo, número de jogadores online, uso de CPU, memória) e as formate para exibição.
Utilize funções como fsockopen ou bibliotecas como socket para a conexão com o servidor, dependendo do tipo de servidor e protocolo.
Formate os dados de status em um formato adequado para exibição, como HTML, JSON ou XML.
2. Integração com o phpBB:
Extensão (Recomendado): Crie uma extensão para o phpBB que inclua o script PHP e o código HTML para exibir os dados.
A extensão pode ser instalada e gerenciada através do painel de administração do phpBB.
Utilize os ganchos (hooks) do phpBB para inserir o código HTML no template desejado.
Código Inserido Diretamente no Template:
Localize o arquivo de template apropriado (por exemplo, overall_header.html ou overall_footer.html) no diretório do seu tema.
Insira o código HTML gerado pelo script PHP, garantindo que a sintaxe seja compatível com o phpBB.
É importante ter cuidado ao modificar os arquivos de template, pois alterações incorretas podem afetar o funcionamento do fórum.
3. Exibição:
O script PHP será executado quando a página correspondente ao template for carregada, e os dados de status serão exibidos no local onde o código HTML foi inserido.
Utilize CSS para estilizar a aparência dos dados exibidos no fórum.
Avatar do usuário
Sonic DX
MEMBRO VJAYA
Mensagens: 64
Registrado em: 07 Mai 2025, Qua, 22:59
Has thanked: 67 times
Been thanked: 64 times

Re: esse copilot está cada vez mais engraçadinho

Mensagem por Sonic DX »

tudo que envolve esses scrypts parecem faceis mas não são é um pé no S@#* eu tinha um servidor de mu online e um forum igual esse aqui phpbb mas era uma versão antiga sofri pra burro até conseguir só que não lembro como eu fiz só sei que foi Ajax e não php
Avatar do usuário
Monster PSO Fan
MEMBRO HANDGUN
Mensagens: 18
Registrado em: 16 Jun 2025, Seg, 23:48
Has thanked: 5 times

Re: esse copilot está cada vez mais engraçadinho

Mensagem por Monster PSO Fan »

acho que pra ter o status exibido tem que primeiro transformar a entrada http em uma saida https...
Avatar do usuário
Rafael Motta
MEMBRO VARISTA
Mensagens: 30
Registrado em: 18 Jun 2025, Qua, 22:19
Localização: Itaquera SP
Has thanked: 93 times
Been thanked: 67 times

Re: esse copilot está cada vez mais engraçadinho

Mensagem por Rafael Motta »

Open Source PHP Steam Games Display API
Welcome, everyone! This open-source code is public for everyone to use for their video gaming communities; this code allows server owners or admins to display real-time in-game stats for their video game servers directly on their website. This PHP system works by taping now into the public APIs listed on some of the most popular listing websites. This PHP code is designed to be user-friendly for all audiences, from beginners to advanced! This PHP code is a simple drag/drop or copy/paste directly on your webpage to start using its benefits without the hassle of coding or programming anything front-end or backend.

Website Features
Select many different styles and themes for the display stats!
Unlimited colors that you can modify and select for each style/theme!
Multiple fonts/themes/styles that all come included for free!
100% Open Source Code (No hidden fees, entirely free for everyone!)
Product Description
Have you ever wanted to display in-game stats directly on your website without the headache and hassle of coding the website files? Well, now you can! With our website stats, you can now drag/drop and copy/paste the code directly into your webpage on your website without the hassle and headache of trying to code and set up everything. This package is designed for beginners and advanced members who want the ease of access to get this set up quickly and efficiently. This system allows any server admin or owner to tap directly into API and integrate it within your website with ease of access.

Supported Sites (Current)
Battlemetrics - Is currently fully supported
TopArkServers - Is currently fully supported
Installation Tutorial
Download the .ZIP file
Open the .PHP file inside "notepad"
Copy and paste the code directly on any webpage you want to be displayed.
That's it! Enjoy the stats!
F.A.Q.
Q: How does this PHP system work?

A: This system was designed to be user-friendly for beginners and advanced members; this system works by grabbing JSON data from popular API sites for video game communities. The PHP script itself will decode the API JSON responses. It directly changes it to a lightweight readable format; this is designed to give the users complete control over what data they want to display on their websites. The open-source files are exclusively intended to be as lightweight and straightforward as possible while still providing the user's complete control over how they want the data displayed on their websites.

Q: Does this require any coding knowledge to set up?

A: Nope! This is designed to be a simple copy/paste or drag/drop setup; you don't need any coding knowledge to begin using this PHP script. You replace the "ServerKey" with your game server key, and then you drag/drop or copy/paste the PHP script directly into your website. No coding is required at all, and everything is written out in great detail, explaining how each function works to provide you the ease of access.

Battlemetrics Website Features
These features below allow you to display any of these data stats directly on your website using the API provided by "Battlemetrics".

Supports Game Type
Supports Server ID
Supports Server Name
Supports Server Display Address
Supports Server Dedicated I.P.
Supports Server Game Port
Supports Server Online Players
Supports Server Total Max Players
Supports Server Display Ranking
Supports Server GEO Location
Supports Server Online/Offline Status
Supports Server Mod I.D.S.
Supports Server Mod Hash Data
Supports Server Map Name
Supports Server Time
Supports Server Time International
Supports Server Official Boolean
Supports Server Gamemode
Supports Server Mod Names
Supports Server P.V.E. Mode
Supports Server Modded Boolean
Supports Server Crossplay Boolen
Supports Server Session Flag
Supports Server Owners SteamID
Supports Server Private Boolean
Supports Server Creation Date
Supports Server Last Update Date
Supports Server Query Port
Supports Server Country
Supports Server Query Status
TopArkServers Website Features
These features below allow you to display any of these data stats directly on your website using the API provided by "TopArkServers".

Supports Vote Rewards Tracking
Supports Online Player Counter
Supports Minimal Total Players Counter
Supports Max Total Players Counter
Supports Servers ID Code
Supports Server Name
Supports Servers I.P. Address
Supports Servers Query Port
Supports Servers Game Port
Supports Servers Map Name
Supports Servers Online/Offline Status
Supports Total Monthly Server Votes

https://github.com/GameServersHub/Steam ... site-Stats
Responder