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

Reply
 
Thread Tools
Collapse Signatures and Avatars in Posts Details »»
Collapse Signatures and Avatars in Posts
Version: 1.00, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-22-2005 Last Update: Never Installs: 12
Uses Plugins Template Edits
Code Changes  
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 07-13-2005, 04:58 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-13-2005, 11:40 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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:
    Code:
    $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.
    Code:
    $nested_vbcollapse_user_sig = "sig_userid_";
    $nested_vbcollapse_user_avt = "avt_userid_";
Reply With Quote
  #4  
Old 07-13-2005, 11:54 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by calorie
@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:
    Code:
    $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.
    Code:
    $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.
Reply With Quote
  #5  
Old 05-20-2006, 02:06 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-12-2006, 06:36 PM
MAK-upl MAK-upl is offline
 
Join Date: Feb 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will it work on 3.6.x ?
Reply With Quote
  #7  
Old 01-18-2007, 02:08 AM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 01-28-2007, 03:27 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make the signature collapsed by default.. and then your cookies remember the signatures that you've expanded??
Reply With Quote
  #9  
Old 06-16-2008, 11:41 PM
PinchD PinchD is offline
 
Join Date: Nov 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 10-19-2008, 03:01 AM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PinchD View Post
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.
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 01:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05110 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete