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

Reply
 
Thread Tools
Default Postbit Selectable By Members Details »»
Default Postbit Selectable By Members
Version: 3.7.002, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.x Rating:
Released: 07-07-2008 Last Update: 09-03-2008 Installs: 53
Uses Plugins
Re-useable Code Translations  
No support by the author.

Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).

Please click Mark as Installed if you are using this hack.


vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

This is a hack that lets your members select the type of postbit they want displayed for themselves, just like here at vBulletin.org.

vBulletin now uses a horizontal postbit as default, but it used to display the postbit vertically in two columns (see screenshots) and some long time members prefer the old school postbit over the new one, and this hack gives them the option. You can leave the forum wide setting as the new postbit, and members can choose themselves if they want this or the old one.

Show single posts will also be affected by this setting.

Now, as an added bonus, you can choose to display the member's default postbit in posts or threads.

DEMO: You can see how this works by testing the function out right here at vBulletin.org, all you need to do is tick the Yes, I prefer old-style postbit checkbox in the Thread Display Options of User CP -> Edit Options. Then check a few threads to see what it does.


IMPORTANT NOTE: This hack will only work if you use the horizontal postbit display site-wide.
I have no plans in making it work with the postbit legacy site-wide. I have looked into it, and it would require code changes to vBulletin's core files to make it work.

So, under the Style & Language Settings section of vBulletin Options in the AdminCP:
  • Ensure Use Legacy (Vertical) Postbit Template is set to No.

IMPORTANT NOTE 2: When using Quick Reply when you are in legacy layout with your postbits, posts the QR are displayed in postbit layout when submitted. This quirk is rectified with a refresh of the page (see post #46 for more info). But there is a fix in the v3.8.x version of this hack (which will work with 3.7.x).


Installation Instructions

The Default Postbit Installation Instructions 3.7.xxx.pdf instructions file is included in attached .zip (includes visual instructions).
NOTE: If upgrading then just do Step 2 and Step 3 again.

Uninstall Instructions
  1. In the AdminCP, go to User Profile Fields -> User Profile Field Manager.
    • Delete the Default Postbit profile field.
  2. Uninstall the product using the AdminCP Product Manager.


Version History

v3.7.002 - Thursday 4th September 2008
-- Final Release
-- Fixed: Bug where keywords being searched for were not being highlighted in the results
-- Changed: Total code rewrite
-- Changed: Instructions
-- Changed: Screenshots
-- Changed: No more editing of plugins
-- Added: AdminCP Options for user profile field ID and displaying members default postbit in post/thread
-- Added: 2 new phrases

v3.7.001 - Tuesday 8th July 2008
-- Initial Release


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Show Your Support

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

Comments
  #32  
Old 08-13-2008, 03:20 AM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
It still does not get around guests viewing the board in legacy view (forum-wide legacy view), as far as I can see, which is what people have been asking for, and that does not seem achievable without edits to the core files.
True. I figure newer members won't notice the difference, but the existing members are already set to stay at the old view. For now that's good enough for me. I think this should have been a user-selectable option in vB itself, as I know a lot of users (including myself) prefer the postbit over on the side (either left, or on the right like phpBB3 does) as it makes reading posts much easier. I prefer signatures off as well, but being an admin means I have to monitor those, as does my staff.

I may hit the database in a few weeks to see who is using the horizontal vs. the vertical postbit layout.

The only other swap I can think of, would be to copy the contents of the postbit_legacy template to postbit, and vice versa. That would mess up future upgrades (you'd have to revert templates, redo the swap, then re-insert any custom template edits by hand), but it may be another quick and dirty way to handle it. If there are hooks in both that are specific to postbit and/or postbit_legacy, those would have to be renamed as well. Untested, of course...and I'm not brave enough to try it even on my test forum.
Reply With Quote
  #33  
Old 08-14-2008, 04:09 AM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone else had a problem where you lose the search results highlighting when this plugin is enabled? One of my admins pointed this out, and members noticed it as well. Not sure if it's a conflict with other plugins, or if it's this one in particular, but when I disable it, the search highlighting begins working again. (Search highlighting is when you do a forum search, and your search word is highlighted in the text of the post.) What happens is, the < span class="highlight" > code around the search word is missing.

I'll experiment more to see if this is indeed the case or not.
Reply With Quote
  #34  
Old 08-14-2008, 09:28 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedWingFan View Post
Has anyone else had a problem where you lose the search results highlighting when this plugin is enabled? One of my admins pointed this out, and members noticed it as well. Not sure if it's a conflict with other plugins, or if it's this one in particular, but when I disable it, the search highlighting begins working again. (Search highlighting is when you do a forum search, and your search word is highlighted in the text of the post.) What happens is, the < span class="highlight" > code around the search word is missing.

I'll experiment more to see if this is indeed the case or not.
I have just replicated this too.... did not test for it originally, but thought I had it covered when I created it.... oh well

It is just when the legacy postbit is selected when this hack is enabled.

I have to hand 3 assignments in for university tomorrow, but I will be looking at this at the weekend and see if I can fix it.
Reply With Quote
  #35  
Old 08-14-2008, 12:44 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
I have just replicated this too.... did not test for it originally, but thought I had it covered when I created it.... oh well
I don't see how they could affect each other, but they do. I'm glad that you could replicate it though--I was thinking it might be incompatible with another plugin I had installed. I even uninstalled a couple of old ones, but still, no highlights came back.

The only manual change I made to both postbits was adding a display for the iTrader ratings. If you want to compare notes on which plugins we might have installed, let me know.

Quote:
Originally Posted by Mosh View Post
I have to hand 3 assignments in for university tomorrow, but I will be looking at this at the weekend and see if I can fix it.
No problem--school comes first! :up:
Reply With Quote
  #36  
Old 08-18-2008, 10:33 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedWingFan View Post
I don't see how they could affect each other, but they do. I'm glad that you could replicate it though--I was thinking it might be incompatible with another plugin I had installed. I even uninstalled a couple of old ones, but still, no highlights came back.

The only manual change I made to both postbits was adding a display for the iTrader ratings. If you want to compare notes on which plugins we might have installed, let me know.



No problem--school comes first! :up:
I am definitely going to have to dig deeper, as I can not for the life of understand why this is happening, the words should be highlighted by they are not, and I am really hoping that the solution does not include core file edits.

This may take a while, but I will get back to you.
Reply With Quote
  #37  
Old 08-21-2008, 01:36 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg been waiting for this. admin and me just had a fight over which postbit to use. this solves that problem.

thoughI too would love if legacy were default
Reply With Quote
  #38  
Old 08-21-2008, 01:54 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wish the legacy postbit were the default also. The horizontal is just clutter--posts interrupted by avatars, usernames, locations, etc. I wouldn't even mind a right-hand postbit, as long as it's off to one side and out of my way. Imaging reading an interview in the newspaper where, every couple of sentences, a strip of information were placed above each reply. *sigh*

One of my online buddies who runs a vB forum found a template modification that will show a user's signature only once within a thread (or page within a thread). Another way of reducing the clutter.
Reply With Quote
  #39  
Old 08-22-2008, 05:02 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a bug with this mod while using TfSEO...

If a user is using the legacy postbit, they get uncached templates:

Uncached templates: pagenav (1)
Uncached templates: pagenav_pagelink (1)
Reply With Quote
  #40  
Old 08-22-2008, 08:05 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxel View Post
I found a bug with this mod while using TfSEO...

If a user is using the legacy postbit, they get uncached templates:

Uncached templates: pagenav (1)
Uncached templates: pagenav_pagelink (1)
Well, they are cached for me, so I am pretty sure it is not a bug. There is only one confirmed bug in this hack at the moment, and that is when searching the key words are not highlighted, and I am currently looking into that.

I have debug mode enabled on my testbed and those are not un-cached when this hack is enabled and in postbit_legacy mode.

I also have over 20 hacks enabled as well (I always like to test my hacks in a mixed environment, just in case there is a problem with other hacks I write).

This hack does not have anything to do with pagination at all, so I am pretty sure it is another hack that is doing this.
Reply With Quote
  #41  
Old 08-22-2008, 01:37 PM
Silencer Groans's Avatar
Silencer Groans Silencer Groans is offline
 
Join Date: Dec 2007
Location: k.s.a
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
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 12:43 AM.


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.06465 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete