Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header - Add additional left menu items #47

Open
DNA-styx opened this issue Dec 23, 2024 · 4 comments
Open

Header - Add additional left menu items #47

DNA-styx opened this issue Dec 23, 2024 · 4 comments

Comments

@DNA-styx
Copy link
Owner

DNA-styx commented Dec 23, 2024

Custom items for server rules

Also a couple of other items just to fill the left bar up when HLStatsX has multiple games. Eg. Contents of the top links and games drop down menu

#41

@DNA-styx
Copy link
Owner Author

Seems that the Admin option 'Contact' is not actually used anywhere, so I hijacked that to allow a rules link to be displayed.

image

@DNA-styx DNA-styx mentioned this issue Dec 26, 2024
@stylez1989
Copy link

@DNA-styx

Testing out your build, Love the rules and map is coming out great!
Is there a way when you click on rules, It keeps it it on the same site but loads the actual weblink so we still have the menu? Not actually open a new browser but possibly goes to a new link like it does on the menus and has a web box that is directed to that page.

If you need examples of what I'm trying to say let me know!

Thank you so much!

@DNA-styx
Copy link
Owner Author

DNA-styx commented Dec 30, 2024

Is there a way when you click on rules, It keeps it it on the same site but loads the actual weblink so we still have the menu? Not actually open a new browser but possibly goes to a new link like it does on the menus and has a web box that is directed to that page.

Unsure, I'm piggy backing off the current HLStatsX code here, and default behaviour is to spawn a new window. That would involve adding a new page (aka mode) to HLStatsX, at a guess a new item would need to be added to this array and a matching page created. Then in theory the page could be called using https://domain.com/hlstats.php?mode=rules if that worked then I could add theming around the page and allow text to be entered in the middle.

I'm thinking that's currently not within the scope of this project (but I can have a look at it separately when I've got available bandwidth), but if someone wanted to have a go and submit it to one of the active HLStatsX repos, I should be able to merge it in here.

@DNA-styx
Copy link
Owner Author

Another way would be to use this template and build a fake page to display the rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants