Quote from: jlarson at May 22, 2005, 04:49 AM
It took me a few hours to figure out that SSI.php, a collection of functions built for interfacing with SMF, needs to be included outside of a class. So I included it in index.php. You can then call the functions from a snippet, or easier still, use SniperX’s solution to directly including PHP, posted on the Etomite forum (below). The problem of course with this setup is that it includes all the SMF files with every page load, whether or not they are needed. I’d welcome ideas on another way to handle this one.
SniperX’s solution: http://www.etomite.org/forums/index.php?showtopic=2475&hl=include
To come back to this issue that wasn’t really addressed, I’ve got a
current eto setup linked to phpBB using the SniperX solution (essentially, make the parser go ahead and execute inline PHP in templates, chunks, etc.), and I’m wondering if there’s a
correct way I can do much the same thing w/ plugins or whatnot? I’m pretty sure it’s a big security hole -- that is if there were more than just me with access to build pages.
All I really want is "simple" integration; phpBB manages the web users seperate from the CMS users, the CMS pages include a few basics from phpBB -- name, avatar, recent posts, etc. via the phpBB Fetch All mod.
I’m still trying to get my head around @EVAL and all the other stuff, and it doesn’t seem to let me do what I’m thinking I need to do -- include a chunk of raw PHP into the template. Since the docs are rather new, and aren’t really written for a newb to the system like me, I was wondering if anyone could point to / post any examples that would get me where I need to for the short term?
Otherwise, interesting re-do, this ModX. I hope I can get enough of a handle on it to roll with it!