Stefan1200's Forum

JTS3ServerMod Hosting Edition => JTS3ServerMod MySQL & WebInterface => Topic started by: Nate4ever on November 16, 2014, 04:42:34 AM

Title: Bot Page
Post by: Nate4ever on November 16, 2014, 04:42:34 AM
Hello,

Is there a way to create a page to show all the bots with the user next to them rather than going to each use separately?
Title: Re: Bot Page
Post by: Stefan1200 on November 16, 2014, 08:36:14 AM
I'm not sure, if I understand you. The bot list already show all bots, if you are an web interface admin.
Title: Re: Bot Page
Post by: Nate4ever on November 16, 2014, 07:15:11 PM
Its shows all the usernames on the bot list and you have to select the username to go to the bot. I saying to show all the bots on one page rather than going to a username to see them.
Title: Re: Bot Page
Post by: Stefan1200 on November 16, 2014, 07:17:57 PM
Quote from: Nate4ever on November 16, 2014, 07:15:11 PM
I saying to show all the bots on one page rather than going to a username to see them.

Will not be done because of performance reasons (because it queries the state of the bot). But you could easily create an own page just with the information from the MySQL database without querying the bot state.
Title: Re: Bot Page
Post by: Nate4ever on November 17, 2014, 09:13:50 PM
I have no idea how to do that hahah. I guess its worth a try.
Title: Re: Bot Page
Post by: Nate4ever on November 21, 2014, 02:39:50 AM
ahhaha it didnt work out that well. I failed. Thank you tho
Title: Re: Bot Page
Post by: Nate4ever on February 19, 2015, 12:21:07 AM
I am having issues where to show all the bots. I was able to show 2 of them, but not all. Help?

Edit by Stefan1200: Removed not working PHP code
Title: Re: Bot Page
Post by: Stefan1200 on February 19, 2015, 07:54:37 AM
Okay, next web interface version get a "List all bots" list for web interface administrators. So I do it for you ;)
Title: Re: Bot Page
Post by: Nate4ever on February 23, 2015, 08:48:22 PM
And this is why you are loved :P
Title: Re: Bot Page
Post by: Stefan1200 on February 23, 2015, 09:02:15 PM
Quote from: Nate4ever on February 23, 2015, 08:48:22 PM
And this is why you are loved :P

You already saw that feature in the new web interface? I hope it works like you want :)
Title: Re: Bot Page
Post by: Nate4ever on February 23, 2015, 10:21:36 PM
It looks good! :D

I believe there is a bug if i am not mistaken...It does not show all the bots only a select few. It will show bot 1-3 then skip to 20. Does not show 13, when there is a bot on 13.
Title: Re: Bot Page
Post by: Nate4ever on February 23, 2015, 10:26:03 PM
(http://postimg.org/image/70gh8l6x3/)

http://postimg.org/image/70gh8l6x3/

I have 21 bots and doesnt show all of them.
Title: Re: Bot Page
Post by: Stefan1200 on February 23, 2015, 10:32:16 PM
Hmm, it should list every bot, which are created by the web interface. If you add bots directly to the MySQL table it can happen that they are hidden, if you forgot to fill the jts3servermodwebui_usersinstances table as well.

Can you check the MySQL table jts3servermodwebui_usersinstances if every bot have at least one user id linked?
Title: Re: Bot Page
Post by: Nate4ever on February 24, 2015, 08:41:32 AM
Hello,

Yes they have user ids. I have attached a picture :D

http://s17.postimg.org/5qdnq6xz3/Screen_Shot_2015_02_23_at_11_39_58_PM.png
Title: Re: Bot Page
Post by: Stefan1200 on February 24, 2015, 12:16:10 PM
Quote from: Nate4ever on February 24, 2015, 08:41:32 AM
Yes they have user ids.

Please send me an complete SQL export of the MySQL tables:
jts3servermodwebui_users
jts3servermodwebui_usersinstances
jts3servermod_instances
Title: Re: Bot Page
Post by: Nate4ever on February 24, 2015, 06:37:43 PM
here you go please delete it once you download it.
Title: Re: Bot Page
Post by: Stefan1200 on February 24, 2015, 08:34:48 PM
Someone already downloaded it. Next time use email for information you don't like to share with others.
Title: Re: Bot Page
Post by: Stefan1200 on February 24, 2015, 09:02:15 PM
Thanks Nate, with your database export I was able to fix the bug. Just download the new version now and update the botlist.php file (no more changes since build 3005). Please give me feedback if its now working for you.
Title: Re: Bot Page
Post by: Nate4ever on February 25, 2015, 08:30:29 AM
I didnt think abut that haha. I hope they dont use it for bad.

Title: Re: Bot Page
Post by: Nate4ever on February 25, 2015, 08:35:56 AM
Looks like everything is good so far :D