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
  #2  
Old 12-28-2005, 01:16 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

huuuuuu very nice
Reply With Quote
  #3  
Old 12-28-2005, 01:40 PM
eXaulz eXaulz is offline
 
Join Date: Oct 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not really my taste, but it's a great idea.
Reply With Quote
  #4  
Old 12-28-2005, 01:48 PM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol ... one week ago I did it myself which took me bloody hours to get it work
Reply With Quote
  #5  
Old 12-28-2005, 02:06 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like the idea, I'm just wondering if it's possible to make it standard that everything is collapsed, that would be really welcome.
Reply With Quote
  #6  
Old 12-28-2005, 02:39 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn that's nice bro
Reply With Quote
  #7  
Old 12-28-2005, 02:50 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, would remove this:

PHP Code:
<div>iTrader: <b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b></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
Reply With Quote
  #8  
Old 12-28-2005, 03:02 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Corri, the reason I went ahead and left that in there is that there are quite a few people that have them both installed and have asked for it. Also, it gives them an idea of where they can go to replace with what they are using. Just trying to help. I didn't find this to be a big deal as I was just trying to keep my site a bit more organized, but there have been quite a few people that have commented on it and hounding me to post it....so I did.

Cyricx - thank you. Just trying to add more organization to yours.
Reply With Quote
  #9  
Old 12-28-2005, 03:23 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zendiver
Corri, the reason I went ahead and left that in there is that there are quite a few people that have them both installed and have asked for it. Also, it gives them an idea of where they can go to replace with what they are using. Just trying to help. I didn't find this to be a big deal as I was just trying to keep my site a bit more organized, but there have been quite a few people that have commented on it and hounding me to post it....so I did.

Cyricx - thank you. Just trying to add more organization to yours.

A lot of people dont use photopost and some people woudlnt see that code to remove. ect ect.... Good stuff though.
Reply With Quote
  #10  
Old 12-28-2005, 03:34 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still hope someone can tell me how to make it collapsed by default
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 04:39 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.04966 seconds
  • Memory Usage 2,355KB
  • Queries Executed 23 (?)
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
  • (7)bbcode_php
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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