vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I stop users from editing one of their own posts ? (https://vborg.vbsupport.ru/showthread.php?t=152814)

mihai11 07-20-2007 03:24 AM

How can I stop users from editing one of their own posts ?
 
Hi,

I don't want to forbid editing posts per thread or per forum, just per post – more precisely, the first post from a thread. The reasons is that the first post will be created using a form (not the VB standard input) so the information from the form must be formatted in the same manner in all the threads.

How can this be achieved ? I am thinking to do it with a plugin that will check if the post that the user wants to edit is the first in the thread and if the thread belongs to forum "abc". What hook should I use ?

Regards,
Razvan

ShawneyJ 07-20-2007 04:25 AM

Usergroups>>>Usergroup Manager>>>Registered Users>>>Edit>>>Post / Thread Permissions>>>Can edit own posts>>>NO

Roms 07-20-2007 04:37 AM

Quote:

Originally Posted by jaycob (Post 1296255)
Usergroups>>>Usergroup Manager>>>Registered Users>>>Edit>>>Post / Thread Permissions>>>Can edit own posts>>>NO

That's not what he's asking for.... He wants "more precisely, the first post from a thread".

I would suggest (until you find a modification that will work...) using the timed edit feature.

Try this (for now...)

ACP: vBulletin Options (drop down), vBulletin Options> Message Posting and Editing Options (scroll down), Time Limit on Editing of Thread Title... the setting (I have mine at 5).

Hope that helps,
Roms

ShawneyJ 07-20-2007 04:40 AM

me mess read opps am i bad.

Eikinskjaldi 07-20-2007 04:41 AM

Quote:

Originally Posted by mihai11 (Post 1296234)
How can this be achieved ? I am thinking to do it with a plugin that will check if the post that the user wants to edit is the first in the thread and if the thread belongs to forum "abc". What hook should I use?

editpost_start

mihai11 07-20-2007 05:26 AM

Quote:

Originally Posted by Eikinskjaldi (Post 1296271)
editpost_start

Thank you. I will see how can I use this hook.


All times are GMT. The time now is 12:14 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.01038 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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