Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Unlimited Time Limit For Thread Title Editing Details »»
Unlimited Time Limit For Thread Title Editing
Version: 1.00, by WhisperPntr WhisperPntr is offline
Developer Last Online: Jan 2009 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 02-02-2005 Last Update: Never Installs: 5
 
No support by the author.

What Does this Hack Do?
This hack allows users to infinitely modify the thread title.

If you've ever seen the Time Limit on Editing of Thread Title under vB Options -> Message Posting and Editing Options you may have noticed that setting it to 0 simply meant a 0 time limit. This hack allows 0 to mean infinite.

Do not install if you want there to be a true 0 time limit to thread title editing.
Why Use this Hack?
Having been on several forums, I can say that being able to change the thread title in the first post is something I can barely live without. Whether I goofed up the spelling, or the thread title needs an update, it was nice having more control over my own threads.

Therefore, when I noticed in vb the only way to set an unlimited thread title edit was by having it all go up to 9999999... I felt it was better to just code a bypass conditional.
Installing
In editpost.php

FIND
PHP Code:
        if($getpost['postid']==$postidAND$edit['title']!=''AND($postinfo['dateline']+$vboptions['editthreadtitlelimit']*60)>TIMENOW
REPLACE WITH
PHP Code:
        if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($vboptions['editthreadtitlelimit']==OR($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)) 
FIND

PHP Code:
    if ($isfirstpost AND $postinfo['title'] == '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW
REPLACE WITH
PHP Code:
    if ($isfirstpost AND $postinfo['title'] == '' AND ($vboptions['editthreadtitlelimit']==OR ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)) 
How to Use it
After installing the hack go to:vB Options -> Message Posting and Editing Options >>Time Limit on Editing of Thread Title

Set the time to 0
This is my first hack release so please be gentle!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-05-2005, 06:45 AM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 02-06-2005, 12:25 PM
WhisperPntr's Avatar
WhisperPntr WhisperPntr is offline
 
Join Date: Apr 2002
Location: Hong Kong
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

his = her I'm female.

And yes... a part of me feels odd that 9999999... is in the system.
Reply With Quote
  #14  
Old 02-28-2005, 01:24 AM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 02-28-2005, 02:13 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 02-28-2005, 07:23 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #17  
Old 04-17-2005, 11:25 AM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 04-16-2008, 01:14 AM
funrun funrun is offline
 
Join Date: Jul 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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))
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 01:34 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.04486 seconds
  • Memory Usage 2,298KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_code
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete