vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Can only view own post. (https://vborg.vbsupport.ru/showthread.php?t=260796)

Jack.D 03-23-2011 01:02 AM

Can only view own post.
 
Does anyone know of any mod, similar to the settings for the forum permissions "Can only view own thread" if there's a way to only allow "Can only view own post".

So that users can only view their own posts in a certain thread, helpful for support forums where users can have a bit of privacy.

Anyone know if there is one, or how I can go about making one?

Cheers

Jack.D 03-28-2011 01:35 PM

Bump.

Lynne 03-28-2011 03:34 PM

I have not seen one like that. You probably would need to write a plugin using at least one of the postbit_display_* hook locations to see if the post user is the same as the viewing user and if not, don't display the post. Or, better yet, play with the original query that gets the posts in the first place. Take a look at the showthread.php page to see how it is coded.

Jack.D 03-29-2011 10:28 AM

I will do :), Now that I know roughly where to look, I will begin scimming the templates. Cheers Lynne.


All times are GMT. The time now is 05:30 AM.

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.01156 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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