sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
328 stars 174 forks source link

Add optional gametracker support #927

Open connorrichlen opened 9 months ago

connorrichlen commented 9 months ago

Description

-adds gametracker optional feature to display banner -uses updater to add mysql setting

Motivation and Context

How Has This Been Tested?

-tested on an existing sb install

Screenshots (if appropriate):

https://i.gyazo.com/16377ab56df7714fbc75993439199747.png

Types of changes

Checklist:

Rushaway commented 9 months ago

Nice job. 😉 You missing to add the settings in the features as a checkbox. Ex: https://github.com/sbpp/sourcebans-pp/blob/e3e8ff144b6dc1d5bb4d7c279eb5852a10d1faa8/web/themes/default/page_admin_settings_features.tpl#L47-#L54 And for the version bump. Idk if maintainer want to bump it.

Rushaway commented 9 months ago

Maybe switch to 160px banner if server isn't empty ? What do you think? Acutal render with the banner. image

connorrichlen commented 9 months ago

Haha thank you :D I seemed to have forgotten to actually add the support

connorrichlen commented 9 months ago

Maybe switch to 160px banner if server isn't emptyimage

good call, check this out

Rushaway commented 9 months ago

When you tick the box, settings are correctly saved ? Based on e5bfd77bba764d6d8c821ae939ac0480fb776520

connorrichlen commented 9 months ago

yes, but it requires a mysql entry, hence the new updater script

i did this a while ago on my own installation so i copied over what i remembered i did in the PR haha

Rushaway commented 8 months ago

@crashzk You was able to make it run?

crashzk commented 8 months ago

@crashzk You was able to make it run?

No, I'm sorry... Since CS2 was released I closed the CSGO servers and focused on it, due to the limitations of the sourcebans it is currently "offline" so to speak.

Rushaway commented 5 months ago

I still can't make it run correctly. (tickbox aren't saved)

https://github.com/sbpp/sourcebans-pp/pull/927/files#diff-e3bb73ab9b4faf337bcf13a28231466a64044b4cae744db0e3581e6c432b3133R5 Value should not be null, you can use 536 as id