I was looking into this the past hour or so. It looks like it'll take a few queries to do it. Not sure it's worth the extra load to see if your user has a gallery or not on every postbit load. Maybe an addition to the user table with a null value from default (account creation), and a 'has gallery' value when one is created could be devised? I'm not terribly good with sql though. The value would have to go back to null if all of the user's galleries are deleted as well...
Then all you need to do is pull one more bit of information from the same table that the user's username, post count, location, etc is pulled from.
Not sure how to incorporate that into a vb install that has a considerable amount of galleries already though... maybe a seperate php file that 'installs' the new sql entries according to the user's id and if they have a gallery now?
|