In Reply To:
I have no idea!
Let me ask you. Is your problem that when you are logged into vBulletin and you go to Links, the login screen apears asking you to login again (like when you go to add.cgi etc.) or is the problem that Login is displayed instead of Logout. These sound like the same thing, but not. If your problem is more than just displaying Login / Logout at the right times, there is no point of even using my method.
It is the same problem as Red - it is displaying the 'log in' message on the static pages, even if a user is logged in. On the dynamic pages, it shows the 'log out' message, as it should.
I don't think that this has any bearing on the problem of the global not being parsed as a script though?