Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
A Well Organized Postbit_Legacy Details »»
A Well Organized Postbit_Legacy
Version: 1.00, by zendiver zendiver is offline
Developer Last Online: Aug 2010 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-27-2005 Last Update: 12-27-2005 Installs: 39
Template Edits
 
No support by the author.

I keep getting PM's asking about my postbit_legacy template and everyone keeps telling me I should post it. So here it is.

First of all, you will need to install Cyricx's User Info Collapsable Postbit in Legacy. Once you have installed the product and get to the step of editing the postbit_legacy template, this is where this one would take over.

(NOTE: I have NOT put this to use in the postbit template, ONLY the postbit_legacy template. If you try it in your postbit, then let someone know that it works)

(ALSO NOTE: I have PhotoPost Pro and Jason's iTrader installed and shown in my users information. If you don't have them installed and have something else you want to show in your members information, just replace that bit of information or add yours to the area that you want it to show up in. Everyones postbit information varies, so adjust your information in the appropriate categories outlined below. See attached screenshots of what mine looks like.)

This is installed on ver 3.5.2.

In your postbit_legacy template:

FIND:
PHP Code:
            <if condition="$show['avatar']">
                <
div class="smallfont">
                    &
nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </
div>
            </if> 
PUT THIS BELOW IT: (you will see why in a second)
PHP Code:
<!-- ******************************************** --> 
NOW FIND:
PHP Code:
</td>
    <if 
condition="$show['moderated']">
    <
td class="alt2" id="td_post_$post[postid]">
    <else />
    <
td class="alt1" id="td_post_$post[postid]">
    </if> 
ADD ABOVE IT:
PHP Code:
<!-- ******************************************** --> 
Now replace everything between these:
PHP Code:
<!-- ******************************************** --> 
WITH THIS:
PHP Code:

            
<div class="smallfont">
                &
nbsp;<br />
                <!-- 
START COLLAPSABLE POSTBIT BEGINNING-->
<if 
condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">
<
table class="tborder" cellspacing="1" border="0" width="100%">
<
tbody>
<
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#" onclick="return toggle_collapseuserinfo('postbit_legacy_userinfo$post[postcount]')"><img id="collapseimg_postbit_legacy_userinfo$post[postcount]src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_postbit_legacy_userinfo].gif" alt="" border="0" /></a>$vbphrase[collapse_postbit]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]style="$vbcollapse[collapseobj_postbit_legacy_userinfo]"><tr><td class="alt2">
</if>
<!-- / 
END COLLAPSABLE POSTBIT BEGINNING-->

<!-- 
START PROFILE LEGEND -->
        <
fieldset class="fieldset">
            <
legend>$post[musername]'s Profile</legend>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="1">
                    <if condition="$post['
joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                    <if condition="$post['
field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                </div>
                </table>
        </fieldset>
<!-- / END PROFILE LEGEND -->

<!-- START STATS LEGEND -->
        <fieldset class="fieldset">
            <legend>$post[musername]'
s Stats</legend>
                <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="1">
                <if 
condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                <
div>
                    
$vbphrase[posts]: $post[posts]
                </
div>
                <if 
condition="$post['userid']">
                <
div>iTrader: <b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b></div></if>
                <if 
condition="$show['reputation']">
                <
div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>Reputation$post[reputationdisplay]</div></if>
                <if 
condition="$post['photos']"><div>Photos: <strong>$post[photos]</strong> <a href="$vbpoptions[bbdir]/gallery/showgallery.php?cat=500&ppuser=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="Users Photo Gallery" border="0" /></a></if>
                </
div>
                </
table>
        </
fieldset>
<!-- / 
END STATS LEGEND -->

<!-- 
START INSTANT MESSAGING LEGEND -->
                <if 
condition="$show['hasimicons']">
        <
fieldset class="fieldset">
            <
legend>$post[musername]'s Messaging</legend>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="1">
                    <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                </div>
                </table>
        </fieldset>
                </if>
<!-- / END INSTANT MESSAGING LEGEND -->
            </div>
<!-- START COLLAPSABLE POSTBIT ENDING -->
        <if condition="THIS_SCRIPT=='
showthread' OR THIS_SCRIPT=='showpost'">
</td></tr></tbody></table>
</if>
<!-- / END COLLAPSABLE POSTBIT ENDING --> 

Show Your Support

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

Comments
  #12  
Old 12-28-2005, 03:49 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Just so you know, your instructions are being saved in a PHP file and this may confuse people. They may think they need to upload that file in order for this to work. I would suggest making that a txt file or an html file.
Reply With Quote
  #13  
Old 12-28-2005, 04:00 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
Hello,

Just so you know, your instructions are being saved in a PHP file and this may confuse people. They may think they need to upload that file in order for this to work. I would suggest making that a txt file or an html file.
Good point. File has been exchanged to a .txt file.
Reply With Quote
  #14  
Old 12-28-2005, 04:02 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yorixz
I still hope someone can tell me how to make it collapsed by default
Yorixz, I will look into it and talk with Cyricx to see what he thinks, but I don't want to go and start modifying his hack. You may get better luck asking this in his forum. The link is posted in the original post.
Reply With Quote
  #15  
Old 12-28-2005, 04:24 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks. I'll do so tomorrow.
Reply With Quote
  #16  
Old 12-28-2005, 05:12 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK Yorixz, here ya go:

For those that are looking to have them collapsed as their default:

FIND
PHP Code:
<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]style="$vbcollapse[collapseobj_postbit_legacy_userinfo]><tr><td class="alt2"> 
REPLACE WITH:
PHP Code:
<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]style="$vbcollapse[collapseobj_postbit_legacy_userinfo]; display:none"><tr><td class="alt2"
Reply With Quote
  #17  
Old 12-28-2005, 05:29 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love you, thanks!
Reply With Quote
  #18  
Old 12-28-2005, 06:03 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice stuff dude, thank you for sharing
Reply With Quote
  #19  
Old 12-28-2005, 06:10 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May I suggest $post[username] isntead of $post[musername]? There won't be a mark up.
Reply With Quote
  #20  
Old 12-28-2005, 11:55 PM
ShinJi87 ShinJi87 is offline
 
Join Date: Dec 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice ! Thanks
Reply With Quote
  #21  
Old 12-29-2005, 01:42 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Zendiver.
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 09:24 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.04931 seconds
  • Memory Usage 2,365KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete