L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 07:56:29 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: New Module Settings for 0.2.X
Pages: [1]   Go Down
« previous next »
Print
Author Topic: New Module Settings for 0.2.X  (Read 1574 times)
0 Members and 1 Guest are viewing this topic.
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



New Module Settings for 0.2.X
« on: December 28, 2006, 06:35:22 PM »

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. Smiley

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 15, 2007, 07:13:34 PM by Glarawyn » Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: New Module Settings for 0.2.X
« Reply #1 on: January 01, 2007, 04:17:59 PM »

Found a small typo, new version 2.0.1.
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: New Module Settings for 0.2.X
« Reply #2 on: January 13, 2007, 05: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. Embarrassed Still, might help someone with similar trouble.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: New Module Settings for 0.2.X
« Reply #3 on: January 15, 2007, 07:16:49 PM »

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.
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: New Module Settings for 0.2.X
« Reply #4 on: January 15, 2007, 08:06:37 PM »

Thanks for your help tonite Glara and fast updates, much appreciated :-)

-jj-
Logged
ghostimage
Freshman
*
Offline Offline

Posts: 13


Re: New Module Settings for 0.2.X
« Reply #5 on: January 17, 2007, 09:07:40 AM »

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 Smiley
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: New Module Settings for 0.2.X
« Reply #6 on: January 17, 2007, 03:21:26 PM »

Quote from: ghostimage on January 17, 2007, 09:07:40 AM
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 Smiley

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.  Grin
Logged
Xaun
Freshman
*
Offline Offline

Posts: 5


Re: New Module Settings for 0.2.X
« Reply #7 on: March 03, 2007, 04:32:02 PM »

I am soo lost on getting this one to work >_<
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: New Module Settings for 0.2.X
« Reply #8 on: March 04, 2007, 12:36:17 PM »

But thanks to your extremely accurate description of your problems, we were able to solve them in no time. WTG!
Logged

Luuv  Bot-Keeper of Vengeance ^^*
mookie
Rookie
**
Offline Offline

Posts: 27


Re: New Module Settings for 0.2.X
« Reply #9 on: March 04, 2007, 04: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!

Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: New Module Settings for 0.2.X
« Reply #10 on: March 05, 2007, 12:12:44 PM »

Quote from: Xaun on March 03, 2007, 04:32:02 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? Wink

Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: New Module Settings for 0.2.X
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by Temar
[Today at 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]

Delete member from Bot al...
by Alreadythere
[November 14, 2008, 12:17:54 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11034
Total Topics: 1495
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 18
Total: 21
Temar
Zeephonz
DarkGord

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.252 seconds with 28 queries. (Pretty URLs adds 0.038s, 4q)
Loading...