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
  #12  
Old 02-13-2007, 11:50 AM
fishhub fishhub is offline
 
Join Date: Aug 2006
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job!
Reply With Quote
  #13  
Old 02-13-2007, 01:33 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TTG View Post
Works well in IE but in Firefox version 2 it doesn't work !?
Quote:
Originally Posted by Smoothie View Post
Works fine for me with FF 2.
TTG does firefox still use plugins? If so, please try to disable some of them and determine if one is causing the issue. As smoothie is not experiencing any errors.

Quote:
Originally Posted by yingzhou View Post
Can i use this mod to hide something else not only the Addition Info? I have installed the Ishop Mod on my forum then I want to hide all the Iventory in this postbit. Someone have alot of items to show.
Yes and no.

Yes you can apply the code to collapse and expand in more then one location. (though you'll need to change some of the template code after userinfo_) the issue you'll have those is that collapsing the additional info, will also collapse the ishop inventory and expanding it will expand all.

Now you could add the inventory into the same table as the additional info. And then collapsing the additional info will hide the inventory as well. That would be the better of the two options. Though I donot use ishop so I'm unfamiliar with the layout.
Reply With Quote
  #14  
Old 02-14-2007, 11:41 PM
yingzhou's Avatar
yingzhou yingzhou is offline
 
Join Date: Oct 2006
Location: Ho Chi Minh
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx View Post
Yes and no.

Yes you can apply the code to collapse and expand in more then one location. (though you'll need to change some of the template code after userinfo_) the issue you'll have those is that collapsing the additional info, will also collapse the ishop inventory and expanding it will expand all.

Now you could add the inventory into the same table as the additional info. And then collapsing the additional info will hide the inventory as well. That would be the better of the two options. Though I donot use ishop so I'm unfamiliar with the layout.
I did it. Change some code then now I can collapse the Ishop inventory. Thank you very much.:up: :up: :up: :up:
You can see it in my forum. Link in my signature.
Reply With Quote
  #15  
Old 02-22-2007, 10:12 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to save you the queries on the pages? til somoeone actually presses it?
Reply With Quote
  #16  
Old 02-23-2007, 11:32 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to clarify - This mod itself does not add any queries

But to answer MissKalunji's question about saving the queries that vbulletin does for the user's info...

Hypothetically you could do it using ajax. I don't know enough about ajax to attempt to code something like that yet. Stress yet Ajax is on my list of code structures to study

Without using some ajax type code that would run a query without refreshing the page, there would be no way to save the queries without forcing the user to refresh the entire page when uncollapsing a user's info.
Reply With Quote
  #17  
Old 02-23-2007, 12:20 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, thanks for sharing!

I'd love to see something like this for signatures!

Make it so that it wasn't global (ie: let users collapse some sigs but not all sigs) and it'd be awesome...
Reply With Quote
  #18  
Old 02-23-2007, 03:39 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx View Post
Just to clarify - This mod itself does not add any queries

But to answer MissKalunji's question about saving the queries that vbulletin does for the user's info...

Hypothetically you could do it using ajax. I don't know enough about ajax to attempt to code something like that yet. Stress yet Ajax is on my list of code structures to study

Without using some ajax type code that would run a query without refreshing the page, there would be no way to save the queries without forcing the user to refresh the entire page when uncollapsing a user's info.
i see i was more thinking on a way to put all these info into a diff template that would only be used when you click the "uncollapse" icon...wouldnt that be a way to save these queries?

not sure if you get what im saying
Reply With Quote
  #19  
Old 02-23-2007, 07:00 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand what you mean

Unfortunately, in order to fill out the information on that template, you'd have to query the database.

You can do that one of three ways

1) query the page as it first loads (like it does now)
2) refresh the page and requery (possible, but would cause some stall as the page reloads)
3) use ajax to query and refresh that section of the page without refreshing the whole page (optimal)

That is a great idea that you have and one I will definately try to implement in the future. I just don't know enough yet about AJAX to do it

But yes, using ajax, everything would be stuffed into a separate template, and when a user uncollapses it, it would run the queries and load the template.
Reply With Quote
  #20  
Old 02-23-2007, 07:20 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok cool wasnt sure if that was possible thanks
Reply With Quote
  #21  
Old 02-23-2007, 08:27 PM
dai-kun dai-kun is offline
 
Join Date: Jul 2005
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot, I also used this along with the iShop which works great. Also, is it possible to make it so that when you expand it, only the one you selected is expanded rather than everyone's else. Thanks!
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 05:27 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.07080 seconds
  • Memory Usage 2,314KB
  • 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
  • (5)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