vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Unlimited Time Limit For Thread Title Editing (https://vborg.vbsupport.ru/showthread.php?t=75676)

MR-2ZZ 02-05-2005 06:45 AM

Quote:

Originally Posted by 7thgenCivic.Com
all u need to do is put 999999999999999 in there and it will work fine. this was from the vb devs.

I figured that would do the trick too, I guess, his mod is more for people like me who hate seeing that number.

WhisperPntr 02-06-2005 12:25 PM

his = her :) I'm female.

And yes... a part of me feels odd that 9999999... is in the system.

Protoman 02-28-2005 01:24 AM

works.
I had trouble finding the first part due to spaces being added or missing mine was as follows

PHP Code:

if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW


kall 02-28-2005 02:13 AM

Quote:

Originally Posted by corollasbest
works.
I had trouble finding the first part due to spaces being added or missing mine was as follows

PHP Code:

if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW


Or, you could use the one already released by Darkling

It works...and is per Usergroup.

Oblivion Knight 02-28-2005 07:23 AM

Quote:

Originally Posted by kall
Or, you could use the one already released by Darkling

It works...and is per Usergroup.

That mod is for editing the post and not the thread title.. ;)

However, I merged the two using the ($forumperms & CANEDITUNLIMITED) part of code in place of the time limit being 0 and they're running great.. :D

dwh 04-17-2005 11:25 AM

I assume that this setting reflects only people whose time limit for editing a thread is allowed. Meaning if their editing time limit ran out, they won't be able to still edit the thread.

funrun 04-16-2008 01:14 AM

The code above does not work with the version of Vb installed on my site (newest version as of today's date.)

Here is the code that worked for me, as an exact copy/paste with all spacings:
This line
Code:

                if ($threadinfo['firstpostid'] == $postinfo['postid'] AND $edit['title'] != '' AND ($postinfo['dateline'] + $vbulletin->options['editthreadtitlelimit'] * 60) > TIMENOW)

Changed to
Code:

                if ($threadinfo['firstpostid'] == $postinfo['postid'] AND $edit['title'] != '' AND ($vbulletin->options['editthreadtitlelimit'] == 0 OR ($postinfo['dateline'] + $vbulletin->options['editthreadtitlelimit'] * 60) > TIMENOW))
and

This line
Code:

        if ($isfirstpost AND $postinfo['title'] == '' AND ($postinfo['dateline'] + $vbulletin->options['editthreadtitlelimit'] * 60) > TIMENOW)
Changed to
Code:

        if ($isfirstpost AND $postinfo['title'] == '' AND ($vbulletin->options['editthreadtitlelimit'] == 0 OR ($postinfo['dateline'] + $vbulletin->options['editthreadtitlelimit'] * 60) > TIMENOW))


All times are GMT. The time now is 02:04 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.03199 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_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
  • (7)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