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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2011, 02:29 PM
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Location: Orlando, FL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can Edit Own Posts but before X minutes

I'm using vB4.
I have disabled the "Can Edit Own Posts" on all forums to avoid people changing things after posting, however I've received complains about this so I'd like users to have the opportunity to edit their own posts only before, let's say, 10 minutes after the post was created, during that time they will be able to fix typos or just edit their posts, but after those 10 minutes the posts have to stay the way they were posted.

Does such feature exists?
or maybe there's a MOD for that ?

let me know

Cesar
Reply With Quote
  #2  
Old 05-05-2011, 02:35 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Settings => Options => Message Posting and Editing Options => Time Limit on Editing of Posts
Reply With Quote
  #3  
Old 05-05-2011, 04:17 PM
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Location: Orlando, FL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Settings => Options => Message Posting and Editing Options => Time Limit on Editing of Posts
Thanks a lot kh99,

This is what that options says:

Time Limit on Editing of Posts
Time limit (in minutes) to impose on editing of messages. After this time limit only moderators will be able edit or delete the message. 1 day is 1440 minutes.
Set the value to 0 to allow users to edit their posts indefinitely.

The current value is "0" which means users are allowed to edit their posts, however this is not the case, should I change it to 10 minutes and even if I disabled editing posts will they be able to edit within this time ?

I can probably test this but... I wanted to ask anyway :

So, can these two conflicting options be enabled at the same time ?
or should I re-enable editing posts but since I'll also be using "Time Limit on Editing of Posts" then edits will only be allowed during the first X minutes after posting ?

All I want is allow edit for the first 10 minutes after posting
Reply With Quote
  #4  
Old 05-07-2011, 08:16 PM
Madpoodle Madpoodle is offline
 
Join Date: May 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Editing of posts needs to be enabled, then you can set the time limit.
Reply With Quote
  #5  
Old 05-08-2011, 04:39 PM
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Location: Orlando, FL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did some testing and it works, but.... there's always a but...

Looks like the "Time Limit on Editing of Posts" option is for all forums, all or nothing, I want to enable this feature only for some forums not all, I have some forums that I want users to edit whenever they want, but it looks like if I use this generic option then all forums will be affected.

Is there an option I can use that would give this ?
Reply With Quote
  #6  
Old 05-08-2011, 04:57 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't look like there's any existing option, but of course you could make a plugin that changes $vbulletin->options['edittimelimit'] depending on the forum. The only problem is finding the right hook (or hooks) that are after you know the forum id but before the value is used. Of course it's not nearly as convenient as having a check box in the forum editor.
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 02:02 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.03536 seconds
  • Memory Usage 2,204KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete