The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User info collapsable table on left side of postbit_legacy Details »» | |||||||||||||||||||||||||||
User info collapsable table on left side of postbit_legacy
Developer Last Online: Mar 2013
******* User info collapse on postbit_legacy v.9 **********
I had a number of users complaining about how much "white space" there was on posts where the person had only entered 1 line of text because of the size of the user information below the username on the left hand side. This hack puts the user information (online/offline status, location, post count, join date, etc) in the postbit_legacy template (only works if you are using the legacy postbit) into a collapsable table like many of the other collapsable tables in vB3. Users can collapse/expand this information at will while viewing a thread and the status is saved in the cookie. This is the very first javascript code I've ever written so go easy on me . Please click on install if you use this hack! Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
|
#23
|
|||
|
|||
I think I sent you the backups and not the modified files. I will check and resend them
|
#24
|
|||
|
|||
Resolved and working well, thanks.
*clicks installed* |
#25
|
|||
|
|||
I am having a slight problem where I'm supposed to post the following code in my postbit:
Code:
<table class="tborder" cellspacing="1" border="0" width="100%"><tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" 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>$post[onlinestatus] </td> </tr> </tbody> <tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]"><tr><td class="alt2"> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> <if condition="$show['avatar']"> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> <div class="smallfont"> <if condition="$post['joindate']">$vbphrase[join_date]: $post[joindate]<br /></if> <if condition="$post['field2']">$vbphrase[location_perm]: $post[field2]<br /></if> <if condition="$post['age']">$vbphrase[age]: $post[age]<br /></if> $vbphrase[posts]: $post[posts] <if condition="$show['reputation']"> <if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if> $post[reputationdisplay] </if><br /> <if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon]"> $post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]<br /></if> </div></td></tr></tbody></table> Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> <if condition="$post[IsOnline] == true"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> <else /> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="filter:alpha(opacity=30);-moz-opacity:0.3;opacity: 0.3;" /></a> </if> <div class="smallfont"> <br /> <if condition="$post[starsign]"> <a href="#" onclick="window.open('zodiac.php?do=$post[starsign]&focus=1','horroscope','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=450,height=350'); return false;"> <img src="images/starsign/$post[starsign].gif" alt="weekly horoscope for $post[starsign]" border="0"></a> </if> <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> <div> $vbphrase[posts]: $post[posts] </div> <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if> <!-- user forum style --> <div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div> <!-- / user forum style --> <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> </div> |
#26
|
|||
|
|||
Got this one installed, works good!
Questions: How can I make the title / rank visible? It seems to hide it. Also, how can I get rid of the border around the table? I tried sniffing around the code for the border width code, but everything was set to zero! Help me! Please! :nervous: |
#27
|
|||
|
|||
Nice mod. Friendly for those who don't like postbit clutter, but also allows a lot for those info hounds.
DJDarknez: If you haven't found a workaround yet: just add the table code below the title/rank (inbetween the divs), then it won't hide them. And change this in clientscript/vbulletin_global.js (there's 2 of these) from thead|tcat to your new CSS class names for a different thead and tcat for the postbit... PHP Code:
Added: you can also change the table class from tborder to something else to customize the border (easier). Chris |
#28
|
||||
|
||||
How hard is it to change this so only some things collapse?
|
#29
|
||||
|
||||
Quote:
|
#30
|
|||
|
|||
edit......
Officially uninstalled. Followed instructions to a T, but gave me, and my users, this message: Warning: Cannot modify header information - headers already sent by (output started at /home/djd/public_html/forums/includes/functions_showthread.php:673) in /includes/functions.php on line 2946 whenever trying to view a thread. |
#31
|
||||
|
||||
Hello Steven, thanks for this hack
a question , in your installation, kept silent asks to replace a complete part of text, regrettably, I have to modify my postbit, can you put, just change has to make in the postbit Please ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|