Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Miles Lombardi on May 15, 2006, 02:52:52 PM

Title: adminIndex
Post by: Miles Lombardi on May 15, 2006, 02:52:52 PM
How exactly does this work? Because this function is absolutely brilliant, and it's something that I would like to achieve myself.

Somehow adminIndex() loads the admin menu, then you echo out your stuff, then when your template is finished it closes off it's table.

How exactly does it do this? Because I want to do this myself, creating a siteIndex function which'll make a left hand site menu.

Thanks,
Miles.
Title: Re: adminIndex
Post by: B Patterson on May 15, 2006, 06:30:37 PM
Open the admin index function, find the other functions it references, read up on them.  The source is documented, it's not that hard.

The way they did it is carefully with a templating system fo their own design.  So if you can template your website, this won't be that hard to achieve.