It really depends on where you're going to use it. If you're sure you'll be using it on several pages, then you may want to edit global.php and define $modslist there. On the other hand, if you know you're probably only going to use it on the main page, or the forumdisplaypage, you'd want to define $modslist there. The idea is that you don't want to clutter global.php with a bunch of extra code, if you really don't need it there.
So step 1: where are you doing to use it?
As for defining the variable (step 2), this takes a little experience with MySQL and the vB functions and database class. You just need to create a query that returns the moderators for the given forum and pass those values into $modslist.
As for the specific code, hopefully someone will be able to help you, if you need it.
|