Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Add Item Permissions Requires Edit Album Permissions?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Mon Sep 05, 2005 11:25 am    Post subject: Add Item Permissions Requires Edit Album Permissions? Reply with quote

Not sure this is really an integration issue, but maybe someone can help me out anyways...

I must be missing something here, but I have not a found a way to allow users/groups to add images or photos (sub-items) to albums (actually sub-albums) without also giving them edit permissions which, unfortunately, gives them the ability to edit the albums at will.

It seems to me that the add items option is embedded in the edit album page. Without edit permissions, the user has no way to get to the add items option. Is this true? Or am I missing something?

fyi, this is gallery2 integrated with php-nuke 7.6...

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Add Item Permissions Requires Edit Album Permissions?  

Back to top
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Mon Sep 05, 2005 3:23 pm    Post subject: Re: Add Item Permissions Requires Edit Album Permissions? Reply with quote

Received this reply over at the G2 support forum which solved the problem. Seems without the G2 sidebar you lose functionality. This solution at least adds back in the add items without having to edit the album itself.

>>>
the "add album" link shows up in my g2 in the sidebar as item action.
you're using a theme without a sidebar / without any sidebar blocks. that was your decision. but this way, you removed some options of G2.

the item actions also show up under the item thumbnails as a drop down list. but it doesn't show all item actions there. in G2, you can decide whether to show all item action links in this drop down list or only a small subset (usability). it defaults to the small set.

you can change it.
open gallery2/themes/themeName/theme.inc (replace themeName with matrix, siriux, or any other theme that you want to change)

look for

Code:
function showAlbumPage(&$template, $item, $params, $childIds) {
$ret = $this->loadCommonTemplateData(
$template, $item, $params,
array('owner', 'viewCount', 'childCount', 'descendentCount', 'parents',
'systemLinks', 'itemLinks', 'itemSummaries', 'permissions',
'thumbnails', 'pageNavigator', 'jumpRange'),
$childIds);

replace it by
Code:
function showAlbumPage(&$template, $item, $params, $childIds) {
$ret = $this->loadCommonTemplateData(
$template, $item, $params,
array('owner', 'viewCount', 'childCount', 'descendentCount', 'parents',
'systemLinks', 'itemLinks', 'itemSummaries', 'permissions',
'thumbnails', 'pageNavigator', 'jumpRange', 'childItemLinksDetailed'),
$childIds);

basically, we just added 'childItemLinksDetailed' to the list in the array().
save the file, refresh an album page, it should show up now.
<<<
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 06, 2005 6:53 am    Post subject: Re: Add Item Permissions Requires Edit Album Permissions? Reply with quote

hmm...i see why this happens....i'll have to tweak the sidebar so that these links appear for admins/reg'd users...
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia