Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User info collapsable table on left side of postbit_legacy Details »»
User info collapsable table on left side of postbit_legacy
Version: 1.00, by Steve St.Lauren Steve St.Lauren is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.0.8 Rating:
Released: 08-05-2004 Last Update: Never Installs: 19
 
No support by the author.

******* 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

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

Comments
  #22  
Old 01-15-2005, 03:23 PM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JD210
Email sent, and thanks.
I sent your files back to you. Looks like none of the modifications were made to the two .php files.
Reply With Quote
  #23  
Old 01-15-2005, 05:06 PM
JD210 JD210 is offline
 
Join Date: Dec 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I sent you the backups and not the modified files. I will check and resend them
Reply With Quote
  #24  
Old 01-18-2005, 12:21 AM
JD210 JD210 is offline
 
Join Date: Dec 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Resolved and working well, thanks.

*clicks installed*
Reply With Quote
  #25  
Old 03-16-2005, 03:14 AM
Acid_Reflux Acid_Reflux is offline
 
Join Date: Feb 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">
					&nbsp;<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>
My problem is that my postbit code that I'm supposed to replace looks like this instead of the default code:

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">
					  &nbsp;<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 />
					  &nbsp;<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">
				&nbsp;<br />
<if condition="$post[starsign]">
<a href="#" onclick="window.open('zodiac.php?do=$post[starsign]&amp;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>
I've tried a few times to incorporate this hack with my existing code as I do not want to get rid of the profile options I've installed; however, none of my attempts have worked. That is not surprising considering I'm a Class A Newbie when it comes to this kind of thing and I'm only able to install vBulletin hacks because I'm capable of reading directions. I was wondering if someone would be kind enough to let me know how I can install this hack with my existing code?
Reply With Quote
  #26  
Old 04-04-2005, 04:30 AM
DJDarknez DJDarknez is offline
 
Join Date: Feb 2005
Location: Chicago
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #27  
Old 04-15-2005, 01:02 AM
ChrisLM2001 ChrisLM2001 is offline
 
Join Date: May 2003
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
if (cel)
            {
                
cel_re = new RegExp("^(thead|tcat)(_collapsed)$");
                
cel.className cel.className.replace(cel_re'$1');
            } 
Also set the table around 20px larger than the divs inside it. 100% will cause it to shrink and expand to the contents. That way when it opens and closes it won't cause that width expand/shrink movement. Keeps it tidier.

Added: you can also change the table class from tborder to something else to customize the border (easier).

Chris
Reply With Quote
  #28  
Old 04-25-2005, 04:57 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How hard is it to change this so only some things collapse?
Reply With Quote
  #29  
Old 04-25-2005, 08:05 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by venomx
How hard is it to change this so only some things collapse?
shouldt be that hard... whatever is in the tags <tbody> are the things that will collapse...
Reply With Quote
  #30  
Old 04-26-2005, 05:07 AM
DJDarknez DJDarknez is offline
 
Join Date: Feb 2005
Location: Chicago
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 05-02-2005, 12:23 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
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 08:48 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.07162 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_code
  • (1)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