Re: [phpslash-users] integrating other apps...
Brought to you by:
joestewart,
nhruby
From: nathan r. h. <na...@ds...> - 2001-08-23 13:06:10
|
On Thu, 23 Aug 2001, Aric Caley wrote: > I'm trying to integrate into phpslash a more robust forums app. I just want > the forums to be contained on a phpslash page, instead of the normal > content. Doesn't seem like it should be a hard thing to do, but as I think > about it (and experiment) it seems far harder than I thought... > include ('path/to/phpslash/config.inc'); slashhead(); // Some Forum code slashfoot(); Will put the forum in a phpslash page, you'll need to make sure that the forum its self won't output <HTML><HEAD><BODY> tags and such. You can also: $story = new Story; print($story->getAllStories(array('section' => 'SomeSection')); To get sections and a similar procedure for blocks. > In general, with any two apps, how do you integrate them? Each has their > own variables to be passed along, each have their own pages. I can see the > horrors of all the possible variable name collisions and such... The easy > solution is to just use frames and basically keep everything separated, but > I don't want frames... > phpslash is fairly OO for this specfif reason. 0.65 will be better as well with this, but right now you should be ok with php's namespace, HTML namespace might get polluted with conflicting FORM names, but hopefully the browser will respect the action attribute of each form. > Can anybody give me a clue as to how this could be achieved? > > It occurs to me that it would be nice to have some kind of really general > framework that takes care of this sort of stuff (like how phplib handles > sessions, templates and auth) and then any app that was designed to work > with that would work with any other app that also used it. Then you "port" > the apps if you need to, to use the framework. Rather than try to integrate > 2 or three apps with each other, and then do it all over again if you wanted > to add another.. > > Am I making any sense? > Yes, quite so. We're aiming at getting phpslash to do this, but it's gonna take a good long while. See http://www.drama.uga.edu/~nathan/ for some clearer (than what I explained above) docs about this. Also look into mod_layout if you're using apache, it might give your the control and flexibility you need. -n -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |