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)

WhisperPntr 02-02-2005 10:00 PM

Unlimited Time Limit For Thread Title Editing
 
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! ;)

WhisperPntr 02-03-2005 05:46 PM

Sorry about that. The WYSIWYG editor fiercely messed up the post :P

MR-2ZZ 02-04-2005 05:53 AM

Installing as we speak....

MR-2ZZ 02-04-2005 06:04 AM

Didn't work for me :(

WhisperPntr 02-04-2005 07:27 AM

Really??? did you set the setting to 0 in the control panel?

MR-2ZZ 02-04-2005 08:40 AM

Yeah I did, then I went and tested everything out and edited by popped right up.

Tekton 02-04-2005 09:50 AM

No, I think this hack is to just allow the thread title to be changed, not to remove the "edited by" message(s).

WhisperPntr 02-04-2005 11:04 AM

Yes, the poster is right. The edited by is a separate indication.

This is supposed to allow for you to edit the thread title an unlimited number of times. If you don't want edited by to appear I also believe you can set that as well.

Quote:

Originally Posted by MR-2ZZ
Yeah I did, then I went and tested everything out and edited by popped right up.


MR-2ZZ 02-05-2005 12:54 AM

OHHHH in that case!!

Bravo this thread worked marvelously!

:D

ImportPassion 02-05-2005 02:32 AM

all u need to do is put 999999999999999 in there and it will work fine. this was from the vb devs.

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 05:34 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.01318 seconds
  • Memory Usage 1,775KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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