2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Echelon v2 is not yet officially released! If you cannot get this dev-version installed, revert to version 1 as available in our download section.

Author Topic: Alternative server list page and chatlog page  (Read 5019 times)

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Alternative server list page and chatlog page
« on: June 23, 2012, 01:51:14 AM »
Hey there

This is just a little something I've done whilst improving Echelon for my clan. I have created a 'server list' page which can be accessed by all admins to provide a base for features and administration tools. I have personally added bot controls to this; in the example I have linked to an alternative chatlog page.

Some minor changes may need to be made to allow this to work for you. Also as I am new to PHP I would appreciate suggestions (either here or posted on my blog).

The blog post for the server list page can be found http://banbutton.com/index.php/server-list-page-for-echelon/

The blog post for the alternative chatlog page can be found http://banbutton.com/index.php/alternative-chatlog-page-for-echelon/

Hope this helps.

Duc.

EDIT: Another little modification I have done for the ChatLog page: http://banbutton.com/index.php/add-notice-button-for-chatlog-page-for-echelon/
« Last Edit: June 25, 2012, 02:03:48 AM by Sitting-Duc »

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Alternative server list page and chatlog page
« Reply #1 on: June 23, 2012, 02:14:04 AM »
That's a good add  ;D
Actually is a long time that i do not see any news about Echelon v2. I think the project will take long to be finished.

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Alternative server list page and chatlog page
« Reply #2 on: June 23, 2012, 10:05:12 AM »
That's a good add  ;D
Actually is a long time that i do not see any news about Echelon v2. I think the project will take long to be finished.

I'm thinking it will as well, I have no plans on major development but to get it fully integrated into my clans site and bansystem etc. Just thought that if anyone was doing the same/similar it may be useful.

The only drawback with this method and others using this method is when the time comes for an update it has to be done manually... but as there's been little development.. I don't think that will be for a while :)

Duc. 

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Alternative server list page and chatlog page
« Reply #3 on: June 23, 2012, 04:21:10 PM »
Well If WickedShell thinks that this is a good addon maybe he can integrate this solution in the official project but he is not online since 20 days so it may take a while to have an answer

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Alternative server list page and chatlog page
« Reply #4 on: June 23, 2012, 05:01:03 PM »
That would be good :)

The next thing I'm working on is to have some integration between the 'follow users' plugin and echelon.. should be finished in the next couple of days :)

Duc.

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Alternative server list page and chatlog page
« Reply #5 on: June 23, 2012, 06:21:17 PM »
Tbh I had not a deeper look at the Echelon v2 source code but i think is it possible to include external plugins. So I think you can build a total new plugin written in php to handle the followlist generated by the Following plugin.

Offline Miramar

  • Sr. Member
  • ****
  • Posts: 200
Re: Alternative server list page and chatlog page
« Reply #6 on: June 24, 2012, 12:16:26 PM »
you could also add your changes in the github repository as well...
and if it will be accepted it will be added in one of the next releases i guess...

Offline mash

  • Jr. Member
  • **
  • Posts: 42
    • Gamers - Extreme
Re: Alternative server list page and chatlog page
« Reply #7 on: June 24, 2012, 01:39:40 PM »
« Last Edit: June 24, 2012, 02:04:19 PM by mash »
Gamers - Extreme | www.g3x-clan.de

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Alternative server list page and chatlog page
« Reply #8 on: June 24, 2012, 08:47:28 PM »
The permission names needs to be the same as the following line:

$auth_name = 'view_servers';

If the database name and the auth name match and it's still not working then you will need to log out and log back in again for it to take effect.

Duc.

Offline mash

  • Jr. Member
  • **
  • Posts: 42
    • Gamers - Extreme
Re: Alternative server list page and chatlog page
« Reply #9 on: June 24, 2012, 10:46:24 PM »
Hello,

the re-login was the right way. Thats for your help. ;)

And you have to add "$auth_name = 'view_chat';" in the database, too.

Is there a way, that you publish the code for the "Bot Status"-, "Bot Control"- and "B3 Log"-Feature? That would be so nice!


Greetings and thanks,

Ma$H

Gamers - Extreme | www.g3x-clan.de

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Alternative server list page and chatlog page
« Reply #10 on: June 24, 2012, 11:10:25 PM »
I will be trying to write up and release some of my changes and modifications in the near future.. however the BotControl will probably be a while longer as It has allot built into it.

I have created the botcontrol using two .NET programs which limit it's use to windows based hosting; I will look at other solutions but that will not be for a while.

Thanks for your comments and feedback.

Duc.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Alternative server list page and chatlog page
« Reply #11 on: June 25, 2012, 04:04:56 PM »
@op. I really like what you have done to Echelon. I will be incorporating most of what you have provided and look forward to the rest of your mods.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline oddball118

  • Beta Testers
  • Full Member
  • *
  • Posts: 60
    • 4thID Clan
Re: Alternative server list page and chatlog page
« Reply #12 on: January 05, 2013, 02:00:57 AM »
If I was using one database for multiple servers and each server had it's own chatlog (named chatlog_28960, chatlog_28961...) how would I change

Code: [Select]
  $query = "SELECT id, msg_time, msg_type, client_id, client_name, client_team, msg 
        FROM chatlog_".preg_replace('/\./', '_', $server['ip']);

to reflect that?

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Alternative server list page and chatlog page
« Reply #13 on: January 05, 2013, 02:49:44 AM »
If the number is referring to the port then you can change $server['ip'] to $server['rcon_port']

Depends if it's the game port or rcon port..?

You can add a column to the ech_servers table to hold the identifying value if you need to.

Duc.
« Last Edit: January 05, 2013, 03:00:45 AM by Sitting-Duc »

Offline oddball118

  • Beta Testers
  • Full Member
  • *
  • Posts: 60
    • 4thID Clan
Re: Alternative server list page and chatlog page
« Reply #14 on: January 05, 2013, 05:32:27 AM »
Perfect.  Thanks! 

 


Rate this page +1 at Google Search

anything