collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Settings & settings-module  (Read 6445 times)

0 Members and 1 Guest are viewing this topic.

MatHack

  • Guest
Settings & settings-module
« on: February 06, 2006, 05:11:01 pm »
Since some modules use settings already (latest SVN, rightsmanagement & online), and more and more modules will later on (seeing the colors in settings ToDo-item), it is a good idea in my opinion to make the Settings.php module a core-module, move the get_setting function from rightsmanagement to settings and make sure all settings are requested & managed through that module.

This way you will have less redundant functions and if there's need to change a _setting function you only have to change it on 1 location.

Just my 2 cents.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Settings & settings-module
« Reply #1 on: February 06, 2006, 06:02:39 pm »
You're right there.
Actually the current situation is in some way my fault. I added the get/set_setting functions to my bot class, as I got tired of doing the selects all the time. Later I added a settings module that allowed to read and modify some settings online.
And all the while in between I posted modules I wrote, which are using the functions (I'm too lazy to remove them tbh).

Best solution would be all in one Settings core module, similar to the colors module. I'll try to write something soon.

MatHack

  • Guest
Re: Settings & settings-module
« Reply #2 on: February 06, 2006, 06:42:24 pm »
There shouldn't be any need for a color module after putting them in settings, right?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Settings & settings-module
« Reply #3 on: February 07, 2006, 01:34:07 pm »
Actually the idea is to have a color and a setting module. Settings are bot specific, color values can be global over more then one bot.

Me putting all those color values into the settings table was a quick fix. I wanted them in some table, so I put them in the first semi-related one.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 227
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal