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)
-   -   vB Thread Description (https://vborg.vbsupport.ru/showthread.php?t=69905)

Boofo 09-28-2004 10:32 AM

Can descriptions be added to threads that are already there and have no description yet?

AnhTuanCool 09-28-2004 12:11 PM

Probably Yes, just get in the thread and choose for Edit Thread ;)

Boofo 09-28-2004 12:35 PM

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. ;)

AnhTuanCool 09-28-2004 07:48 PM

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

Boofo 09-28-2004 09:41 PM

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?

AnhTuanCool 09-28-2004 11:16 PM

Yes, I did.

sblum 09-29-2004 01:06 AM

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.

tomshawk 09-29-2004 04:12 AM

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

Boofo 09-29-2004 09:41 AM

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. ;)

AnhTuanCool 09-29-2004 12:56 PM

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 :)


All times are GMT. The time now is 01:45 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.01204 seconds
  • Memory Usage 1,764KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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