I want to build an add-on. The problem I can't quite get is where the code is located that verify's if the person viewing is an admin. Where is this chuck of code located? And how would I implement it on a new page?
Admin is checked using mLev = 4 in the normal forum pages. You just need to out an if around the code you want to show if it is admin saying if mLev = 4 then ... blah blah end if.
Search for mLev = 4 in something like default.asp and you will see how it is used.
I think member level is tested by checking the value of the mlev variable. For an Admin you need to check if mlev = 4 for a moderator mlev will be 3. For a given member the M_LEVEL column in the FORUM_MEMBERS table will have that info.