You cannot just use any old variable in any template. You need to register them for use (or in this case, preregister it for use). Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide