vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v1.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2008, 11:28 PM
juinjuin juinjuin is offline
Junior Member
 
Join Date: Apr 2007
Location: Singapore
Posts: 20
Default Permission to view entry listing, but not entry details

Hi

Not sure if I have missed out any of the settings that can achieve the above, but so far I have found none.

What I hope to achieve is akin to VB's "Can View Thread Content" permission, where a user can view thread listing, but not the thread content.

Basically if I set "Can View Entries" to NO, user cannot see the entry listing anymore.

The reason I want to do this is to let users (e.g. guests and non-priviledged members) to have a taste of the type of content contained within a category, being able to see the entry listing only.

This also has search engine implications.

Many thanks

Regards

Last edited by juinjuin; 03-10-2008 at 11:33 PM.
Reply With Quote
  #2  
Old 03-11-2008, 12:08 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Permission to view entry listing, but not entry details

I'm sorry, but currently I don't think there's going to be an easy way to allow for that.
Reply With Quote
  #3  
Old 03-11-2008, 11:42 PM
juinjuin juinjuin is offline
Junior Member
 
Join Date: Apr 2007
Location: Singapore
Posts: 20
Smile Re: Permission to view entry listing, but not entry details

OK I have tested, and it seems access control is implemented at the show entry level as well.

If this is the case, could you let me know which PHP file to edit in order to remove the portion that controls the access to entry listing.

This way, user without privilege can still view entry listing, and yet do not have access to entry details.

Thanks
Reply With Quote
  #4  
Old 03-12-2008, 11:51 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Permission to view entry listing, but not entry details

If I'm thinking correctly, you should be able to look in your forum/includes/vba_dyna_plugin_sf.php file for this line:
PHP Code:
$vba_dyna->load_entry(''truetruetruetruetrue); 
And replace with this:
PHP Code:
$vba_dyna->load_entry('canviewdyna'truetruetruetruetrue); 
Reply With Quote
  #5  
Old 03-12-2008, 12:16 PM
juinjuin juinjuin is offline
Junior Member
 
Join Date: Apr 2007
Location: Singapore
Posts: 20
Question Re: Permission to view entry listing, but not entry details

Hi Brian

I just tried that but it didn't work.

My objective is to remove access control at all levels, except the Show Entry level, so that users can see Category Listing, Entry Listing but now Entry details (with "Can View Entries" set to NO).

Any ideas?

Many thanks for the help
Reply With Quote
  #6  
Old 03-13-2008, 02:01 AM
juinjuin juinjuin is offline
Junior Member
 
Join Date: Apr 2007
Location: Singapore
Posts: 20
Question Re: Permission to view entry listing, but not entry details

I commented out the line:

print_no_permission();

in function check_cat_perms in vba_dyna_class.php

and now the user is able to going into the entry listing. But the list is blank.

Would you be able to point out to me in which script the decision is being made not to show anything, or where the WHERE clause is set to result in 0 records (as user has no permision)?

Many thanks, Brian.

Last edited by juinjuin; 03-13-2008 at 02:04 AM.
Reply With Quote
  #7  
Old 03-13-2008, 10:09 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Permission to view entry listing, but not entry details

Commenting out that line is definitely not a good idea as it's going to prevent the "no permission" page from being displayed when checking any type of permission, and very likely give your users permission to perform actions they shouldn't be allowed to.

You could try looking in your browseentries.php file for this line and remove it:
PHP Code:
$vba_dyna->check_cat_perms('canviewentries'$catinfotrue); 
Then find this line just a little below the first:
PHP Code:
if (!$catinfo['hasentries'] OR !$vba_dyna->check_cat_perms('canviewentries'$catinfo)) 
Replace with this:
PHP Code:
if (!$catinfo['hasentries']) 
And see if you get any better results.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User signatures in view entry Nubulin "How Do I..." Questions 7 01-07-2008 10:39 AM
browse categories - show entry permission gnubittol Pre-Sale Questions 2 12-08-2007 11:11 AM
Modify full entry/listing display eJM "How Do I..." Questions 4 09-14-2007 01:15 PM
Modify entry/listing list display eJM "How Do I..." Questions 3 09-14-2007 12:20 PM


All times are GMT -4. The time now is 02:17 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.