Hmmm, is obvious it will not work. You set the wrong path.
Try [high]$adminpath = 'forum/admin'[/high], it will work. In other words, you did not searched the thread.

Orelse you would it see the answer...
EDIT: I see you got it working now...
http://www.thewatchdesk.com/testforum/
Search the thread, it will save you time always. All questions are always answered before, in those 3000 posts...