vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - Chief First Post - Every Page 3.7 (https://vborg.vbsupport.ru/showthread.php?t=178331)

Golzarion 05-09-2008 12:44 PM

The first post dose not have the collapse button https://vborg.vbsupport.ru/external/2008/07/39.gif Like here ( vBulletin.org) .How can we add collapse button for the Chife first post ?

ged 05-09-2008 03:06 PM

Can it be limited only for specific forums?

MissKalunji 05-09-2008 03:18 PM

Quote:

Originally Posted by ged (Post 1513839)
Can it be limited only for specific forums?

Yes there's a setting in each forum to turn on or off chief post

mikkitine 05-09-2008 06:46 PM

Quote:

Originally Posted by MissKalunji (Post 1513859)
Yes there's a setting in each forum to turn on or off chief post

If this is the case then this should be a standard vB feature.

*downloads and installs*

MissKalunji 05-09-2008 07:00 PM

who knows maybe next version :)

mikkitine 05-09-2008 07:33 PM

MissKalunji, do you know if there's a mod around that makes the first post collapsible like vBORG's?

MissKalunji 05-09-2008 07:48 PM

well it's just template edit let me test it and let you know

mikkitine 05-09-2008 07:51 PM

Okay, cheers.

MissKalunji 05-09-2008 08:23 PM

Quote:

Originally Posted by mikkitine (Post 1514151)
Okay, cheers.

I'm just going to copy paste what i've done and put on bold what you have to add and you can play around with it. I did it real fast but i've edited my template so much that i'm not even sure anymore how the originals are.

1. It was originally this : <a name="post$post[postid]">
Posted : $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]

But i had to change it to

Post title or else when you collapse it you would only see the date

2. This is the image that shows collapse. You can probably edit the image itself to say collapse like on .org if you want. YOu can move it around to place it exactly where you want

3. Just add what i've put there and that's it.

Play around with it to make it look exactly the way you want. :)

Code:

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tbody> 
<tr>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>               
                        <!-- status icon and date -->
                        <a name="post$post[postid]">
                        $post[title] 
                        <!-- / status icon and date -->                               
                </td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a>
</if>

                        <if condition="$show['inlinemod']">
                                <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
                        </if>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chiefpostbit')"><img id="collapseimg_chiefpostbit" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chiefpostbit].gif" alt="" border="0" /></a>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_chiefpostbit" style="$vbcollapse[collapseobj_chiefpostbit]">
<tr valign="top">


mikkitine 05-09-2008 08:45 PM

I'll try that now. Thanks a lot for this.


All times are GMT. The time now is 03:26 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.01118 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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