sonnb - XenGallery (XenForo Gallery) [Deleted]

I just noticed a permissions issue.

Seems like when you create a gallery album and you set up permissions to only certain members etc.... Ok, when you upload a picture to that album, which you would think those pictures follow the "album" permissions, you can see those pictures when you go to that member's profile page, and hit the "photos" tab.

So basically when you set the album permissions, that only works for the gallery view. When viewing the member's page, you can see their pictures (if they didn't set EVERY picture's permissions).

This is important if you say, share an album with a member etc. You have to set every picture's permissions.

I am almost positive this should be resolved. especially when I set the album permissions already. I don't want to set every picture's permission inside that album.

Or am I missing something?
 
I just noticed a permissions issue.

Seems like when you create a gallery album and you set up permissions to only certain members etc.... Ok, when you upload a picture to that album, which you would think those pictures follow the "album" permissions, you can see those pictures when you go to that member's profile page, and hit the "photos" tab.

So basically when you set the album permissions, that only works for the gallery view. When viewing the member's page, you can see their pictures (if they didn't set EVERY picture's permissions).

This is important if you say, share an album with a member etc. You have to set every picture's permissions.

I am almost positive this should be resolved. especially when I set the album permissions already. I don't want to set every picture's permission inside that album.

Or am I missing something?
You do not need to set for every picture. Album's privacy is enough. I will check this.
 
Where is the xfrUserAlbums importer, I see all the rest except that one?

Edit: see screenshot below:

Noname.webp
 
Last edited:
Where is the xfrUserAlbums importer, I see all the rest except that one?
There are two different sections where items can be imported into XenGallery, external (vBulletin) and internal (XenForo). In the case case of xfrUserAlbums since that would be installed into the same XF installation that would be an internal importer.

Internal: ACP => Applications => (XenGallery) Importers
External: ACP => Tools => Import External Data
 
I cannot put any widgets from the widget framework in the gallery, using the hook:album_list . It destroys the layout completely.
 
You do not need to set for every picture. Album's privacy is enough. I will check this.

If you need more information please let me know. I can easily see hidden member's pictures via their profile page.

On my site, the albums are set to "custom" permissions. For a couple of members, yet I can still see them using my test member account.

Thanks for looking into this.
 
One more thing: after importing from xfruseralbums, the images lost their order inside the albums - which was the order that they were uploaded originally. They now display in a different order inside their albums. Is there a way to fix this?
 
One more thing: after importing from xfruseralbums, the images lost their order inside the albums - which was the order that they were uploaded originally. They now display in a different order inside their albums. Is there a way to fix this?
UserAlbum sort photos by another way, XenGallery sort by position which auto setted by photo_date. You cannot change position right now (for individual album).
 
UserAlbums sort the photos with the upload order.

What is the photo_date you mention? Is that from the photo's exif? the date the photo was taken?
 
UserAlbums sort the photos with the upload order.

What is the photo_date you mention? Is that from the photo's exif? the date the photo was taken?
In XenGallery, oldest photos on top, newly added photos will be in bottom.
 
I get this error on import of threads:

Code:
Error Info
ErrorException: Undefined index: post_id - library/sonnb/XenGallery/XenForo/ControllerPublic/Thread.php:148
Generated By: Brent W, A moment ago
Stack Trace
#0 /home/rwdcoupe/public_html/library/sonnb/XenGallery/XenForo/ControllerPublic/Thread.php(148): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/rwdcoupe/...', 148, Array)
#1 /home/rwdcoupe/public_html/library/XenForo/FrontController.php(337): sonnb_XenGallery_XenForo_ControllerPublic_Thread->actionGalleryImport()
#2 /home/rwdcoupe/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/rwdcoupe/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(111) "http://www.rwdcoupe.com/threads/album-my-2010-lime-rock-green-genesis-going-through-changes.3157/gallery-import"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(8) {
    ["import_id"] => array(6) {
      [0] => string(4) "2151"
      [1] => string(4) "2152"
      [2] => string(4) "2153"
      [3] => string(4) "2154"
      [4] => string(4) "2155"
      [5] => string(4) "2156"
    }
    ["target_album"] => string(3) "new"
    ["title"] => string(55) "My 2010 lime rock green genesis...going through changes"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(74) "/threads/album-my-2010-lime-rock-green-genesis-going-through-changes.3157/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I get this error on import of threads:

Code:
Error Info
ErrorException: Undefined index: post_id - library/sonnb/XenGallery/XenForo/ControllerPublic/Thread.php:148
Generated By: Brent W, A moment ago
Stack Trace
#0 /home/rwdcoupe/public_html/library/sonnb/XenGallery/XenForo/ControllerPublic/Thread.php(148): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/rwdcoupe/...', 148, Array)
#1 /home/rwdcoupe/public_html/library/XenForo/FrontController.php(337): sonnb_XenGallery_XenForo_ControllerPublic_Thread->actionGalleryImport()
#2 /home/rwdcoupe/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/rwdcoupe/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(111) "http://www.rwdcoupe.com/threads/album-my-2010-lime-rock-green-genesis-going-through-changes.3157/gallery-import"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(8) {
    ["import_id"] => array(6) {
      [0] => string(4) "2151"
      [1] => string(4) "2152"
      [2] => string(4) "2153"
      [3] => string(4) "2154"
      [4] => string(4) "2155"
      [5] => string(4) "2156"
    }
    ["target_album"] => string(3) "new"
    ["title"] => string(55) "My 2010 lime rock green genesis...going through changes"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(74) "/threads/album-my-2010-lime-rock-green-genesis-going-through-changes.3157/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
I will check it.
 
I have this server error multiple times

Code:
ErrorException: Undefined index: Model - library/sonnb/XenGallery/Model/Photo.php:1073
Generated By: Rosered13, Today at 7:13 PM
Stack Trace
#0 /home1/admin/public_html/community/library/sonnb/XenGallery/Model/Photo.php(1073): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home1/admin/pu...', 1073, Array)
#1 /home1/admin/public_html/community/library/sonnb/XenGallery/DataWriter/Album.php(715): sonnb_XenGallery_Model_Photo->getPhotoExif(Array)
#2 /home1/admin/public_html/community/library/sonnb/XenGallery/ControllerPublic/XenGallery/Album.php(546): sonnb_XenGallery_DataWriter_Album->insertPhotos(Array)
#3 /home1/admin/public_html/community/library/XenForo/FrontController.php(337): sonnb_XenGallery_ControllerPublic_XenGallery_Album->actionAddPhoto()
#4 /home1/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home1/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(74) "http://www.mysite.com/community/gallery/albums/my-loves.1964/add-photo"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(11) {
    ["photo_title"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_description"] => array(9) {
      [21825] => string(51) "Her "spot" when my husband plays video games, lol. "
      [21826] => string(33) "She loves sitting in the window. "
      [21827] => string(21) "Pretty green eyes. :)"
      [21828] => string(0) ""
      [21829] => string(21) "I love her so much <3"
      [21830] => string(0) ""
      [21831] => string(38) "I could photograph her all day long :)"
      [21832] => string(9) "Regal. :)"
      [21833] => string(9) "Cutie. :)"
    }
    ["photo_people"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_location"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["location_lat"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["location_lng"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_data_hash"] => string(32) "ccb46c985700e47b1fed2033091664d5"
    ["_xfRequestUri"] => string(49) "/community/gallery/albums/my-loves.1964/add-photo"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
Delete...Close
 
I have this server error multiple times

Code:
ErrorException: Undefined index: Model - library/sonnb/XenGallery/Model/Photo.php:1073
Generated By: Rosered13, Today at 7:13 PM
Stack Trace
#0 /home1/admin/public_html/community/library/sonnb/XenGallery/Model/Photo.php(1073): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home1/admin/pu...', 1073, Array)
#1 /home1/admin/public_html/community/library/sonnb/XenGallery/DataWriter/Album.php(715): sonnb_XenGallery_Model_Photo->getPhotoExif(Array)
#2 /home1/admin/public_html/community/library/sonnb/XenGallery/ControllerPublic/XenGallery/Album.php(546): sonnb_XenGallery_DataWriter_Album->insertPhotos(Array)
#3 /home1/admin/public_html/community/library/XenForo/FrontController.php(337): sonnb_XenGallery_ControllerPublic_XenGallery_Album->actionAddPhoto()
#4 /home1/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home1/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(74) "http://www.mysite.com/community/gallery/albums/my-loves.1964/add-photo"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(11) {
    ["photo_title"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_description"] => array(9) {
      [21825] => string(51) "Her "spot" when my husband plays video games, lol. "
      [21826] => string(33) "She loves sitting in the window. "
      [21827] => string(21) "Pretty green eyes. :)"
      [21828] => string(0) ""
      [21829] => string(21) "I love her so much <3"
      [21830] => string(0) ""
      [21831] => string(38) "I could photograph her all day long :)"
      [21832] => string(9) "Regal. :)"
      [21833] => string(9) "Cutie. :)"
    }
    ["photo_people"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_location"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["location_lat"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["location_lng"] => array(9) {
      [21825] => string(0) ""
      [21826] => string(0) ""
      [21827] => string(0) ""
      [21828] => string(0) ""
      [21829] => string(0) ""
      [21830] => string(0) ""
      [21831] => string(0) ""
      [21832] => string(0) ""
      [21833] => string(0) ""
    }
    ["photo_data_hash"] => string(32) "ccb46c985700e47b1fed2033091664d5"
    ["_xfRequestUri"] => string(49) "/community/gallery/albums/my-loves.1964/add-photo"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
Delete...Close
This is really rarely happens. Your photo has Make exif data but does not have Model data which is a part of Make. I will add a check condition for this.
 
Top Bottom