vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Edit posts or not to edit this is the question. (https://vborg.vbsupport.ru/showthread.php?t=51087)

trafix 04-02-2003 12:20 AM

Edit posts or not to edit this is the question.
 
To allowing editing of posts in all forums with a time limit is easy, just set the defult in the admin options........

I am trying to find some easy to allow editing after this time in a particular forum (including all sub-forume of the nominated forum)

I have searched for ages...however the words "allow edit in forums" etc is to generic and results show too many results.

I dont know if this is a hack or just a matter of configuring the board options and permissions in a certain way

Any ideas???

Thanks in advance

trafix 04-03-2003 07:02 AM

Does anybody have a solution??

EvilLS1 04-03-2003 09:05 AM

I don't think there's a way to do that in the board options. Should be pretty easy to make a hack for it though.

You could either do a quick hardcoded fix by replacing this (in editpost.php):

Code:

        if ($postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=0) {
          eval("standarderror(\"".gettemplate("error_edittimelimit")."\");");
          exit;

With something like this:

Code:

        if ($threadinfo['forumid']!=1 and $postinfo[dateline]<(time()-($edittimelimit*60)) and $edittimelimit!=0) {
          eval("standarderror(\"".gettemplate("error_edittimelimit")."\");");
          exit;

.. and replace the number highlighted in red with the forum ID for the one that you want to exclude from the time limit..

Or you you could go all out and add a new setting to your board options page so that you can easily add or edit multiple forum ID's to exclude.

trafix 04-03-2003 10:37 AM

thanks ill give it a try

Xenon 04-03-2003 02:07 PM

hmm i wrote a hack long time ago, where you can set the timelimit for each forum seperately, maybe that could also help ya

trafix 04-04-2003 12:17 PM

Gee Thanks Xenon :) thats what I was looking for.

Xenon 04-04-2003 02:34 PM

:)
you're welcome :)

i never thought someone could use it again ;)

Razasharp 03-21-2005 01:20 PM

Where is this hack please Xenon?

I actually need the thread creator to be able to edit his/her own posts in the thread they have created in a specific section only (they'll be using the 'threads' as their homepages) But I don't mind others having the abilty to edit their 'replies' if thats all we can do :-)

Johnny 03-21-2005 02:34 PM

look at his profile you will see the hacks he created.

Razasharp 03-21-2005 02:38 PM

i did..but coudnlt see it :-(


All times are GMT. The time now is 10:03 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.03074 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete