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
  #42  
Old 02-05-2006, 06:52 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

stu, if you have other hacks installed, as mentioned in the main post, you have to add yours in place of others that you don't have or in addition to. Just follow the same format by moving your information between the <!-************-> and the closing one.

Quote:
Originally Posted by zendiver
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.)
Reply With Quote
  #43  
Old 02-07-2006, 10:13 AM
argash's Avatar
argash argash is offline
 
Join Date: Mar 2005
Location: Austin
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i get the number of referals to show in the postbit?
Reply With Quote
  #44  
Old 02-09-2006, 12:22 PM
GuaRRand GuaRRand is offline
 
Join Date: Oct 2005
Posts: 337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working for 99%.
Only thing which doesnt go ok yet is that, when i have the default to folded (so no additional info) and i post something, it shows the postbit as collapsed after the post has been submitted.

When i then reload the page, its folded again, as should be.
(see attached image).

So it seems that the post is faster then the folding or something.
It seems that the plugin/code cant fold fast enough before the page is fully loaded or something.

Any idea?
Reply With Quote
  #45  
Old 02-14-2006, 09:11 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xplorer4x4
Zen maybe you can helps me a bit here. I want to exclude a fieldset form showing up is users have not defined two particular custom profile fields from showing. I tried the folowing but then it does not show these options even if they are filled out.:ermm: Where did I go wrong?
PHP Code:
<!-- START ZENDIVER FAVORITES -->
<if 
condition="$show['field10'] AND $show['field11']==1">
        <
fieldset class="fieldset">
            <
legend>$post[musername]'s Favorite
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="1">
                <div>
                    <if condition="$post['
field10']">Fav Promotion: $post[field10]
                    <if condition="$post['
field11']">Fav Wrestler(s): $post[field11]
                </div>
                </table>
        </fieldset>
</if>
<!-- / END ZENDIVER FAVORITE LEGEND --> 
Bump again...
Reply With Quote
  #46  
Old 02-14-2006, 11:45 AM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey buddy, sorry for the silence. Let me work up a fix for ya...I will get back to you today. I have a busy one here at work, but I will hook you up. Again sorry....but you knew where to reach me
Reply With Quote
  #47  
Old 02-14-2006, 12:54 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

X, here is your fix buddy. Sorry I didn't get back to your sooner.

PHP Code:
 <!-- START ZENDIVER FAVORITES -->
<if 
condition="$post['field10'] or $post['field11']">
        <
fieldset class="fieldset">
            <
legend>$post[musername]'s Favorites
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="1">
                    <if condition="$post['
field10']"><div>Fav Promotion: $post[field10]</div></if>
                    <if condition="$post['
field11']"><div>Fav Wrestler(s): $post[field11]</div></if>
                </table>
        </fieldset>
</if>
<!-- / END ZENDIVER FAVORITES LEGEND --> 
Reply With Quote
  #48  
Old 03-02-2006, 01:47 AM
bugman bugman is offline
 
Join Date: Feb 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I was wondering.. I have PhotoPost Pro too, how can we show the user's latest photo from their gallery, maybe instead of the # of photos? like under the avatar?

and then maybe a text link under that.

also, is the link to their gallery in your mod based on whether or not they have any photos ?
Reply With Quote
  #49  
Old 03-15-2006, 10:06 AM
GuaRRand GuaRRand is offline
 
Join Date: Oct 2005
Posts: 337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any word on my prob? (see 4 posts above)
Reply With Quote
  #50  
Old 03-16-2006, 06:07 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GuaRRand, that has something to do with the collapsable information. You may want to ask Cyricx's over in this thread: User Info Collapsable Postbit in Legacy
Reply With Quote
  #51  
Old 08-03-2006, 04:50 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i do this for regular postbit in 3.5.4
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 02:53 AM.


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.07085 seconds
  • Memory Usage 2,372KB
  • 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
  • (4)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