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

Reply
 
Thread Tools
[Convert] Thread Description V2 Details »»
[Convert] Thread Description V2
Version: 2.00, by tieuquynhi tieuquynhi is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 12-01-2010 Last Update: Never Installs: 73
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files  
No support by the author.

This Addon I was converted from EWT - Thread Description (I cannot find any that addon in previous vbulletin version in forum)

Compatible with all VBB 4x versions

Product features:
- Added description field to Post New Thread
- Added description field to Edit Post Advanced for First Post
- Show description in Forumdisplay

Template Edit:
Template: editpost
Find:
Quote:
<img id="posticon_preview" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" title="Selected post icon" />
</div>
Add Below:
Quote:
{vb:raw postinfo.thread_description}
Template: newthread
Find:
Quote:
<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
</div>
Add Below:
Quote:
{vb:raw newpost.thread_description}
Template: threadbit

Find:
Quote:
<div class="author">
Add Below:
Quote:
{vb:raw thread.thread_description}

Download Now

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.
Благодарность от:
mohammadxxx

Comments
  #22  
Old 12-20-2010, 09:20 AM
slipkot slipkot is offline
 
Join Date: Mar 2008
Location: Greece
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slipkot View Post
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks
bump
Reply With Quote
  #23  
Old 01-06-2011, 12:11 PM
KaiStone's Avatar
KaiStone KaiStone is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slipkot View Post
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks
Trả lời hộ ?ng bạn VN :">

@ slipkot: search in template "ewt_forumdisplay_threaddesc"

Code:
<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
You can add "align" value to control the image location, it's BASIC HTML. My advice: Learn HTML (at least) before having a forum.

After

Code:
border="0"
Add this

Code:
valign="center"
Or you can try

Code:
valign="bottom"
Do a research to find some other values.



Quote:
Originally Posted by fly View Post
Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?
If you wanna the description show on SHOWTHREAD, please Edit SHOWTHREAD template. Put:

Code:
{vb:raw thread.thread_description}
To anywhere you want. I don't know where you want, so do it yourself
Reply With Quote
  #24  
Old 01-06-2011, 02:00 PM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
I find no such phrase in the "ewt_newpost_threaddesc" template.

Have I done sth wrong?
Reply With Quote
  #25  
Old 01-06-2011, 02:08 PM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slipkot View Post
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks
To fix this problem an idea would be to change the Thumbnail Location after threadicon.

Go to the settings of the thread thumbnails modification in the control panel of your forum and you will find this option there. If you do this everything would be fine as all text will start next to the image from the same vertical position.

This was just an idea....

In the case that sb wants to keep the images before thread icons I guess sb must provide a new html script to change in the appropriate templates so as the position of the text to appear correctly.
Reply With Quote
  #26  
Old 01-06-2011, 02:11 PM
KaiStone's Avatar
KaiStone KaiStone is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mikevet1984 View Post
Code:
<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
I find no such phrase in the "ewt_newpost_threaddesc" template.

Have I done sth wrong?
OH NO =)) Sorry my mistake =)) Maybe my eyes have some problems =))

The template is: ewt_forumdisplay_threaddesc
Reply With Quote
  #27  
Old 01-06-2011, 05:39 PM
KaiStone's Avatar
KaiStone KaiStone is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fly View Post
Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?
About how to make the description show on SHOWTHREAD, I've answer.

About how to display the description editing when you edit a thread, it's a bit complicated, so until now, I have the answer for it.

@ tieuquynhi: Update th?m phần chỉnh Description khi Edit Thread cho tiện nh?

===================================

In "threadadmin_editthread", find:

Code:
				&nbsp;<img id="display_posticon" class="inlineimg" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
			</div>

Add Below:

Code:
			{vb:raw editthreaddesc}

And now creat some new plugins (AdminCP -> Add New Plugin). Choose "Product" of All Plugins: EWT - Thread Description

1. Thread Description - Edit Thread [Template Alteration]
Hook Location: threadmanage_start

Code:
$templater = vB_Template::create('ewt_editpost_threaddesc');
$templater->register('threaddesc', $threaddesc);
$editthreaddesc .= $templater->render();
vB_Template::preRegister('threadadmin_editthread',array('editthreaddesc' => $editthreaddesc));

2. Thread Description: Edit Thread Description Update
Hook Location: threadmanage_update

Code:
$threadman->set('threaddesc', $edit['threaddesc']);

3. Thread Description: Edit Thread Variable Prep
Hook Location: threadmanage_update
Execution Order: 4 (Only needed if you cannot update your description)

Code:
$vbulletin->input->clean_gpc('p', 'threaddesc', TYPE_STR);
$edit['threaddesc'] =& $vbulletin->GPC['threaddesc'];
$edit['threaddesc'] = unhtmlspecialchars($edit['threaddesc']);

4. Thread Description: Variable For Edit Thread
Hook Location: threadmanage_start
Execution Order: 4 (Recommended. To make sure your existing description will be displayed in Text Box)

Code:
$threaddesc = $threadinfo['threaddesc'];

Done.


Finally, please do carefully before asking questions
Reply With Quote
  #28  
Old 01-06-2011, 05:44 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged,looks useful this
Reply With Quote
  #29  
Old 01-06-2011, 06:47 PM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slipkot View Post
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks
Man, I found the solution to your problem!

You have to increase the ''Dimensions of the Threadbit Status Icon''

This option is in your templates stylevars - - -> Threadbit - - -> Threadbit iconsize.

Remember, to put the thumbnail before the thread icon!

I tested this to my forum and it worked.

Try it and it may work for you, too!
Reply With Quote
  #30  
Old 01-08-2011, 06:58 PM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could KaiStone please re-describe the html script alterations using more detailed and more understandable description?

Can anybody else please do that if possible?
______________________________________

I also attached a simple txt file made by me for personal use with all the instructions (html script alterations) to make this mod work.
I hope this does not go against the vBulletin.org forum rules. hope you like it.

If I have mistakes in the english language, or any other mistakes in the instructions given please update the file and I will remove mine.

Regards,
<Mikevet1984>
Attached Files
File Type: (21.4 KB, 16 views)
Reply With Quote
  #31  
Old 01-09-2011, 06:49 AM
KaiStone's Avatar
KaiStone KaiStone is offline
 
Join Date: Sep 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mikevet1984 View Post
Could KaiStone please re-describe the html script alterations using more detailed and more understandable description?

Can anybody else please do that if possible?
______________________________________

I also attached a simple txt file made by me for personal use with all the instructions (html script alterations) to make this mod work.
I hope this does not go against the vBulletin.org forum rules. hope you like it.

If I have mistakes in the english language, or any other mistakes in the instructions given please update the file and I will remove mine.

Regards,
''Mikevet1984''
threadadmin_editthread is a template. Edit it like you edited "editpost", "newthread" and "threadbit".

And in step Add New Plugin, go to AdminCP, choose "Add New Plugin". If you can't find it, choose "Explain All" at the Top of the Left Frame, and search "Add New Plugin" -> Click.

A new page will be displayed in the Right Frame, choose settings like the guide, paste the Code, and Remember choose "Plugin is Active" is "Yes" to make the new plugin works.

If you forgot choose Active the Plugin, go to "Plugin Manager", search for Plugin Name (like Plugin Name in the Guide), click it to Edit, and choose "Yes" in "Plugin is Active" option.
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 01:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05110 seconds
  • Memory Usage 2,367KB
  • 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
  • (13)bbcode_code
  • (14)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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