vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Allowing users to delete a post or topic for limited time? (https://vborg.vbsupport.ru/showthread.php?t=317951)

MistViper 03-24-2015 09:40 PM

Allowing users to delete a post or topic for limited time?
 
Like is there a mod for that or a setting?

Say if a user posted somewhere wrong and wants to delete that then they can for the next 10 minutes.

Maybe a permission setting on forum basis or usergroup basis.

Elite_360_ 03-24-2015 10:07 PM

Their are forum and Usergroup Permissions for that except for the 10 minutes part

MistViper 03-24-2015 10:09 PM

Quote:

Originally Posted by Elite_360_ (Post 2541430)
Their are forum and Usergroup Permissions for that except for the 10 minutes part

That isn't useful because then someone could delete a topic with 100 posts.

Elite_360_ 03-24-2015 10:14 PM

i can look into that for you their might be file edits.

--------------- Added [DATE]1427239463[/DATE] at [TIME]1427239463[/TIME] ---------------

They would only be able to do a soft delete on post or threads anyways so you could always restore them.

MistViper 03-24-2015 10:26 PM

Quote:

Originally Posted by Elite_360_ (Post 2541432)
i can look into that for you their might be file edits.

--------------- Added [DATE]1427239463[/DATE] at [TIME]1427239463[/TIME] ---------------

They would only be able to do a soft delete on post or threads anyways so you could always restore them.

That would be cool but editing core files is a temp solution not a long term one. Because core files get overridden in future updates.

Still I appreciate your time spent to look into this.

Quote:

They would only be able to do a soft delete on post or threads anyways so you could always restore them.
True enough but you can't notice it everywhere they do it and I don't feel its a great solution either. Don't want to babysit that thought. The goal is to decrease moderation work.

Elite_360_ 03-24-2015 11:43 PM

1 Attachment(s)
Looking at the vb code trying to figure it out their is a time limit on editing post and that the way your user would not be able to delete their post or thread you could do this.
Go to AdminCP > Setting > Options > Message Posting and Editing Options > Time Limit on Editing of Posts
Only Admin and mods could edit or delete posts, threads after this time limit has past.

Elite_360_ 03-25-2015 12:02 AM

I you don't like the vb option Time Limit on Editing of Posts in post #6

you would have to edit two file ajax.php and editpost.php

Find this code
Code:

else if (((($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletepost']) AND !$isfirstpost) OR (($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletethread']) AND $isfirstpost)) AND $vbulletin->userinfo['userid'] == $postinfo['userid'])
And replace with this code

Code:

else if (((($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletepost']) AND !$isfirstpost) OR (($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletethread']) AND $isfirstpost)) AND $vbulletin->userinfo['userid'] == $postinfo['userid'] AND $postinfo['dateline'] < (TIMENOW - (10 * 60)))

rmadeat 03-25-2015 12:39 PM

The same problems, the solution was

Thank you


All times are GMT. The time now is 04:48 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.00974 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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