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
vB Thread Description Details »»
vB Thread Description
Version: 1.00, by AnhTuanCool AnhTuanCool is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-26-2004 Last Update: Never Installs: 15
 
No support by the author.

vBThread Description

Version: 1.0
vBulletin Version: 3.0.3
Developed by AnhTuanCool
Install difficulty Level: Pretty long


First thing I want to say is sblum had made a hack with the purpose just like this but mine is way so different so don't yell at me though.

Brief of Description:
vBThread Description hack adds to have a description line goes along with Thread.

Feature:
  • Can be turned on/off
  • Adds description line goes under the Thread title in FORUMDISPLAY
  • Thread's description line is cencored, wrapped as as thread title
  • Thread description line goes next to the title in SHOWTHREAD at the firstpost.
  • Users with permission can edit this description line
  • Description line goes also within thread in search result
  • Store description line in a table(database) no extra query
Updated:
Thread description line goes next to the title in SHOWTHREAD at the firstpost.

Screenshot:
In attachments...

Install:

Attachment also

And please click install if you use this hack INSTALL

If you got any problem or questions, just post it right here, I'm willing to help

Enjoy!

Show Your Support

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

Comments
  #32  
Old 09-30-2004, 12:08 PM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack, thanks!

Just one thing. The display for multiply Pages is now in the line of the Thread Description. Is it possible to set it backup to the Thread Title? (See the attachement)
Reply With Quote
  #33  
Old 09-30-2004, 09:22 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure you can, just replace the threadbit template with mine, and you have it, enjoy
Reply With Quote
  #34  
Old 10-01-2004, 02:11 AM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, here's my problem. I've edited and uploaded the php files, and edited the templates, and executed the SQL queries. But, NOTHING SHOWS UP!!! There's no Description box anywhere. I've double-checked all files and templates, and tried to run the queries again, which give me a duplicate table error.

What could the problem be? Usually when a hack doesn't work, there's some sort of error, but not this time...
Reply With Quote
  #35  
Old 10-01-2004, 03:21 AM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I've just re-install my test site and done this hack again and everything goes as well as I expected. One point, my hack isn't included any php file...then try to do and check the instuction again (except the sql query) if you could find any mistaken.
Reply With Quote
  #36  
Old 10-01-2004, 03:23 AM
tomshawk's Avatar
tomshawk tomshawk is offline
 
Join Date: Jul 2003
Location: California
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AnhTuanCOol
Hmmm, I know what ya problem now, in postings.php there are lots
PHP Code:
        'title' => STR 
but you must find the one goes within the Start Update Thread.

All should be right when you do this:

Open postings.php:
Find
PHP Code:
if ($_POST['do'] == 'updatethread')
{
    
globalize($_POST, array(
        
'threadid' => INT,
        
'visible' => STR,
        
'open' => STR,
        
'sticky' => STR,
        
'iconid' => INT,
        
'notes' => STR_NOHTML,
        
'threadstatus' => INT,
        
'reason' => STR,
        
'title' => STR
    
)); 
Replace with
PHP Code:
if ($_POST['do'] == 'updatethread')
{
    
globalize($_POST, array(
        
'threadid' => INT,
        
'visible' => STR,
        
'open' => STR,
        
'sticky' => STR,
        
'iconid' => INT,
        
'notes' => STR_NOHTML,
        
'threadstatus' => INT,
        
'reason' => STR,
        
'title' => STR,
        
'description' => STR
    
)); 
Find

PHP Code:

        $DB_site
->query("
            UPDATE " 
TABLE_PREFIX "thread SET
                visible = 
$visible,
                open = 
$open,
                sticky = 
$sticky ,
                title = '" 
addslashes(htmlspecialchars_uni($title)) . "',
                iconid = 
$iconid,
                notes = '"
addslashes($notes) ."'
                
$similarthreads
            WHERE threadid = 
$threadid
        "
); 
Replace with
PHP Code:
        $DB_site->query("
            UPDATE " 
TABLE_PREFIX "thread SET
                visible = 
$visible,
                open = 
$open,
                sticky = 
$sticky ,
                title = '" 
addslashes(htmlspecialchars_uni($title)) . "',
                description = '" 
addslashes(htmlspecialchars_uni($description)) . "',
                iconid = 
$iconid,
                notes = '"
addslashes($notes) ."'
                
$similarthreads
            WHERE threadid = 
$threadid
        "
); 
there you go, and I updated the instruction too. Regard

Thank you, I can edit old threads and add a description now.

Again, very kewl hack. thank you very much
Reply With Quote
  #37  
Old 10-01-2004, 03:47 PM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AnhTuanCOol
Well, I've just re-install my test site and done this hack again and everything goes as well as I expected. One point, my hack isn't included any php file...then try to do and check the instuction again (except the sql query) if you could find any mistaken.
I have checked everything again now (making it 3 times now), and it still doesn't show up. The php all works (i dont get a blank white screen), and the templates don't produce any errors. I just can't figure out what it is...
Reply With Quote
  #38  
Old 10-01-2004, 09:28 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this,

Open template threadbit
Find:
HTML Code:
<if condition="$show[pagenavmore]">... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=lastpost$thread[highlight]">$vbphrase[last_page]</a></if> )</span></if>
Add after:
HTML Code:
<br /><font class="smallfont">$thread[threaddescription]</font>
Reply With Quote
  #39  
Old 10-02-2004, 12:20 AM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, the Description box STILL doesn't show up, ANYWHERE. Every single element of everything in the hack is perfectly installed, too...
Reply With Quote
  #40  
Old 10-02-2004, 02:29 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Megareus Rex
Nope, the Description box STILL doesn't show up, ANYWHERE. Every single element of everything in the hack is perfectly installed, too...
Try using:

$thread[description]
Reply With Quote
  #41  
Old 10-02-2004, 12:47 PM
Surtain23's Avatar
Surtain23 Surtain23 is offline
 
Join Date: Sep 2004
Location: Western New York
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing hack, but it didn't work until I went to includes/functions_newpost.php and changed the $SHOWTHREADDESCRIPTION = false; to $SHOWTHREADDESCRIPTION = true;

Great work!
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 11:44 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.04858 seconds
  • Memory Usage 2,341KB
  • 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
  • (2)bbcode_html
  • (5)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
  • (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