vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Thread Description (https://vborg.vbsupport.ru/showthread.php?t=127750)

TrucLinh 09-27-2006 10:00 PM

Thread Description
 
DL / Unpacking the attachment:

. UpLoad includes\xml\product-thread_description.xml
. 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: (5 templates)

. Open
threadbit template, Find:
HTML Code:

            <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
. Below add:
HTML Code:

            <if condition="$thread[description] != ''"> <img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$thread[description]</em></span> <br /> </if>

. Open
search_results_postbit template, Find:
HTML Code:

        <div class="smallfont" style="float:$stylevar[right]">
            $vbphrase[views]: <strong>$post[views]</strong>
        </div>

. Below add:
HTML Code:

        <if condition="$post[description] != ''">
        <div class="smallfont">
            $vbphrase[description]:
        <span class="time">$post[description]</span>
        </div>
        </if>


. Open
editpost template, Find:
HTML Code:

        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
        </tr>
        </table>
        <!-- / subject field -->

. Below add:
HTML Code:

        <if condition="$isfirstpost"><!-- description field -->
        <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" title="$vbphrase[optional]" />
        <if condition="$vbulletin->GPC[advanced] OR $vbulletin->GPC[preview]"><input type="hidden" name="desc_adv" value="1" /></if>
        </td>
        </tr>
        </table>
        <!-- / description field --></if>


. Open
threadadmin_editthread template, Find:
HTML Code:

        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
        </tr>
        </table>
        <!-- / subject field -->

. Below add:
HTML Code:

        <!-- description field -->
        <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="$threadinfo[description]" size="50" maxlength="100" tabindex="1" /></td></tr>
        </table>
        <!-- / description field -->


. Open
newthread template, Find:
HTML Code:

        <!-- subject field -->
        <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <tr>
            <td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </tr>
        <tr>
            <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
            <td>&nbsp;&nbsp;</td>
            <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>        </tr>
        </table>
        <!-- / subject field -->

. Below add:
HTML Code:

        <!-- description field -->
        <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <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="40" maxlength="100" tabindex="1" /></td></tr>
        </table>
        <!-- / description field -->

Thats all!

. Enjoy!

Ronak 09-28-2006 04:57 AM

awesome hack...was waiting for this ;)

MrNase 09-28-2006 06:53 AM

How does it differ from this one: https://vborg.vbsupport.ru/showthrea...ht=description ?

Snake 09-28-2006 08:19 AM

Hmm looks like it's all the same to me.

maidos 09-28-2006 09:01 AM

finally a mods for thread descriptions THANK YOU ^^

wonder if its possible to make the character more visible?

TrucLinh 09-28-2006 09:28 AM

You looking inside the Instructions before you g... say ok!

eXtremeTim files *.xml & Instructions Template changes are the same with my ?

Hmm you g... say you're a Coder!

Hmm how does it differ from Invision - ?

///////////////////////////////////////////////////////

I'm new here.

I want to learn, more then to talk!

I don't want to reply some... like this!

Ignore you g...

TrucLinh 09-28-2006 09:47 AM

Quote:

Originally Posted by maidos
finally a mods for thread descriptions THANK YOU ^^

wonder if its possible to make the character more visible?

It's ctrl by the CSS in side the Admin CP "change the css class 2 what [#xxxxxx] you need"
HTML Code:

<span class="time"><em>$thread[description]</em></span>
. Enjoy!

steelerwatch 09-28-2006 12:24 PM

Quote:

<if condition="$thread[description] != ''"> <img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$thread[description]</em></span> <br /> </if>
You should either provide that image or edit the code.

TrucLinh 09-28-2006 12:39 PM

Quote:

Originally Posted by steelerwatch
You should either provide that image or edit the code.

. ThankS!

drdeathuk69 09-28-2006 07:34 PM

I did as what was said and mine comes up ok but whats the image for? and where does it go


All times are GMT. The time now is 07:00 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.01244 seconds
  • Memory Usage 1,777KB
  • 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
  • (11)bbcode_html_printable
  • (3)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