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

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

Author Topic: New Module Settings for 0.2.X  (Read 8476 times)

0 Members and 2 Guests are viewing this topic.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
New Module Settings for 0.2.X
« on: December 29, 2006, 12:35:22 am »
I backported the BeBot 0.3 version of my settings module to BeBot 0.2.X. This module replaces my previous settings module for 0.2.X.

Before using this module, you should drop your current module_settings table. This new module uses the same format as BeBot 0.3 does.

You can read all about this module in the BeBot Wiki Working with the Settings Core module and global settings array.

Hopefully I'll get my modules that were using the previous version of my settings module up to date soon. :)

In addition to providing functions for saving, retrieving, and managing settings, this new version provides a common settings interface for all settings using the module. You no longer have to code your own custom settings interface for every module!

Download: ModuleSettings_2.0.3.zip
« Last Edit: January 16, 2007, 01:13:34 am by Glarawyn »

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #1 on: January 01, 2007, 10:17:59 pm »
Found a small typo, new version 2.0.1.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #2 on: January 13, 2007, 11:00:47 am »
I had to add a " ENGINE=InnoDB DEFAULT CHARSET=latin1" tot he CREATE TABLE statement to make it work for me. Bot complains about the primary key being over 1000 chars wide, otherwise. That is more of a problem with me not using a sane default character set for the database than a real problem with the module. :-[ Still, might help someone with similar trouble.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #3 on: January 16, 2007, 01:16:49 am »
Found some bugs, and made some changes to 0.3 trunk. So here's a new version of the 0.2 core backport.

New:
  • Settings are now loaded when the core module loads instead of when the bot connects
  • Added a display order column to the db table. Module developers can now better control the order settings are displayed in the settings interface.
  • Any setting named password will have it's value masked in the settings interface. Please note that passwords are still stored in clear text in the database and global settings array.
  • Any setting whos value is a HTML color code will be displayed in the color that code represents.

New version of Module Settings for BeBot 0.2.X is 2.0.3. Download link updated.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #4 on: January 16, 2007, 02:06:37 am »
Thanks for your help tonite Glara and fast updates, much appreciated :-)

-jj-

Offline ghostimage

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #5 on: January 17, 2007, 03:07:40 pm »
Small note for newbies like me who haven't used previous version. This is a core module and so needs to go into the \core folder not \modules :)

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #6 on: January 17, 2007, 09:21:26 pm »
Small note for newbies like me who haven't used previous version. This is a core module and so needs to go into the \core folder not \modules :)

The zipfile contains path information, so you should be able to extract the zip right to your BeBot directory and have the files end up in the right place. That's why I pack all my releases into zip files anyway.  ;D

Offline Xaun

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #7 on: March 03, 2007, 10:32:02 pm »
I am soo lost on getting this one to work >_<

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #8 on: March 04, 2007, 06:36:17 pm »
But thanks to your extremely accurate description of your problems, we were able to solve them in no time. WTG!
Luuv  Bot-Keeper of Vengeance ^^*

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #9 on: March 04, 2007, 10:18:32 pm »
Just a FYI,

I have this running on Vers 0.3.3 with PHP 5.1 and it is working great!
Looking forward to all modules using Glarawyn's work here!


Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: New Module Settings for 0.2.X
« Reply #10 on: March 05, 2007, 06:12:44 pm »
I am soo lost on getting this one to work >_<

Ask a question or state the problem you're having and we can help you. This module will do absolutely nothing for you unless other modules that you've downloaded require the settings module to function. Custom modules have to be coded to use the settings framework, without modules that use the settings framework, settings doesn't have anything to do. Does that make sense? ;)


 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 218
  • 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