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)

AnhTuanCool 09-26-2004 10:00 PM

vB Thread Description
 
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!

oldfan 09-27-2004 12:18 AM

Thanks, I'll install this later.

nexialys 09-27-2004 12:42 AM

would be even better to have description set per forum...
(ok, i have it in my own version) ... cool system thought!

tomshawk 09-27-2004 03:30 AM

In the instructions under postings.php

you say to look for

PHP Code:

'title' => STR

the , is not there unless added by another hack, so it should be

PHP Code:

'title' => STR 

This looks kewl, in the process of installing as we speak.

Thanks. I'll click install once its running ;)

AnhTuanCool 09-27-2004 03:41 AM

oh yeah, ya right tomshawk, I corrected the instruction thanks ;)

PHP Code:

Find
####################################
        
'title' => STR
####################################
Replace with
####################################
        
'title' => STR,
        
'description' => STR 


tomshawk 09-27-2004 03:57 AM

Sorry about this, maybe I am doing something wrong, but...

I run the queries and I am getting errors

the first one

PHP Code:

ALTER TABLE thread ADD description VARCHAR(250NOT NULL DEFAULT ''

the comma at the end needs to be removed

the second one worked

the 3rd one

PHP Code:

INSERT INTO phrase (languageidvarnametextphrasetypeidVALUES (0,  'setting_tdactive_desc''If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000) 

gives this error

Code:

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 304
STR: '
SQL: INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0,  'setting_tdactive_desc', 'If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000)
SQL-query : 

INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_tdactive_desc', 'If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000)

MySQL said:


#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's description only if available.', 5000)' at line 1

the forth one worked

tomshawk 09-27-2004 04:05 AM

Quote:

Originally Posted by tomshawk
Sorry about this, maybe I am doing something wrong, but...

I run the queries and I am getting errors

the first one

PHP Code:

ALTER TABLE thread ADD description VARCHAR(250NOT NULL DEFAULT ''

the comma at the end needs to be removed

the second one worked

the 3rd one

PHP Code:

INSERT INTO phrase (languageidvarnametextphrasetypeidVALUES (0,  'setting_tdactive_desc''If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000) 

gives this error

Code:

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 304
STR: '
SQL: INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0,  'setting_tdactive_desc', 'If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000)
SQL-query : 

INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_tdactive_desc', 'If this option set to Yes, Thread Description will be enabled and users can post, see, and edit Description for Thread. If this option set to No, users will only see thread's description only if available.', 5000)

MySQL said:


#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's description only if available.', 5000)' at line 1

the forth one worked


It didn't like

PHP Code:

thread's 

changed it to

PHP Code:

threads 

and it took

AnhTuanCool 09-27-2004 04:06 AM

Oh, sorry, my bad, I should get an install script for those sql query cuz when I hacked it I just simply insert the data from phpmyadmin and I wrote back the SQL :D

Instuction Attachment fixed :)

tomshawk 09-27-2004 04:27 AM

in the new thread box

All there is is a : colon

The word Description is missing

Second, after posting, in the threadview, there is no description row.

Is there is missing template?

I expect there is something to be added to showthread template, but I may be mistaken

D|ver 09-27-2004 10:12 AM

an addition for vbadvacned cmps would be great, if the descriptions would also display in the lastest thread box


All times are GMT. The time now is 01:36 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.01213 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (9)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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