Thread: Constants
View Single Post
Old October 7th, 2010, 06:54 AM   #7 (permalink)
Steff
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Quote:
Originally Posted by Luciano View Post
Chuck is correct.. the constant VB_AREA == 'vBGallery' is needed to tell the system that we are NOT in forums but in gallery.. This is Important as on most systems vbgallery is NOT installed inside the forum directory.
Easiest example..:
if VB_AREA == 'vBGallery' (if we are on a vbgallery page)
==> Highlight the Gallery tab..

if you want to have something on both, forum and gallery pages you can always do:
if(VB_AREA == 'vBGallery' OR VB_AREA == 'forum')
{

}

That is very useful, thank you very much indeed. I'll try that out later on today and let you know if it worked.
Steff is offline   Reply With Quote