Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Description Details »»
Thread Description
Version: 1.0.0.d, by TrucLinh TrucLinh is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 11-10-2006 Last Update: 12-19-2006 Installs: 149
DB Changes Uses Plugins Template Edits
Code Changes  
No support by the author.

Release: for 3.5.x ~ 3.6.x to 3.7.x (*)

. This hack allows your users to add descriptions to their threads that show up on the threadlist.
. More info & option see (Screenshots)
  • Code Changed (*)
  • Add Field To Edit Post For First Post
  • Show Thread Description In Showthread
  • Show Thread Description In Search Results
  • Add html specialchars uni to description updates to prevent HTML
  • Admin CP can Enable/Disable thread descriptions per forum (*)


DL / Unpacking the attachment:

. UpLoad images\strela_w.gif

Installation Instructions:

. Login to Admin CP
. Choose Plugin System
. Choose [Add/Import Product]
. Choose product-thread_description.xml
. Click [ Import ]

Modify templates: ( 6 templates )

. Read My Instructions: readme-thread-description.html (c) (+)

. Import [ XML ] = Done

. Thats all!

. Enjoy!

Note:
I will update my mod "no more edit template" on my next ver.
Good date all!

(*) My New Version Dec12, 2006
(c) Templace(s) - vBulletin ver you may find template changes, but these input code not changes.

Download Now

File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)
File Type: (21.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 08-08-2008, 06:26 PM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper View Post
Any way to make this thing remember the description if Thread Preview is clicked?
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

HTML Code:
		<!-- description field -->
		<if condition="$foruminfo['allowdesc'] == 1">
		<if condition="$isfirstpost">
		<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
			<input type="hidden" name="desc_adv" value="1" />
		</if>
		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
		<tr>
		<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
		</tr>
		<tr>
		<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
		</tr>
		</table>
		</if></if>
		<!-- / description field -->
Furthermore I modified the product file, see attachment.
Attached Files
File Type: (21.4 KB, 10 views)
Reply With Quote
  #103  
Old 08-09-2008, 02:22 AM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liwo View Post
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

HTML Code:
		<!-- description field -->
		<if condition="$foruminfo['allowdesc'] == 1">
		<if condition="$isfirstpost">
		<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
			<input type="hidden" name="desc_adv" value="1" />
		</if>
		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
		<tr>
		<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
		</tr>
		<tr>
		<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
		</tr>
		</table>
		</if></if>
		<!-- / description field -->
Furthermore I modified the product file, see attachment.
So adding in both of these fixes teh thread preview problem?
Reply With Quote
  #104  
Old 08-09-2008, 07:24 AM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper View Post
So adding in both of these fixes teh thread preview problem?
It did in my 3.7.2-PL1 testforum. I do not yet use that description mod in my main forums as I am not yet ready to upgrade that, so it is not tested there.

But I'm quite positive that these two fixes actually do fix that bug without producing new bugs
Reply With Quote
  #105  
Old 08-10-2008, 10:19 AM
Nook_Neformat Nook_Neformat is offline
 
Join Date: May 2006
Location: Kiev, Ukraine
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liwo View Post
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

HTML Code:
		<!-- description field -->
		<if condition="$foruminfo['allowdesc'] == 1">
		<if condition="$isfirstpost">
		<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
			<input type="hidden" name="desc_adv" value="1" />
		</if>
		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
		<tr>
		<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
		</tr>
		<tr>
		<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
		</tr>
		</table>
		</if></if>
		<!-- / description field -->
Furthermore I modified the product file, see attachment.
so i must edit template and reupload the product file or you just include template's changes in product file?
Reply With Quote
  #106  
Old 08-10-2008, 10:22 AM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to edit the template yourself.
Reply With Quote
  #107  
Old 08-11-2008, 11:02 AM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been usind this mod for a long time, since 3.6.7 without any problems but since I upgraded for 3.7 Gold I notice any time someone tries to edit their first post and only if this post has a Thread Description I get a MySQL error like "Table doens't exist for the thread ID".

Despite of this error the changes are made correctly.

Does someone here notice the same ?
Reply With Quote
  #108  
Old 08-13-2008, 08:40 AM
Nook_Neformat Nook_Neformat is offline
 
Join Date: May 2006
Location: Kiev, Ukraine
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liwo View Post
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

HTML Code:
		<!-- description field -->
		<if condition="$foruminfo['allowdesc'] == 1">
		<if condition="$isfirstpost">
		<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
			<input type="hidden" name="desc_adv" value="1" />
		</if>
		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
		<tr>
		<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
		</tr>
		<tr>
		<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
		</tr>
		</table>
		</if></if>
		<!-- / description field -->
Furthermore I modified the product file, see attachment.
unfortunatly, it didn't help me, and when i'm creating a new thread, description stil dissapeares after thread preview
Reply With Quote
  #109  
Old 08-13-2008, 08:56 PM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you also import the attached product file?
Reply With Quote
  #110  
Old 08-15-2008, 11:04 AM
Nook_Neformat Nook_Neformat is offline
 
Join Date: May 2006
Location: Kiev, Ukraine
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, i did. i were thinking, when we create new thread, we use template "newthread". so maybe change in this template must be edited to save thread's description after new thread preview?
Reply With Quote
  #111  
Old 08-15-2008, 05:12 PM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could well be. I don't think I tested on thread creation. I test this as soon as I find time for it and get back to you.

Update: ok, I found it. It's just a bug in the template. Exchange the following line in the edit

HTML Code:
<input type="text" class="bginput" name="description" value="$description" size="40" maxlength="100" tabindex="1.5" />
with this one

HTML Code:
<input type="text" class="bginput" name="description" value="$newpost[description]" size="40" maxlength="100" tabindex="1.5" />
That should fix the problem.

Thanks for telling me.
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 05:20 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.05456 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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
  • (5)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete