Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Complete Thread Description Hack 1.7 Details »»
Complete Thread Description Hack 1.7
Version: 1.00, by sblum sblum is offline
Developer Last Online: Jul 2005 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-11-2004 Last Update: Never Installs: 30
 
No support by the author.

Complete Thread Description

Version: 1.7
vBulletin Version: 3.0.3
Updated and Adapted by: Steven Blum
Install difficulty: Pretty easy

Updates:

Updates in 1.7:

All known issues fixed. If a post error message is encountered in making a new thread, the threaddesc will reappear in the form along with the title and the message.

Updates in 1.6.2:

Adjustments in instructions to clarify and make a couple steps much easier. Also, fixed a problem that would cause threads with both descriptions and ratings to display on 3 lines instead of 2.

Updates in 1.6.1:

soft-deleted threads will now display properly

Updates in 1.6:

Fixed an error that would come up if you tried to edit a thread description and add an apostrophe.
Fixed an error that would make it so announcements didn't span the whole table width.


Description:
This is basically a massively updated and modified version of eXtremeTim's thread description hack located here: https://vborg.vbsupport.ru/showthread.php?t=60697

This hack emulates thread descriptions as seen in IPB, displaying them right below the thread title. Also, an optional step puts thread creator in its own column, basically making it look like most other forums.

Features:
  • Users are allowed to leave thread descriptions upon initial posting of a thread
  • Users with permission are allowed to edit thread description within the same time limit allowed to edit a thread
  • Thread description shows up in Searches as well as Forumdisplay
  • Thread description also shows up on the first post of a thread, right next to title
  • Added: Forumdisplay like most other forums making thread creator display in a new column - this step is optional and included in another txt file, but strongly recommended (it looks pretty retarded the other way)

Nobody was doing updates or answering questions, so I took matters into my own hands! This is my first officially released vB hack. Everything works perfectly on my forums, but if you have any problems with this let me know.

Note: I've discovered that if you have it set so that people can not edit the thread title after a certain amount of time, they will be unable to edit thread description, which is as intended. However, admins will also not be able to edit the thread title, which is not intended. On my forums I do not use such restrictions so it's not a problem, and I don't have any plans to update this hack accordingly, sorry.

Demo

<removed>

Sorry, no screenshots are available right now, I'm currently at work and have no image manipulating program other than mspaint. You can see it in action at my forum. If you receive any errors or there are any bugs, please let me know and I'll try to get it fixed.

And always, if you like this hack, please click install. Thank you!

Edit: Added the threadstarterinowncolum (like i have on my boards and IPB has) text file... You want to do this before you add thread description. It's pretty easy to do it after, the search just won't work 100% due to an extra line involving threaddesc. I have tested these modifications, and it works 100% fine for me, but back up your templates anyways and report any errors here.

Show Your Support

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

Comments
  #42  
Old 11-05-2004, 08:37 PM
Hades-1 Hades-1 is offline
 
Join Date: May 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whenever i edit a post it does not enter the info into the database, i also get no errors, it just dosent work

It works great when i post a new thread tho
Reply With Quote
  #43  
Old 11-15-2004, 08:54 PM
sblum sblum is offline
 
Join Date: Jul 2004
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That has to do with the time limit you've set on editing a post title, if I recal correctly.
Reply With Quote
  #44  
Old 11-20-2004, 05:29 AM
lancepoint lancepoint is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i fix it??? i tried dropping the threaddesc and all my forums crashed.. i so i added it back for now..people can reply to threads but posting them gets this error.

Thanks Pre Hand


PHP Code:
Invalid SQL
                
INSERT INTO vbulletin_thread(titlelastpostforumidopenreplycountpostusernamepostuseridlastposterdateline,
                     
iconidvisibleattachsimilarthreaddesc)
                
VALUES
                    
('THREAD TEST ETEST'110085626932,
                     
10'DesignerBeat'1,
                     
'DesignerBeat'110085626901,
                     
0''''0)
            
mysql errorColumn count doesn't match value count at row 1

mysql error number: 1136 
Reply With Quote
  #45  
Old 11-28-2004, 02:36 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Odd...the thread description deosn't change when a member uses editpost.php

All of the edits have been done.
Reply With Quote
  #46  
Old 12-27-2004, 03:42 AM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering

When was I asked for permission for this to be worked on and released? I dont really care but a pm would have been nice.
Reply With Quote
  #47  
Old 12-30-2004, 05:48 AM
kikosho kikosho is offline
 
Join Date: Mar 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Odd...the thread description deosn't change when a member uses editpost.php

All of the edits have been done.

Yeah, I am still getting that problem as well and I have the editing timetable disabled. Still no luck even if I attempt to edit a thread immediately. Very frustrating...someone please help!
Reply With Quote
  #48  
Old 12-31-2004, 03:07 AM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my fix that I used on my site.

in editpost.php

If you have the hack installed find the following:
PHP Code:
if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse); 
Replace with:
PHP Code:
        if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse);
        } else {
$threadupdate[] = "threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "'";
        } 

If still getting ready to install that hack find:
PHP Code:
if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse); 
Replace with:
PHP Code:
        if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse);
        } else {
$threadupdate[] = "threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "'";
        } 
Reply With Quote
  #49  
Old 01-04-2005, 07:38 AM
acrimony acrimony is offline
 
Join Date: Mar 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason I cant find the function_newpost file...... ????
Reply With Quote
  #50  
Old 01-10-2005, 05:54 PM
charlesk charlesk is offline
 
Join Date: Nov 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install clicked. Thanks.

eXtreme Tim: one strange thing. So far I am finding that editing does work with the stock hack code, without your modifications. That is, I am able to edit in editpost.php as the hack was originally provided. Not complaining but I wonder now why that would be?

Charles
Reply With Quote
  #51  
Old 01-10-2005, 07:17 PM
charlesk charlesk is offline
 
Join Date: Nov 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, I just figured out how to make that bug appear.

Thanks for the fix. Note that there's an extra "}" in your replacement text, however.
Reply With Quote
Reply

Thread Tools

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 09:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08379 seconds
  • Memory Usage 2,345KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_php
  • (1)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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