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.


All times are GMT. The time now is 01:22 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.01100 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (1)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
  • (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