vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Users can only view the contents of their own threads. It's possible? (https://vborg.vbsupport.ru/showthread.php?t=325218)

sonic83 06-08-2017 06:14 AM

Users can only view the contents of their own threads. It's possible?
 
Hello friends. I do not get this and I do not know if it is possible.

Inside a subforum I want users to see the list of all published threads, of all. But I want you to only see the content of your own subjects.

That is, If this is the list of threads:

Thread 1 started by user 1
Thread 2 started by user 2
Thread 3 started by user 3
Thread 4 started by user 4

User 1 can see the list of threads:

Thread 1
Thread 2
Thread 3
Thread 4

But you can only see the content of the thread started by him:

Thread 1

So far with the permits I have not been able to do it. Either you can not see the threads started by others, or you can not see the contents of the threads including your own.

Could this be possible?

Thank you

sonic83 07-09-2017 03:05 PM

Please help :(

MarkFL 07-09-2017 03:14 PM

I think you would need some custom coding to do that. I recommend posting in one of the request forums. :)

sonic83 07-09-2017 09:51 PM

Quote:

Originally Posted by MarkFL (Post 2588280)
I think you would need some custom coding to do that. I recommend posting in one of the request forums. :)

thank you sir

grey_goose 07-10-2017 12:29 PM

You could wrap the whole postbit template in:

Code:

<vb:if condition="(in_array($GLOBALS[forumid], array(x)) && $bbuserinfo[userid] == $thread[postuserid])">
</vb:if>

The first condition lets you specify the forum and the second condition checks to see if the user matches the thread starter. Unless I'm missing something?

Zylantex 07-10-2017 02:01 PM

Staff need to see all threads, will they see them with that code?

grey_goose 07-10-2017 05:24 PM

Wasn't specified, but adding "can_moderate($thread['forumid'])" would do the trick.


All times are GMT. The time now is 11:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete