![]() |
User Info Collapsable Postbit in Legacy
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. I did nothing more then make one of the edits a plugin and add a phrase. 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. 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 Changes:
|
this is pretty cool :) now how can you add extra fileds to it though? like say i want to ad alot of the profile fields to it /
|
u beat me to it, was gonna ask exactly the same thing...lmao
|
Any extra profile fields or entries you do into the signature that is under location and before the msn icons will be inside this :)
Just put the code in between the two edits :) To summarize, the first postbit_legacy edit is the start of the box. The last edit is the end of the box. Everything between there is in the collapse. |
Thanks for porting this over Chris. When I convert to 3.5 in a few months (assuming it's stable) I'll be clicking install ;) .
|
Am I doing something wrong, or should this not be global.
i.e. when I collapse the postbit in one thread and then go to another thread the postbit is no longer collapsed. |
Did you upload the xml into the product manager?
Without the hook in there, it won't save your setting to your cookies. |
works a treat...nice hack
|
<font color="Lime">*Clicks install</font>
|
Quote:
PMs don't use the $post[postcount] figure, so just create a false one. I used 99.. My button code: Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapseuserinfo('postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>')"><img id="collapseimg_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_postbit_legacy_userinfo].gif" alt="" border="0" /></a> Code:
<tbody id="collapseobj_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]"> |
I took the basic idea and crunched it down as far as I possibly could to allow readers to get an extremely small layout if they tell it to collapse everything.
Example usage: http://forums.metalparachutes.com/showthread.php?t=9 |
Quote:
|
Quote:
And naturally the page isn't being promoted yet for public use, thus the lack of activity (and random broken things as I experiment since I'm not bothering with a test style while the forum isn't ready for use). Trying to get as many kinks worked out and all the custom changes I want in before trying to build up the community. I'm loving the crap out of vB 3.5 though. Very worth the $$$. |
will this work with the latest version
|
I have it installed on my board and running on 3.5.1 just fine. You'll have to redo the code edit after upgrading obviously.
I haven't had a chance to test Oblivions code though but hope to do that very soon. Then I'll send out an email with an upgrade. |
yeah its all from scratch so i had to do a fresh install anyway :) just wanted to make sure it works
|
Does it have them expanded by default? If not, how can I make it that way?
|
Looks and works well.. but is there a way where i can change the font/text size of the info in the box?
|
Quote:
PHP Code:
PHP Code:
I was also thinking maybe the javascript could be put in it's own .js file or a duplicate .JS file of global.js elimnating a code mod. |
Thanks for info Xplorer
|
Quote:
|
What would be the best way to use this in the non-legacy version?
|
For those that are looking to have them collapsed as default:
FIND PHP Code:
PHP Code:
|
It doesnt actually work for me.
It doesnt fold in.. If i click on the minimize button, it goes to the first post of the topic...nothing else. I have some other addons in my postbit_legacy...does that have anything to do with it? (the box goes nicely around everything, so it seems to grab all addons) |
Did you do the file edit as well?
Double check that, and worst case, do a ctrl-f5 (hard refresh). Sounds like it's not loading the javascript. |
Well..i redid the whole thing, and now it works :D
Must have overlooked something the 1st time. Thn |
Nice hack!
|
still using this, got all my postbit info collapsed now.
this is a great hack!! |
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. |
Anyone? :(
|
Thank you for this Hack :)
I have a question to this Hack: How can I use it in PM's too ? I've edited the template, but then you cannot Collaps it. Thank you ver ymuch ! mfg Surviver |
This is a very good function.
I would like to alter some font size such as the Additional Info. How do I make the Additional Info frame with smaller font size? TIA :) |
Quote:
Ive tried this but still cant work. Any kind soul to assist? TIA |
Hey I am having the same issue he is.. the one where is you use "Quick Reply" after it posts the postbit will show all the additional info regardless if you had it hidden. My guess is this line:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'"> Which when you use quick reply, I think its called showthread_quickreply which has nothing linked to it. Thoughts? |
I am still hoping some kind soul can assist this for us.
TIA |
I have this plugin installed --> First post on every page of thread.
How can show this collapsable postibt in there? :tired: |
Quote:
Thanks , but Does this work? |
Boo!
I'm going to start reviewing this hack as I prepare to install it on a few 3.6 sites I am managing. I'll look into how to add it in Private messages as well. :) |
Good news, with some of the code from Oblivion's post above, I was able to get this working in Private messages :)
Workin on applying it to signatures and mods for both the vertical and horizontal postbit before I release it :) Should be released tomorrow :) |
Quote:
|
All times are GMT. The time now is 02:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|