vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Postbit Collapser/Arranger (https://vborg.vbsupport.ru/showthread.php?t=290770)

nhawk 11-14-2012 11:00 PM

Postbit Collapser/Arranger
 
THIS ADD-ON IS NO LONGER AVAILABLE AND IS NOT SUPPORTED

This add-on makes the text portion of postbits collapsable and allows the selection and arranging of what profile fields will be displayed in postbits.


Features
  • Select which profile fields to display in postbits.
  • Select which standard vB fields to display in postbits.
  • Set the order that the fields will be displayed in.
  • Detects new profile fields and adds them to the postbit order display for selection.
  • Detects deleted profile fields and removes them from the postbit order display.
  • Does not add any database queries to the vB frontend.
  • Adds Local Date and Local Time options to the available fields.
  • Detects and adds Photopost Gallery option to the available fields.
  • Does not affect mods that add to the proper postbit hooks, but those items can not have their order changed.
  • Support for other mods to add their postbits to this add-on so the order they are displayed in can be changed.
  • After editing a post or posting a quick reply, the entire postbit for that post is shown to the member that edited/posted the post.


NOTE: This add-on contains the Local Date/Time code by the late Rob Hindal (Boofo). If a large number of people think this should be removed from this mod I will remove it.

This add-on will not work with any mod that forces the use of the standard vB postbit_legacy template, or with any mod that requires manual editing of the postbit templates.

Known Mods that do this:
  1. [DBTech] Advanced Post Thanks Like v3.0.3 [Lite] (Due to double Blog This Post link)
  2. Info box on Postbit (may work with edits to that mod)
  3. Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO : (Due to manual edits)

A live demo of this can be seen on my site: http://snogssite.com


* INSTALLATION *
-----------------------
1) Upload the contents of the 'upload' folder to your forum's root.
(If your forum's location is http://www.example.com/forums/, the root is /forums/)

2) Import the product XML file (product-pbcollapse.xml) into the Product Manager in AdminCP.

3) Go to ACP->Postbit Collapser->Postbit Display Order and set the fields you want displayed.
The Postbit Collapser will be in the Thread & Posts area of the ACP Menu
Be sure to save the options even if you don't make any changes.
4) Go to ACP->Postbit Collapser->Collapser Settings and turn the system on.

If you want to use a different graphic for the expand/collapse button in postbits change these buttons:
/images/buttons/collapse_40d.png
/images/buttons/collapse_40d_collapsed.png



* History (Changelog) *
------------------------------
1.05 (January 30, 2013)(NO NEED TO IMPORT XML IF YOU ARE RUNNING 1.04, JUST UPLOAD FILES)
- Add support for CompletevB templates that use <div> instead of standard CSS <dt><dd> formatting to do the same thing.

1.04 (January 26, 2013)
- Fix comments not showing on CMS articles.

1.03 (December 18, 2012)
- Fix style detection with vB version 4.1.10.

1.02 (November 29, 2012)
- Fix mobile styles not working.

1.01 (November 23, 2012) (never released on vB.org)
- Added option to arrange and display postbits without collapsing them.
- Added Last Activity and Last Post dates to display options.
- Fix postbit collapser not working with Vault Wiki.

1.0.0 (November 15, 2012)
- Initial Release

voglermc 11-16-2012 01:33 AM

Will this use custom profile fields also?

DirtRider 11-16-2012 03:14 AM

Yes it does I have it running on my site and this is one of the cool features of it. It also has a postbit if you have photopost installed linking to that members gallery and this is a very cool feature, something I have wanted for a long time. Overall this is a very cool mod and it really give a finished neatness to the thread view and can save a load of space if you have a long postbit with a lot of info in it.

nhawk thanks for all the effort put into doing this mod really appreciated. I think having Robs code in it and mentioning it is a very nice tribute to Rob

nhawk 11-16-2012 10:58 AM

It will not only make your current custom profile fields available to be included in postbits, it will also detect when new custom profile fields are added and make those available too.

EDIT: I've attached a screenshot of the postbits containing the results of a radio button, single selection menu and checkbox custom profile field values. All types of custom profile fields can be used in postbits with this add-on.

Also other coders can include their postbit info so it's position can be changed in the postbit display. If not included, it will display in it's normal position and can't be moved. Instructions for coders are included in the .zip file.

Nirjonadda 11-16-2012 04:20 PM

Can you add Postbit Auto Collapser On/Off Option ?

nhawk 11-16-2012 04:31 PM

Quote:

Originally Posted by Nirjonadda (Post 2381605)
Can you add Postbit Auto Collapser On/Off Option ?

It's already there in settings.

Nirjonadda 11-16-2012 04:37 PM

Postbit Display Order does not found Thanks and Thanks Stats,How to fix ?

nhawk 11-16-2012 04:48 PM

Quote:

Originally Posted by Nirjonadda (Post 2381621)
Postbit Display Order does not found Thanks and Thanks Stats,How to fix ?

It can't change the order of another mod's postbits and they will appear where they normally would in the postbits. It says that in the description in the first post...

Quote:

Does not affect mods that add to the proper postbit hooks, but those items can not have their order changed.

If you want the post thanks stats to be included so it's postbit order can be changed, you need to contact the author and have them follow the instructions in the Programmers_ReadMe.txt file included with the postbit collapser.

As a matter of fact, the Programmers_ReadMe.txt file uses the Post Thanks mod as an example of what is needed to add that info to Postbit Collapser. ;)

Nirjonadda 11-16-2012 07:13 PM

Please Try to add option !

1. Postbit Collapser First Post in Thread
2. Use Collapser Postbit In These Forums
3. Use Collapser Postbit In These Threads
4. Auto-Collapse (This setting controls whether the bars added to the postbit should be collapsed by default)

Rich 11-16-2012 07:48 PM

The timing of this modification is uncanny. I popped over here just now to see if this mod existed or if I needed to write one for my site. This mod is much appreciated. ;)

Nirjonadda 11-17-2012 07:20 PM

Can you update on my requests ?

Quote:

Please Try to add option !

1. Postbit Collapser First Post in Thread
2. Use Collapser Postbit In These Forums
3. Use Collapser Postbit In These Threads
4. Auto-Collapse (This setting controls whether the bars added to the postbit should be expand/collapse by default)

nhawk 11-17-2012 07:30 PM

I do not think I will do any of those.

The purpose of this mod is to make the postbit area as compact as possible while still leaving the graphic information above the text area complete in all forums, threads and posts.

To add those defeats the purpose of the mod.

Mr_Running 11-26-2012 06:16 PM

Postbit Collapser/Arranger <-- Great Mod :)

FYI
I have noticed that the
Code:

postbit_collapse_legacy
does not pick up any changes to the
Code:

postbit_legacy
. This mod...Info box on Postbit See here post #119

nhawk 11-26-2012 09:09 PM

Quote:

Originally Posted by Mr_Running (Post 2385347)
Postbit Collapser/Arranger <-- Great Mod :)

FYI
I have noticed that the
Code:

postbit_collapse_legacy
does not pick up any changes to the
Code:

postbit_legacy
. This mod...Info box on Postbit See here post #119

If you set 'Automatic Entry Into The Template' to 'Yes' in that mod, it shows properly. There's no need to add any code to the postbit_collapse_legacy template. (tested with version 4.1.4 of that mod)

EDIT: Discovered it only partially works. Added that mod to the list of known mods that force the use of postbit_legacy

Mr_Running 11-27-2012 03:27 PM

Sorted. :)

Rideharder 11-29-2012 06:42 AM

killed my mobile style!

Rideharder 11-29-2012 06:44 AM

Sorry, removed

nhawk 11-29-2012 11:32 AM

Quote:

Originally Posted by Rideharder (Post 2386327)
killed my mobile style!

This will be fixed in the next release.

Nirjonadda 11-29-2012 06:31 PM

v1.02 Not working for me on 4.1.10 ?

nhawk 11-29-2012 08:14 PM

Quote:

Originally Posted by Nirjonadda (Post 2386538)
v1.02 Not working for me on 4.1.10 ?

Roll back to the last version you had until I can find out why it's not working.

Actually I know why it's not working. vB 4.1.10 does not detect the mobile style the same way as vB 4.2.0. I need to see if I can make it work in both versions.

KGodel 12-18-2012 07:25 AM

Reputation isn't handled well with this. Is there some way to include it with the rest of the fields?

nhawk 12-18-2012 11:15 AM

Quote:

Originally Posted by KGodel (Post 2391446)
Reputation isn't handled well with this. Is there some way to include it with the rest of the fields?

Rep Power is included with the rest of the fields. And it can be moved around without any problems.

Nirjonadda 12-18-2012 06:18 PM

Quote:

Originally Posted by nhawk (Post 2386559)
Roll back to the last version you had until I can find out why it's not working.

Actually I know why it's not working. vB 4.1.10 does not detect the mobile style the same way as vB 4.2.0. I need to see if I can make it work in both versions.

Have any update for work on 4.1.10?

nhawk 12-18-2012 07:20 PM

Quote:

Originally Posted by Nirjonadda (Post 2391537)
Have any update for work on 4.1.10?

Sure, I've had the update running on a site that runs 4.1.10 for a while now to be sure there aren't any problems.

The update was released on my site today. It will follow here next week.

vb_nils 12-30-2012 10:11 AM

Thank you for this mod.

Could you imagine to add an option permitting to select if by default the postbit info is collapsed or not?

cliff p. 01-04-2013 12:10 AM

Not sure why (haven't really looked into it yet) but this mod isn't working for me OOTB.

-EDIT-

Just so I'm clear, it's not just modified styles, but all styles.

nhawk 01-04-2013 10:50 AM

Quote:

Originally Posted by cliff p. (Post 2394590)
Not sure why (haven't really looked into it yet) but this mod isn't working for me OOTB.

-EDIT-

Just so I'm clear, it's not just modified styles, but all styles.

Check for mods that force the use of postbit_legacy..

Quote:

This add-on will not work with any mod that forces the use of the standard vB postbit_legacy template

cliff p. 01-08-2013 09:45 AM

I saw that after I posted. Apologies. It was the DBTech Thanks/Like mod. :(

meadwench 01-08-2013 07:07 PM

Love the idea, but when using it with the default template and horizontal (new) postbit, it removes everything but the user name and member level. All the fields on the right side disappear when it is enabled.

nhawk 01-08-2013 08:23 PM

Quote:

Originally Posted by meadwench (Post 2395610)
Love the idea, but when using it with the default template and horizontal (new) postbit, it removes everything but the user name and member level. All the fields on the right side disappear when it is enabled.

Could you post a screenshot of what you're talking about?

The attached screenshot is how it should look using the default postbit template. It shows the postbit info collapsed and expanded.

The postbit info should be hidden when it is collapsed. On some site, the postbit info is huge and takes up a lot of room. This mod hides it so it doesn't take up so much room.

GONUMBER6 01-20-2013 06:55 PM

Excellent mod, thanks!!!!!

GONUMBER6 01-26-2013 12:32 AM

I think I may have found a bug. When enabled, my comments on articles won't show. Disabled they do.

Also is there a way to make the country flags work with this? My members are crying and want their flags back. :D

nhawk 01-26-2013 11:07 AM

Quote:

Originally Posted by GONUMBER6 (Post 2399578)
I think I may have found a bug. When enabled, my comments on articles won't show. Disabled they do.

Also is there a way to make the country flags work with this? My members are crying and want their flags back. :D

Yes you did find a bug. Thank you!

I'll have the fix for that out shortly.

Which country flag mod are you using? If it's Boofo's country flags mod, you need to make this change to his 'Country Flags Template Edits' plugin...

Find...
Code:

$templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
Replace it with...
Code:

if($vbulletin->options['pbcollapse_offon'])
{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_collapse_legacy' : 'postbit_collpase_postbit';
}else{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
}


Mr_Running 01-26-2013 12:34 PM

Quote:

Originally Posted by nhawk (Post 2399631)
Which country flag mod are you using? If it's Boofo's country flags mod, you need to make this change to his 'Country Flags Template Edits' plugin...

Find...
Code:

$templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
Replace it with...
Code:

if($vbulletin->options['pbcollapse_offon'])
{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_collapse_legacy' : 'postbit_collpase_postbit';
}else{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
}


Thanks for the fix :)

GONUMBER6 01-26-2013 02:14 PM

Quote:

Originally Posted by nhawk (Post 2399631)
Yes you did find a bug. Thank you!

I'll have the fix for that out shortly.

Which country flag mod are you using? If it's Boofo's country flags mod, you need to make this change to his 'Country Flags Template Edits' plugin...

Find...
Code:

$templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
Replace it with...
Code:

if($vbulletin->options['pbcollapse_offon'])
{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_collapse_legacy' : 'postbit_collpase_postbit';
}else{
        $templatename = $vbulletin->options['legacypostbit'] == 1 ? 'postbit_legacy' : 'postbit';
}


It's this one: https://vborg.vbsupport.ru/showthread.php?t=229511

Thanks for your prompt reply!

Lightmaster-AH 01-26-2013 03:03 PM

Hallo,

sorry of my bad english. I installed this addon in my testforum and its great, but in the mobile style it kills the posts. Nothing to see in showthread. How can I fix this?

Thanks!

nhawk 01-26-2013 04:38 PM

Quote:

Originally Posted by GONUMBER6 (Post 2399660)
It's this one: https://vborg.vbsupport.ru/showthread.php?t=229511

Thanks for your prompt reply!

I won't be able to do anything with that until Monday. But I will take a look at it.

nhawk 01-26-2013 04:39 PM

Quote:

Originally Posted by Lightmaster-AH (Post 2399669)
Hallo,

sorry of my bad english. I installed this addon in my testforum and its great, but in the mobile style it kills the posts. Nothing to see in showthread. How can I fix this?

Thanks!

What version of vBulletin are you running?

Do you have the mobile style properly defined in ACP->Settings->Options->Style & Language Settings? (Default Style for Old Mobile Browsers and Default Style for Modern Mobile Browsers) They can't be set to 'None'.

GONUMBER6 01-26-2013 04:54 PM

Quote:

Originally Posted by nhawk (Post 2399680)
I won't be able to do anything with that until Monday. But I will take a look at it.

Can you link me to boofos country flag mod? I cannot find it, am interested in seeing if its a better mod that can do the job :)

nhawk 01-26-2013 04:57 PM

Quote:

Originally Posted by GONUMBER6 (Post 2399684)
Can you link me to boofos country flag mod? I cannot find it, am interested in seeing if its a better mod that can do the job :)

His mod was a premium mod. You won't find it anywhere. After he passed away, his premium mods became unavailable.


All times are GMT. The time now is 07:08 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
  • Page Generation 0.01946 seconds
  • Memory Usage 1,846KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete