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
  #22  
Old 09-28-2004, 10:32 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can descriptions be added to threads that are already there and have no description yet?
Reply With Quote
  #23  
Old 09-28-2004, 12:11 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably Yes, just get in the thread and choose for Edit Thread
Reply With Quote
  #24  
Old 09-28-2004, 12:35 PM
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 AnhTuanCOol
Probably Yes, just get in the thread and choose for Edit Thread
Then you are a better coder than I am. I did a thread description hack a while back and I had to edit postings.php a lot more than you did.
Reply With Quote
  #25  
Old 09-28-2004, 07:48 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You just humble Boofo, there are variety of ideas to make a hack, maybe you didn't get the right one though
I appreciate that
Reply With Quote
  #26  
Old 09-28-2004, 09:41 PM
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 AnhTuanCOol
You just humble Boofo, there are variety of ideas to make a hack, maybe you didn't get the right one though
I appreciate that
Have you tested it to see if you can add a description on a thread that is already there?
Reply With Quote
  #27  
Old 09-28-2004, 11:16 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did.
Reply With Quote
  #28  
Old 09-29-2004, 01:06 AM
sblum sblum is offline
 
Join Date: Jul 2004
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good, the exact same features (except on/off option), but it is a bit cleaner than my version. I didn't include the option to turn it on/off because I figured - why would someone install it and turn it off? :P

Good job.
Reply With Quote
  #29  
Old 09-29-2004, 04:12 AM
tomshawk's Avatar
tomshawk tomshawk is offline
 
Join Date: Jul 2003
Location: California
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Have you tested it to see if you can add a description on a thread that is already there?
I just tested it.

It gives me the box to add the description, but, when I hit save it does not show up in the post or the forumdisplay, interesting
Reply With Quote
  #30  
Old 09-29-2004, 09:41 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 tomshawk
I just tested it.

It gives me the box to add the description, but, when I hit save it does not show up in the post or the forumdisplay, interesting
I think there has to be more added to postings.php then. So the one I wrote should be right.
Reply With Quote
  #31  
Old 09-29-2004, 12:56 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:28 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.05323 seconds
  • Memory Usage 2,336KB
  • 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
  • (4)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