vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Display Enhancements - Thread Description (https://vborg.vbsupport.ru/showthread.php?t=116410)

shadowevil 05-23-2006 03:25 AM

Nice hack ... great work >:D<

rmxs 05-23-2006 06:55 AM

Nice hack and work GREATE....

Suggestion...Ajax EDIT ON description LIKE TITLES EDIT :)

projectego 05-23-2006 09:05 AM

Awesome hack! Thanks very much for sharing. ;)

derekivey 05-23-2006 09:57 AM

Quote:

Originally Posted by Cybernetec
It works fine in the editpost.

-It doesn't show description in search results.
-It would be great if you can make that thread starter is shown in separate column in forumdisplay. With description title/starter field is much heighter.

Nice work.

I'll see if I can add it to the search as well but not making any guarantees because I have never worked with vB's search engine before so I'm not exactly sure how I would add it. I will take a look tonight to see if I can figure it out. Also for the thread author in a new column, you can do that in the templates manager if you want to, but I don't feel that it needs to be done for this because the max limit for the descriptions is 100 characters so it should only be one extra line per threadbit.

Quote:

Originally Posted by rmxs
Nice hack and work GREATE....

Suggestion...Ajax EDIT ON description LIKE TITLES EDIT :)

I like that. I'll try adding it also.

Snake 05-23-2006 11:01 AM

Thanks for your release but how about a screenshot? :p

akanevsky 05-23-2006 11:32 AM

There's a screenshot inside the archive, although yeah - screens should be attached separately.

utw-Mephisto 05-23-2006 02:25 PM

1 Attachment(s)
I am not using it, but there you go :

akanevsky 05-23-2006 03:01 PM

I have installed and checked this hack, works perfectly.

Except for your install/uninstall code, which should be replaced by this:

PHP Code:

$db->hide_errors();
$db->query_write("ALTER TABLE `" TABLE_PREFIX "thread` ADD `description` VARCHAR( 100 ) NOT NULL");
$db->show_errors(); 

PHP Code:

$db->hide_errors();
$db->query_write("ALTER TABLE `" TABLE_PREFIX "thread` DROP `description`");
$db->show_errors(); 

Note:
1. No semicolon at the end of query. That sometimes causes errors.
2. query replaced with query_write
3. No reason to create an array for only one query.
4. hide_errors and show_errors to avoid unnecessary error display.

After that, "Beta Stage" marker can be safely removed! :)

Couple of suggestions:

1. Show threaddescription is showthread and archive.
2. Show threaddescription in search results, for both thread mode and post mode.
3. Add ajax description edit in threadbit.
4. Add the field to editpost when editing first post in advanced mode.
5. "description of" is a grammatical error in the context. Should be "description for".

Cheers!

Allan 05-23-2006 03:12 PM

Screens please ^^

akanevsky 05-23-2006 03:14 PM

There are screens in the post above mine.


All times are GMT. The time now is 09:45 PM.

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.01168 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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