Again untested, but try
this: remove the last eval line from the PHP file and place the remaining PHP in a plugin using the global_start hook, and then add the following variable to the template containing the right column you made:
Code:
Content visible to registered users only.
To add a plugin, go to the vB ACP -> Plugins & Products -> Add New Plugin.
For further details on how to add a plugin, check
here.