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)

derekivey 05-22-2006 10:00 PM

Thread Description
 
1 Attachment(s)
Thread Description
Developers: derekivey
Version: 1.0.0
vBulletin Version: 3.5.4
File Edits: 0
Template Edits: 6
New Phrases: 1
Uses Plugins: Yes
Difficulty: Easy

Description: This hack adds the ability for users to add a description for their thread.

*** I Strongly Recommend That You Backup Before Installing/Upgrading This Hack! ***

Planned features for a later release:
  • Add AJAX Description Edit [ Flagged for a later release ]
  • Show Thread Description In Archive [ Flagged for a later release ]
  • Whatever is suggested.
Features Added To 1.0.0
  • Changed Install and Uninstall Code
  • Show Thread Description In showthread
  • Show Thread Description In Search Results
  • Add Field To Edit Post For First Post
  • Add htmlspecialchars_uni to description updates to prevent HTML
I have added screen shots of this hack in action below.

Please click https://vborg.vbsupport.ru/ If you installed this hack.

If you would like to make a donation, you may send it to me through PayPal.
https://vborg.vbsupport.ru/external/2013/04/2.gif

Thanks!

akanevsky 05-22-2006 10:36 PM

Nice hack, seems to be much better than the one already released. Nicely styled code and installer readme, too. Good job.

I haven't checked whether this actually works yet, but by reading the code I can't see why this is in beta stage.

Living in music 05-22-2006 11:02 PM

Great work, I love you ! ;)

Kaleem 05-22-2006 11:07 PM

lets check it out :) will click install after seeing whts goin on :)

derekivey 05-22-2006 11:42 PM

Thanks guys. Glad you like it :).

Derek

derekivey 05-22-2006 11:46 PM

Quote:

Originally Posted by Psionic Vision
I haven't checked whether this actually works yet, but by reading the code I can't see why this is in beta stage.

I decided to leave it in beta for a few days just to make sure there aren't any bugs. If there are I will fix them and take it out of beta.

Derek

DJ XtAzY 05-23-2006 12:01 AM

awesome i think this version is better than the other version. This hack requries no file edits!!!!

derekivey 05-23-2006 12:44 AM

Yup it just uses plugins :)

Boofo 05-23-2006 12:49 AM

Does this work in the editpost too? ;)

Valter 05-23-2006 01:41 AM

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.

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.

TCB 05-23-2006 07:40 PM

Thanks, it looks nice.... but I agree with one of the earlier posters, that it looks a bit messy with 3 rows (title/subtitle/poster) in various fonts. I prefer the Invisionboard style (adding an extra column with the topicstarter)

derekivey 05-23-2006 07:44 PM

Sorry about that. I forgot to upload them. They have now been attached.

Derek

derekivey 05-23-2006 07:46 PM

Quote:

Originally Posted by Psionic Vision
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!

Thanks for the suggestions. I will try to do those tonight if I can and release a new version and take it out of beta :).

Derek

derekivey 05-23-2006 08:08 PM

I'm not sure how to add the Ajax thing because vB has it so when you click twice anywhere in the threadbit it automatically edits the title. Any suggestions?

derekivey 05-23-2006 09:28 PM

From the looks of it, it looks like I would have to add a file edit for the description to show in the search results because right after the hook call is $thread_select_logic = array();. I somehow would need to add $thread_select_logic[] = "thread.description"; Any ideas on how to add this when the array() is called after the hook call?

Thanks,
Derek

derekivey 05-23-2006 10:09 PM

Nevermind I got it. It's coming along nicely now :).

Derek

FreshFroot 05-23-2006 11:45 PM

Nice work Derek :) I can't wait too see the newest updated hack. Again nice work mate. :)

jaks 05-24-2006 03:09 AM

I think this should have been in VB default install already. Awesome!!! Can't wait til it's done.

:D
Jaks

rmxs 05-24-2006 06:49 AM

Quote:

Originally Posted by derekivey
I'm not sure how to add the Ajax thing because vB has it so when you click twice anywhere in the threadbit it automatically edits the title. Any suggestions?

Yes everywere if you click the title can be edited..
you cannot split this row?half part klik edit tiltes and the other half the description..

fly 05-24-2006 01:33 PM

This is awesome. I'll be trying this tonite.

Hemanth 05-24-2006 03:37 PM

Thanks a lot. It's working fine. Just installed :)

Snake 05-24-2006 03:58 PM

Thank you for the fix, I shall install this right away! :)

derekivey 05-24-2006 07:13 PM

Quote:

Originally Posted by Hemanth
Thanks a lot. It's working fine. Just installed :)

Please click install. Thanks! :)

Snake 05-24-2006 08:09 PM

derek, here's a silly question. How do I remove the italic effect for all thread descriptions?

derekivey 05-24-2006 08:27 PM

In threadbit, find:

PHP Code:

<em>$thread[description]</em

Replace with:

PHP Code:

$thread[description

Derek

FreshFroot 05-24-2006 08:29 PM

the updated version is posted? looks the same one from before.........

derekivey 05-24-2006 08:32 PM

No not yet, it just says Updated because I attached the ScreenShots. The new version will be out in a few hours, but I'm not sure if I'll have the AJAX Quick Edit in the new version, it might take some time to code.

Derek

derekivey 05-24-2006 09:20 PM

Where in showthread do you guys think I should put the thread description? I can't put it in the navbits because it would require a file edit and I don't want that. Where would be a good spot for it?

Thanks,
Derek

akanevsky 05-24-2006 09:26 PM

Quote:

Originally Posted by derekivey
Where in showthread do you guys think I should put the thread description? I can't put it in the navbits because it would require a file edit and I don't want that. Where would be a good spot for it?

Thanks,
Derek

Put it under forum description as you can see it a in default vB. In other words, just above the first post :)

derekivey 05-24-2006 09:32 PM

Ok thanks, I'll put it there.

Derek


All times are GMT. The time now is 09:35 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.01586 seconds
  • Memory Usage 1,827KB
  • 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
  • (6)bbcode_php_printable
  • (7)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
  • (40)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