DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 20, 2018, 01:21:50 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: 0.9.8 modules information  (Read 5613 times)
0 Members and 1 Guest are viewing this topic.
Kendaer
Guest
« on: March 09, 2004, 12:31:46 AM »

As some of you know, MightyE and I have been working on a moduling system (similar to what genmac's IGM system is).

(genmac/Mike -- ME and I did get the code you'd sent us.   I'd sent it to ME and somehow he misplaced it, so when he got a wild hair one day, he went and did his own modulling system -- I personally apologize to you since you were kind enough to do a lot of work for us which at this point got unused)

The source code script for dragoncat.net and lotgd.net is open again so that people can look and see the sorts of things we are allowing modules to do.   Not all modules are necessarily active on every server btw.  There are also features missing from the modules and they are *still in development*.

However, it might behoove the authors among you to start tracking the way we are going to be doing modules.  Eventually we will have moduling dependancies.   I am also working on an extension to the navigation system which will clean up quite a few of those things in the current modules to make them even easier.

Modules are *not* trivial by any means.  They are a way of hopefully keeping user code independant across consecutive releases of the core code (as long as we don't remove hooks which you need and don't change the API drastically once we release it, this should work).

Anyway, I just wanted to give you folks a heads up and let you know that the source to a couple of the modules is available for viewing.  Currently the existing modules are the outhouse (the existing outhouse code moved into a module), Dag (dag durnick moved into a module), gardenparty (something MightyE wrote today which has a major overhaul planned as I objected to how he did some things Smiley Smiley) and drinks, which pulls *all* drunkeness and drink related code out into a seperate module and provides an editor so people can supply their own drinks on the server.  There is also a testmodule framework, which ME used for testing the initial version.

The api is contained primarily in modules.php (the superuser module management code) and lib/modules.php (which contains all of the module code) and runmodule.php (which runs specific modules so that you can create links from one module to another or from the main code to a module.  All module navs go through runmodule)

Enjoy!!
« Last Edit: April 23, 2004, 09:32:22 PM by Kendaer » Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #1 on: March 09, 2004, 07:39:50 AM »

:/

Screw you guys.

Ah well, whatever works.  My system wasn't 100% complete anyway, it needed another layer or two of abstraction and a half pint of complexity that I didn't have time to implement.
Logged



Castle Siege - a work in progress
Kendaer
Guest
« Reply #2 on: March 09, 2004, 08:28:22 AM »

:/

Screw you guys.

Geez.  That's why I offered you an apology up above..it wasn't meant as a deliberate slight.
Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #3 on: March 11, 2004, 12:23:26 AM »

And that's why I said "whatever works" ;p

That's just one of the dangers of writing for an opensource project.  Your work might get thrown away because a developer gets a "wild hair".  I've learned my lesson (for the 3rd time).

Speaking of which...ME should get a wild hair about making the dbname for LoGD more flexible....then I'd be impressed.  Virtual hosting usually offers only one database, and a configurable dbname is a handy thing.
Logged



Castle Siege - a work in progress
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #4 on: March 11, 2004, 12:40:25 AM »

dbconnect.php:

$DB_NAME="logd"; //Database Databasename

change it to whatever...
Logged
Kendaer
Guest
« Reply #5 on: March 11, 2004, 12:47:46 AM »

And that's why I said "whatever works" ;p

That's just one of the dangers of writing for an opensource project.  Your work might get thrown away because a developer gets a "wild hair".  I've learned my lesson (for the 3rd time).

Speaking of which...ME should get a wild hair about making the dbname for LoGD more flexible....then I'd be impressed.  Virtual hosting usually offers only one database, and a configurable dbname is a handy thing.

Ah.. I think you misunderstood what actually happened.. I recieved the code and sent it to ME since I didn't have time to look at it immediately.  Apparently it got lost (or trapped by a spam filter) so he never saw it.  Sometime last week ME decided he had time to work on modules and since he hadn't seen the code you'd sent and I was buried under stuff like job hunting, he just went ahead and implemented his own stuff.

As for the database names, we have plans (yes, we do) for making configurable database prefixes AND for the ability for some tables to be shared between multiple server instances on the same host (why such a thing would be useful is left as an exercise to the reader, but suffice to say that we have ideas/plans there as well Smiley Smiley
Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #6 on: March 11, 2004, 08:08:55 AM »

Naw, I didn't misunderstand, and it's really not a problem anyway.

Arune: Nevermind, I was talking about the db prefix names, not the actual database name...my bad.
Logged



Castle Siege - a work in progress
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #7 on: March 11, 2004, 01:09:05 PM »

Genmac,
After I posted and went to bed, lying in bed I was thinking about it..

Realized what you meant =)

I said...Now hes gonna call me a moron for that post ! hehe
Logged
Valorin
Guest
« Reply #8 on: March 11, 2004, 05:45:46 PM »

dbconnect.php:

$DB_NAME="logd"; //Database Databasename

change it to whatever...

I might be wrong, but i thought he ment a tableprefix. The LoGD table names are generic, so a prefix would mean it can be installed along side other tables without the chance of them conflicting. Many forum systems do this, and its a great help with a small amount of databases.

e.g.
'logd_account' instead of 'account'
Logged
Kendaer
Guest
« Reply #9 on: March 11, 2004, 06:08:14 PM »

I might be wrong, but i thought he ment a tableprefix. The LoGD table names are generic, so a prefix would mean it can be installed along side other tables without the chance of them conflicting. Many forum systems do this, and its a great help with a small amount of databases.

e.g.
'logd_account' instead of 'account'

Please read further up where I said this ability was in fact planned for some point, it's just not there yet :/  Sheesh.
Logged
Valorin
Guest
« Reply #10 on: March 11, 2004, 06:13:44 PM »

I beg your Pardon!
That will teach me to Skimread threads!
Logged
Kendaer
Guest
« Reply #11 on: April 10, 2004, 08:26:35 PM »

As of tonight, 0.9.8 has preliminary support for database prefixes.  There is no automated way to install the tables with these prefixes yet, but there will be soon Smiley
Logged
strider
Guest
« Reply #12 on: April 13, 2004, 10:22:16 PM »

Huzzah!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
44 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search