PDA

View Full Version : User Info Collapsable Postbit in Legacy


Cyricx
08-10-2005, 10:00 PM
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:

Version 1.1.0
Fixes bug with code not working in private messages
Adds instructions for modifying the postbit (horizontal) template as well.

Vizionz
08-11-2005, 11:15 PM
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 /

Gizmo5h1t3
08-12-2005, 12:47 AM
u beat me to it, was gonna ask exactly the same thing...lmao

Cyricx
08-12-2005, 01:04 PM
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.

Steve St.Lauren
08-13-2005, 05:41 AM
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 ;) .

theArchitect
08-14-2005, 01:02 AM
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.

Cyricx
08-15-2005, 11:49 AM
Did you upload the xml into the product manager?

Without the hook in there, it won't save your setting to your cookies.

Gizmo5h1t3
08-15-2005, 02:14 PM
works a treat...nice hack

Rover416
08-15-2005, 04:54 PM
<font color="Lime">*Clicks install</font>

Oblivion Knight
08-21-2005, 03:51 PM
As of yet, I have not been able to get this mod working in PMs so the postbit_legacy edit has an if condition to only display it in showthread or showpost. I'll continue trying to find out how to get it to work in PMs or if anyone else has any ideas, always appreciated :)The fix is actually quite simple..
PMs don't use the $post[postcount] figure, so just create a false one. I used 99..

My button 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>My tbody code:
<tbody id="collapseobj_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]">It seems to work fine for me anyway! :)

wieder
10-09-2005, 03:53 PM
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

Mr Chad
10-09-2005, 04:07 PM
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

nice, i like that.

wieder
10-09-2005, 04:50 PM
nice, i like that.

Thanks. I'll try to set some time aside soonish to clean up the code in postable form (I was just experimenting like crazy so it's rather sloppy right now, heh).

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 $$$.

Vizionz
11-28-2005, 03:48 PM
will this work with the latest version

Cyricx
11-28-2005, 04:07 PM
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.

Vizionz
11-28-2005, 05:03 PM
yeah its all from scratch so i had to do a fresh install anyway :) just wanted to make sure it works

AllenSam
12-04-2005, 06:07 AM
Does it have them expanded by default? If not, how can I make it that way?

chimaira
12-19-2005, 10:36 PM
Looks and works well.. but is there a way where i can change the font/text size of the info in the box?

Xplorer4x4
12-20-2005, 12:53 AM
Looks and works well.. but is there a way where i can change the font/text size of the info in the box?

<div class="smallfont">
I added that right above <if condition="$post['joindate']">$vbphrase[join_date]: $post[joindate] to make it look like the default text.

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.

chimaira
12-20-2005, 02:52 PM
Thanks for info Xplorer

Steve St.Lauren
12-20-2005, 04:22 PM
Does it have them expanded by default? If not, how can I make it that way?

Yes they are expanded by default.

silurius
12-20-2005, 06:54 PM
What would be the best way to use this in the non-legacy version?

zendiver
12-28-2005, 05:10 PM
For those that are looking to have them collapsed as default:

FIND

<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]><tr><td class="alt2">

REPLACE WITH:
<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]; display:none"><tr><td class="alt2">

GuaRRand
01-03-2006, 04:35 PM
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)

Cyricx
01-05-2006, 05:45 PM
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.

GuaRRand
01-06-2006, 03:16 AM
Well..i redid the whole thing, and now it works :D

Must have overlooked something the 1st time.

Thn

fuldon
01-08-2006, 07:12 PM
Nice hack!

Gizmo5h1t3
02-25-2006, 01:18 PM
still using this, got all my postbit info collapsed now.
this is a great hack!!

GuaRRand
03-16-2006, 08:36 PM
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.

GuaRRand
03-22-2006, 06:49 AM
Anyone? :(

Surviver
06-19-2006, 05:22 PM
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

fishhub
11-19-2006, 05:05 AM
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

:)

fishhub
11-30-2006, 06:28 PM
The fix is actually quite simple..
PMs don't use the $post[postcount] figure, so just create a false one. I used 99..

My button 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>My tbody code:
<tbody id="collapseobj_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]">It seems to work fine for me anyway! :)


Ive tried this but still cant work.

Any kind soul to assist?

TIA

Mysticales
12-09-2006, 08:45 AM
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?

fishhub
12-09-2006, 05:29 PM
I am still hoping some kind soul can assist this for us.

TIA

Neutral Singh
12-10-2006, 12:14 PM
I have this plugin installed --> First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706&highlight=postbit_first)

How can show this collapsable postibt in there? :tired:

fishhub
12-11-2006, 02:30 PM
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?


Thanks , but Does this work?

Cyricx
02-07-2007, 08:12 PM
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. :)

Cyricx
02-07-2007, 08:41 PM
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 :)

fishhub
02-08-2007, 03:24 PM
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 :)

great! been awaiting for new release on 3.5.4...:D

Cyricx
02-08-2007, 06:33 PM
new version released :)

fishhub
02-13-2007, 12:42 PM
It works so well once for all! Thanks alot!:)

fishhub
02-26-2007, 03:40 PM
Hi Cyricx
A better suggestion. Instead of collapsing all users additional infor. Can it be done just to collapse on individule additional infor upon clicking the collapse icon.

:)

Cyricx
03-08-2007, 08:47 PM
It certainly can. Just make sure the info you want to be hidden when the box is collapsed is inbetween the two template edits :)

They define the starting and stopping of the box :)

ArchangelX
04-01-2007, 07:57 PM
Great stuff! This really helped me clean up our postbits! Thanks a bunch!

fishhub
06-13-2007, 02:02 PM
It certainly can. Just make sure the info you want to be hidden when the box is collapsed is inbetween the two template edits :)

They define the starting and stopping of the box :)


thanks, yes, i have done that. But everytime a click onto it...all users hidden box is collapsed/uncollapsed at the same time.

I would like to collapse just an individual user's additional info

any kind soul could assist?

Cyricx
06-15-2007, 11:22 AM
I don't think I would want to tackle making it user specific :), perhaps another will want to make a modification to this, but right now, on my priority list, it would be too far down the line to even note :(

brvheart
01-27-2008, 03:26 AM
3.6.x?

goxy63
12-13-2008, 02:35 PM
Just what I need
But will it work with 3.7.4 ???

Anyone knows for similar mod tested with Vb 3.7.4 ???

Cyricx
07-14-2009, 08:43 PM
It's been updated for 3.8.x

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