This hack is an add-on to a gallery made by PhotoPost.com called vBGallery.
- This is not a gallery, but a way to display the images from the gallery to your forums.
1.7
- Install w/ product in 1 file.
- AdminCP options to change the hack settings
- Added: Parts of the gallery's Nav bar w/ dropdowns
(My Stuff*, What's New, What's Popular,Search) to the hack with on/off option.
* My Stuff will not be seen if you are a guest.
1.6
- Added: If the gallery is off or disabled the hack not show up.
- Added: templates to support the hack vs. gallery templates
(allows you to customize the templates for the look and feel you want vs. mess up the way your gallery templates look.)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
- People that are having problems please Beta the Change. If it works I will update the Zip.
modules/gallery_random.php
Got it...
Change this (around line 83):
Code:
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
to this:
Code:
if (!empty($gallery_permissions["$usergroupid"]))
{
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
}
Glad I read the whole thread before crying out for help. This works for me, Thank you. Installed.
if (!empty($gallery_permissions["$usergroupid"]))
{
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
}
For unregistered users, the Image Gallery shows up empty, but once I log in it works fine.
I checked my gallery and unregistered users can view thumbnails and previews just fine. I checked my module/gallery permissions and all of them are set correctly.
Any help on this would be appreciated.
Edit:
I did more digging and logged on as another user. Apparently, the thumbnails show up only when I have a user assigned to a user group:
For those who are not assigned to any groups or for unregistered users, no thumbnails show.