PDA

View Full Version : Collapse Signatures and Avatars in Posts


calorie
23 Jun 2005, 06:20
Users can go to their User CP and choose to show or hide all signatures and/or avatars, but how about on a per post basis? That's where this mod comes into play. It allows users to collapse signatures and/or avatars in the posts themselves, and upon refresh, the user's most recent selections are remembered. This mod works for those users who allow javascript and cookies. Check out the screenshots.

screenshot1: Show signature and Show avatar
screenshot2: Hide signature and Show avatar
screenshot3: Show signature and Hide avatar
screenshot4: Hide signature and Hide avatar

theArchitect
13 Jul 2005, 05:58
Is it possible to have this work on a global, show/hide avatars policy. At the moment I have to collapse each avatar I don't want, but I would love to be able to turn all on or all off.

calorie
13 Jul 2005, 12:40
@theArchitect: To show/hide all signatures and/or avatars...

User CP > Edit Options > Thread Display Options > and uncheck Show Signatures & Show Avatars

Alternatively, and untested, but you could try the following instead. Find the following in step one:

$nested_vbcollapse_user_sig = "sig_userid_".$post['userid']."_";
$nested_vbcollapse_user_avt = "avt_userid_".$post['userid']."_";

And replace with the following, and then repeat step four.

$nested_vbcollapse_user_sig = "sig_userid_";
$nested_vbcollapse_user_avt = "avt_userid_";

theArchitect
13 Jul 2005, 12:54
@theArchitect: To show/hide all signatures and/or avatars...

User CP > Edit Options > Thread Display Options > and uncheck Show Signatures & Show Avatars

Alternatively, and untested, but you could try the following instead. Find the following in step one:

$nested_vbcollapse_user_sig = "sig_userid_".$post['userid']."_";
$nested_vbcollapse_user_avt = "avt_userid_".$post['userid']."_";

And replace with the following, and then repeat step four.

$nested_vbcollapse_user_sig = "sig_userid_";
$nested_vbcollapse_user_avt = "avt_userid_";


Cool, I will give it a go.

Basically I am not interested in removing avatars etc. but I wanted to use your hack for an alternate purpose. The user profile can get very large, and on my old board my users had the option of minimising the profile in the postbit.

This original hack doesn't work in 3.5.0 but yours was similar so I was intending to alter its use and achieve the same result.

glorify
20 May 2006, 15:06
I am only using the sig minimize and it works great :) Avatar collapse spacing is too ugly on postbit.

Also, it looks better if you use unobtrusive collapse buttons too.

MAK-upl
12 Dec 2006, 19:36
will it work on 3.6.x ?

glorify
18 Jan 2007, 03:08
Running 3.6.4 and it works like a dream still :)

I can't tell you how much I CAN'T live without this one.

Only use it for sigs, and float the button on the left to collapse tho.

TheMilkCarton
28 Jan 2007, 04:27
Is there a way to make the signature collapsed by default.. and then your cookies remember the signatures that you've expanded??

PinchD
17 Jun 2008, 00:41
does this work on 3.7 forums?

if not are there any plans to make something similar that will work? this seems like a useful hack

glorify
19 Oct 2008, 04:01
does this work on 3.7 forums?

if not are there any plans to make something similar that will work? this seems like a useful hack

Yep. Sure does. Check the way I did it. I moved the selectables to the drop down ;)

The otions in the drop down only show if the user has a sig or an avatar showing.