Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-19-2014, 10:06 PM
Sharingan_Okami Sharingan_Okami is offline
 
Join Date: Jul 2014
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Forum Permissions

Is it possible to allow guests to view a single thread if given the direct URL to thread.

But not allow them to browse through other threads in the same section unless they are registered?

If this can be done, please let me know.
Reply With Quote
  #2  
Old 08-19-2014, 10:37 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, no with the default software. A guest can read any thread as long as the forum the thread is under has been given guest permission. You currently can create a separate forum for these special threads or post and give guests special access to them, but not at the thread or post level. Another guest could easily view some other guest's thread or post, by id, in this forum unless you obfuscate it through a modification.

You cannot set permissions on an individual guest. Default vBulletin was not engineered with that criteria.

We just recently discussed this subject here on vBulletin.org, with brighter minds then mine. I will see if I can find the post later and send it your way.

Note: A guest identification system could be setup and implemented, it is not impossible to achieve this.
Reply With Quote
  #3  
Old 08-19-2014, 11:22 PM
Sharingan_Okami Sharingan_Okami is offline
 
Join Date: Jul 2014
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Note: A guest identification system could be setup and implemented, it is not impossible to achieve this.
What what i need to customize for such a thing work?

Is this something that can be done without too much custom coding?
Reply With Quote
  #4  
Old 08-19-2014, 11:28 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you just want some threads to be not listed in the forums but to be still acessible if someone has the link then I think it's not really hard
Reply With Quote
  #5  
Old 08-19-2014, 11:50 PM
Sharingan_Okami Sharingan_Okami is offline
 
Join Date: Jul 2014
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not just some threads, its all threads.

The system the site requires & has so far is members can post threads. (but can only see their own threads)

You can share the thread with people only via direct link. Even though we have got this far, we just to be able to hide ALL OTHER posts from the guests or users.

Very private.

For example lets say you get the link to go to : forum.com/catagory1/thread.html
we need to block access to the forum.com/catagory1/ area so that they cannot view other people's posts. Only the direct thread.
Could this be possible?
Reply With Quote
  #6  
Old 08-19-2014, 11:51 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure if we can help you, but to start with you would need to describe your need in detail.
Reply With Quote
  #7  
Old 08-19-2014, 11:56 PM
Sharingan_Okami Sharingan_Okami is offline
 
Join Date: Jul 2014
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
For example lets say you get the link to go to : forum.com/catagory1/thread.html
we need to block access to the forum.com/catagory1/ area so that they cannot view other people's posts. Only the direct thread.
Could this be possible?
Another example:
vBulletin.org Forum / vBulletin 4 Discussion / vB4 Programming Discussions/

Is it possible to not allow anyone not even members to browse threads.
Just to be able to reach the thread if they are given the thread id. https://vborg.vbsupport.ru/showthread.php?t=313809

This is pretty much all that is needed for the project to be complete.
Reply With Quote
  #8  
Old 08-20-2014, 02:26 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sharingan_Okami View Post
Another example:
vBulletin.org Forum / vBulletin 4 Discussion / vB4 Programming Discussions/

Is it possible to not allow anyone not even members to browse threads.
Just to be able to reach the thread if they are given the thread id. https://vborg.vbsupport.ru/showthread.php?t=313809

This is pretty much all that is needed for the project to be complete.
Is this still for a guest account or a registered user account?
Reply With Quote
  #9  
Old 08-20-2014, 02:38 AM
Sharingan_Okami Sharingan_Okami is offline
 
Join Date: Jul 2014
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The plan is to block browsing for both guests & users. Kind of like a vault/thread hosting.
Just like an http://puush.me for example.
You can share the link of the file (for us its a thread) and the only way anyone should be able to see it is via direct link. And they cant just browse through your threads.

I have made multiple examples. It's a very basic idea but i am not sure if the coding or modifying of the permissions is the same.
Reply With Quote
  #10  
Old 08-20-2014, 10:10 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure i'm just trying, you could search on showthread.php for the condition that give no permissions (line 238)
PHP Code:
// *********************************************************************************
        // check forum permissions
        
$forumperms fetch_permissions($threadinfo['forumid']);
        if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
        {
            
print_no_permission();
        }
        if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($threadinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))
        {
            
print_no_permission();
        } 
You have to remove one of these 2 conditions depending on how you set permissions for guests and users in that forum
If you remove this condition, guests and users aren't allowed to use a forum so they won't see the forum (and it's listed threads) on forumhome.php and forumdisplay.php but if they know the link of the thread then they won't get a no permissions message but they'll be able to see the thread
Reply With Quote
Reply


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


All times are GMT. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04079 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete