As I have posted there is no official support for
vb 4.2.
Lets deal with the code you posted as it is not a fix. It is one conditional you posted based off of code I have already posted here for PhotoPost Pro. There is alot more than what your posting to actually post a fix. All the menu links as well as language phrases need to be done for vbGallery to really be functional.
When I get a chance to look at things like I have stated once I finish up other products we are working on and turn attention to vbgallery and get something out. This information has already been posted in this thread. Once we support vbulletin 4.2 we will announce it.
You seem to have gotten confrontational because I suggested you read the whole thread as I figured that should answer the questions you asked and I already have answered.