Thread: [phpslash-users] Development question
Brought to you by:
joestewart,
nhruby
From: Brian T. <bt...@ig...> - 2006-01-27 22:12:02
|
Hello list, I am interested in using phpwebsite in developing a cms to handle vulnerability information. I need some guidance on some terminology and best methods. I want to use the "story" module as the base of a new module to handle data stored in mysql of a different schema. So I was wondering: 1) Whats the best method for creating a new module with the base being "story" - or am I looking at the right place to begin? 2) Most of the SQL querries for stories appears to be in "include/modules/story/ - is the index.php the main include for any module? 3) Is their any already existing documentation for creating a module? Will I need a new "section" as well? Thanks, Brian Toovey |
From: Luis M <le...@gm...> - 2006-01-28 01:32:34
|
SGVsbG8gQnJpYW4sCgpJIGJlbGlldmUgdGhhdCdzIGEgZ29vZCBhcHByb2FjaC4gWW91IG1pZ2h0 IHdhbnQgdG8gdGFrZSBhIGxvb2sgYXQKcGhwc2xhc2hmb3JnZS5vcmcncyBtb2R1bGVzIGZvciBp bnNwaXJhdGlvbi4KCkkgaGF2ZW4ndCBkb25lIG9uZSBteXNlbGYsIGJ1dCBKb2UgY291bGQgaGVs cCB5b3Ugd2l0aCB0aGF0LgoKUGVyaGFwcyB5b3UgY2FuIGRvIHRoYXQgYnkgdXNpbmcgYSBCbG9j a19yZW5kZXJfKiBhcyB3ZWxsLi4uIE5vdCB0b28Kc3VyZSB3aGF0IGlzIGl0IHRoYXQgeW91IHdh bnQgeW91ciAic3RvcnkiIGJsb2NrcyB0byBiZSBhYmxlIHRvIGRvLgoKT24gMS8yNy8wNiwgQnJp YW4gVG9vdmV5IDxidG9vdmV5QGlneGdsb2JhbC5jb20+IHdyb3RlOgo+ICBIZWxsbyBsaXN0LAo+ Cj4gIEkgYW0gaW50ZXJlc3RlZCBpbiB1c2luZyBwaHB3ZWJzaXRlIGluIGRldmVsb3BpbmcgYSBj bXMgdG8gaGFuZGxlCj4gdnVsbmVyYWJpbGl0eSBpbmZvcm1hdGlvbi4gIEkgbmVlZCBzb21lIGd1 aWRhbmNlIG9uIHNvbWUgdGVybWlub2xvZ3kgYW5kCj4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p5b3Ugd29yayBvbiB5b3VyIGNvbXB1dGVyIHdoZW4geW91IHdhbnQgdG8gdHVybiB5 b3VyIGJyYWluIG9uIiAtLQpTdGV2ZSBKb2JzIGluIGFuIGludGVydmlldyBmb3IgTWFjV29ybGQg TWFnYXppbmUgMjAwNC1GZWIKCk5vIC5kb2M6IGh0dHA6Ly93d3cuZnNmLm9yZy9waGlsb3NvcGh5 L25vLXdvcmQtYXR0YWNobWVudHMuZXMuaHRtbAo= |
From: Brian T. <bt...@ig...> - 2006-01-28 02:37:37
|
phpslashforge is still an active site? DNS Lookup: www.phpsplashforge.org A record Generated by www.DNSstuff.com How I am searching: Searching for www.phpsplashforge.org A record at d.root-servers.net [128.8.10.90]: Got referral to TLD5.ULTRADNS.INFO. [took 6 ms] Searching for www.phpsplashforge.org A record at TLD5.ULTRADNS.INFO. [192.100.59.11]: Reports that no A records exist. [took 21 ms] Answer: No A records exist for www.phpsplashforge.org. [Neg TTL=86400 seconds] Details: TLD5.ULTRADNS.INFO. (an authoritative nameserver for org.) says that there are no A records for www.phpsplashforge.org. The E-mail address in charge of the org. zone is: dom...@ul.... On Fri, 2006-01-27 at 20:32 -0500, Luis M wrote: > Hello Brian, > > I believe that's a good approach. You might want to take a look at > phpslashforge.org's modules for inspiration. > > I haven't done one myself, but Joe could help you with that. > > Perhaps you can do that by using a Block_render_* as well... Not too > sure what is it that you want your "story" blocks to be able to do. > > On 1/27/06, Brian Toovey <bt...@ig...> wrote: > > Hello list, > > > > I am interested in using phpwebsite in developing a cms to handle > > vulnerability information. I need some guidance on some terminology and > > best methods. > > > > I want to use the "story" module as the base of a new module to handle data > > stored in mysql of a different schema. So I was wondering: > > > > 1) Whats the best method for creating a new module with the base being > > "story" - or am I looking at the right place to begin? > > > > 2) Most of the SQL querries for stories appears to be in > > "include/modules/story/ - is the index.php the main include for any module? > > > > 3) Is their any already existing documentation for creating a module? Will > > I need a new "section" as well? > > > > Thanks, > > Brian Toovey > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.1 (GNU/Linux) > > > > iQIVAwUAQ9qaq0a2wLxNZUkjAQJHJQ//d+Q80lhvRTqdwAui6ibUZC+sypXCty1Z > > mpI6jBgAiD1+NjUwnfsXKaakESWMJo3l8pHTpfJX4Cr7nAj3DxM/+N7tv4xFDx2b > > 8a8HxTSAM8snavw0wT+OQM6pQK1eMxFyyfWXmZQX3itwj1Z1GmXDmoza+HxOi2L1 > > twom5BQdjjQ0G0VcQLfd3nCxjNxXf56nfkWeCsf58yOqpVlhGRsNdgQRwyaZX9Ms > > Cx7QaInRVBpQfrQYoBjgs1IZgk1Ny+Ea5k0ihU/Yh3VZDoBhGdXfmbCIrBxDf5v0 > > /b1dQGG+qVJ5aH7r82mGIs3zrdWVMF5abp0+Wv0Vg+03D5J5T7OFW3JFhikrKgaB > > GbT9qolAUeSD1LD0888Je7LpuFajY/708Qwkh5GHgNhQ+a2OCpfpuJid+v+KoQim > > VstE/FmJ+sP7zxx/VpNv7pMCqgCtkKj4izwdVKz4vJxoBxGWuGaq3SZxJwiT+fD6 > > lSRw7yUyu+QEC6a7MO5bGaE45BXX5HckGnI4APejgLGoqjCBeTGdKpuAygpw3g61 > > 2t9KN22a0h8AkeC5Ui51X63Uf7PdE/r4RBdFe+X5l7F3L6JCh39iCISK3bU92AaX > > aFiM+Bj5r6qyiuxyDETSjWR2tKaBxGaN2vUcI1dfktUavQXngV6LY+prz+6FrSi6 > > HgsooEW7gDo= > > =d4zo > > -----END PGP SIGNATURE----- > > > > > > > > > -- > ----)(----- > Luis M > System Administrator > Kiskeyix.org > > "We think basically you watch television to turn your brain off, and > you work on your computer when you want to turn your brain on" -- > Steve Jobs in an interview for MacWorld Magazine 2004-Feb > > No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html |
From: Joe S. <joe...@us...> - 2006-01-28 05:24:56
|
Luis M wrote: > Hello Brian, > > I believe that's a good approach. You might want to take a look at > phpslashforge.org's modules for inspiration. > phpslashforge.org is down for a little while. > I haven't done one myself, but Joe could help you with that. > > Perhaps you can do that by using a Block_render_* as well... Not too > sure what is it that you want your "story" blocks to be able to do. > This may not apply to what you're looking for. But as far as creating new blocks for a module it is better to make another page in the module directory and then create a module block with the "page" block option pointing to your new page. Examples is the relatedlinks.php in the story module. > On 1/27/06, Brian Toovey <bt...@ig...> wrote: > <snip> >> 3) Is their any already existing documentation for creating a module? Will >>I need a new "section" as well? >> You will not necessarily need a new section. The sections are how the blocks are assigned. If your site does not need different blocks when your module is being displayed you can just call it like index.php?module=MyNewModule. Joe >> Thanks, >> Brian Toovey >> > |
From: Joe S. <joe...@us...> - 2006-01-28 05:04:41
|
Brian Toovey wrote: > Hello list, > > I am interested in using phpwebsite in developing a cms to handle > vulnerability information. I need some guidance on some terminology and > best methods. > > I want to use the "story" module as the base of a new module to handle > data stored in mysql of a different schema. So I was wondering: > > 1) Whats the best method for creating a new module with the base being > "story" - or am I looking at the right place to begin? > You *should* be able to extend either the base or Story class. Except for the schema differences. The Story_base.class has the sql queries in each method. So probably of no use to use other tables. > 2) Most of the SQL querries for stories appears to be in > "include/modules/story/ - is the index.php the main include for any module? > yes. The index.php is the public include file and admin.php for private. > 3) Is their any already existing documentation for creating a module? > Will I need a new "section" as well? > There were some things spread out. I've pulled these links into the wiki. Hopefully they will clarify some. Of course they might lead to more questions :) These two posts try to explain some how the modules and blocks work. http://sourceforge.net/mailarchive/message.php?msg_id=7300703 http://sourceforge.net/mailarchive/message.php?msg_id=7300704 This screenshot may confuse more than clarify. But it looks pretty. http://www.php-slash.org/downloads/kcachegrind1.gif Now in these wiki pages: http://www.php-slash.org/modules/wikka/wikka.php?wakka=PageviewNotes http://www.php-slash.org/modules/wikka/wikka.php?wakka=ModuleNotes Joe > Thanks, > Brian Toovey > |