I wanted to make a code just like " recent topics " then it pops out the recent topics and also a button for like online list.
For example I click it then it pops out all the members online.

Apply this.

And change the contents of the drop down to the online member list which can be found in your index_body template, I think.