Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Collapsable Postbit Info Details »»
User Collapsable Postbit Info
Version: 1.1.0, by Cyricx Cyricx is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 02-07-2007 Last Update: Never Installs: 29
Uses Plugins Template Edits
Code Changes  
No support by the author.

This hack was originally released by Steve St.Lauren for vb3.0.x in this thread -


https://vborg.vbsupport.ru/showthread.php?t=68043

This is a port of that hack and ALL credit goes to Steve for this modification.

Basically, what this hack does is it takes all the extra user info like join date, location, age, posts etc and slaps them into a table that can be collapsed or expanded. If you collapse it, it'll store that setting in your cookies and all user infos will be collapsed fro then on til you expand it again

Your selection WILL carry over to private messages as well

Please click da instally thinga magigy

O and you won't have to clear any cookies for this to work, or for it to remember your settings.

For the vbulletin 3.5 version of this mod Click here!

Things To Do:
1. Edit /clientscript/vbulletin_global.js (1 modification)
2. Import new product xml
3. Edit postbit_legacy template
4. Edit postbit template


Updates:
  • Version 1.1.0
    • Fixed code to enable collapse in private messages
    • added functionality to be able to apply modification to both postbit and postbit_legacy templates
  • Version 1.0.0
    • Initial release

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 02-26-2007, 11:57 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm uncertain if that can be done Dai-kun.

I suspect that since they are all tied to the same cookie, that it would have to track them all individually, which would make for a significant amount of cookie info. But then I could be completely wrong.

I'm rather ignorant when it comes to how info is saved in the cookies still. That's next on my learning curve.

Personally though, I can't see a reason why I would want to code this to open each individually.

The purpose of the hack is to divide your user's into those that want to see all the extra info, and those that do not. While at the same time making it convienant for them to switch back and forth

I guess it could be written to always be closed regardless, and not save to your cookies. And that user's have to open it to view the info. But I think you would end up irratating the user's that want to see that info all the time.

I'll likely take a look at this down the line and see if there is a way to do that if there is enough interest in that modification, but right now, I won't give an eta on that due to it's priority on my current to-do list
Reply With Quote
  #23  
Old 07-25-2007, 12:01 PM
tekguru tekguru is offline
 
Join Date: May 2007
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris is this compatable with 3.6.7PL1?
Reply With Quote
  #24  
Old 07-25-2007, 08:37 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually haven't tested it heh

The site I currently manage, I haven't added it too yet as the email integration stuff is a priority. It's on my todo list.

If you'd like to test it out, rock on

If not, when my list finally works down enough I can take a peek at it, then I will

As long as /clientscript/vbulletin_global.js hasn't had a serious rewrite, there is no reason why this shouldn't be able to work just fine in the newest version
Reply With Quote
  #25  
Old 07-30-2007, 08:58 AM
pisliq pisliq is offline
 
Join Date: Jun 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very thanks
Reply With Quote
  #26  
Old 01-16-2008, 08:38 AM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would love to use this hack to hide a bunch of stuff on the right side of my postbits, but it's not the same stuff that's in the hack, since I've shifted everything around and added the yet-another-award-system on that side. Is there any chance I can still use this to collapse it all if I shove everything in between these codes?

(Normally I'd just try it out, but this involves database changes, and I don't want to do that unless I have to, since it scares the crap out of me.)

Code:
<!-- ##### START MOD - Collapsable Postbit ##### -->
<table class="tborder" cellspacing="1" border="0" width="100%">
<tbody>
<tr>
		<td class="thead" nowrap="nowrap">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapseuserinfo('postbit_legacy_userinfo<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">$post[postcount]<else />99</if>')"><img id="collapseimg_postbit_legacy_userinfo<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">$post[postcount]<else />99</if>"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<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">$post[postcount]<else />99</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]"><tr><td class="alt2" nowrap="nowrap">
<!-- ##### END MOD - Collapsable Postbit ##### -->
(All the stuff I want collapsed...)

Code:
<!-- ##### START MOD - Collapsable Postbit ##### -->
</td></tr></tbody></table>
<!-- ##### END MOD - Collapsable Postbit ##### -->
Reply With Quote
  #27  
Old 01-17-2008, 08:48 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That should absolutely work!

The only thing it could potentially do bad to your site is that it would mess up the tables and make the page look all screwy if you put it in the wrong spots

It would not stop any queries or code from running.

Make a backup of your postbit file. Like cut it all and paste it to notepad and save it.

Then mess around.

As long as you make a backup, you can't really go wrong in fiddling around with the postbit templates.
Reply With Quote
  #28  
Old 01-18-2008, 03:30 AM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much for the help, Cyricx! I really appreciate it!

----------------------------

The boxes worked out beautifully. The collapse part went haywire. Nothing would uncollapse.

I put the original glabal_js back, but it just now occurred to me - could that be because I edited the phrase down to "Info" instead of the original "Additional info"? (Is that a really stupid question? Probably. I can't actually see why that would matter, but what do I know.)
Reply With Quote
  #29  
Old 01-25-2008, 06:25 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It depends, did you edit the phrase in the phrase manager?

Or did you change the html code? If you changed too much in the code it could totally have that effect if you deleted an extra < or >
Reply With Quote
  #30  
Old 06-19-2008, 06:18 PM
Karri's Avatar
Karri Karri is offline
 
Join Date: Feb 2002
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance this can be updated to work with 3.7?
Reply With Quote
  #31  
Old 11-09-2008, 09:08 AM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I'd like to give this another shot with 3.7 as well. I see they've got it working on the Fuse, so it must be possible, but when I tried to download it I got a 'version not compatible' message.
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:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04676 seconds
  • Memory Usage 2,309KB
  • Queries Executed 26 (?)
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)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