Sven
well as I said I dont know it all depends where you coded your thing. I beleive my general description of how
vb plugins work should assist you. vbulletin has a tutorial on how there plugin system works as thats not our code so I am just generally responding here.
If you did create a plugin then you might want to change its hook location to global_start for
vb then it should execute on every page that loads the
vb header etc and then you might be able to use those variables in the vbgallery profile template which I think I listed above. its all about finding the proper hook and template.