Helpful Information
 
 
Category: vBgarage
Stopping Guests from using vBGarage

If you run a board where only members should be allowed to access vBGarage, you can add this code to lock out all guests.

Please note that if you use the "Display Latest Uploads on Forum Home" hack, this will cause a problem, Images will be displayed as the dreaded Red X.

If you want to use this, in vbgarage.php find...

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################


Below that add...

// Stop guests hack
if (!$bbuserinfo['userid'])
{
print_no_permission();
}
// end stop guests hack

Why not use


// Stop guests hack
if (!$bbuserinfo['userid'] AND THIS_SCRIPT != 'index')
{
print_no_permission();
}
// end stop guests hack
?

I just gave that a try as it looks like a good idea and I'm all for improvement. However I tried it and did not get the desired result. I'll have to experiment after I put the kids to bed later.

oops, I see and edit... I'll try again later. Dinners on.

I just gave that a try as it looks like a good idea and I'm all for improvement. However I tried it and did not get the desired result. I'll have to experiment after I put the kids to bed later.

oops, I see and edit... I'll try again later. Dinners on.
hmm, now that I think about it it might not work because you are defining it in vbgarage.php. So we just need check the referer no?

hmm, now that I think about it it might not work because you are defining it in vbgarage.php. So we just need check the referer no?

I've been wrestling with this in two ways really releated to THIS_SCRIPT. First I've been trying to stop the online locations from saying a user is in the garage when they are really on forumhome and now this.










privacy (GDPR)