Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

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
  #42  
Old 08-22-2008, 09:51 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... the caching error randomly fixed itself...
Reply With Quote
  #43  
Old 09-04-2008, 10:20 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: v3.7.002
-- 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
Reply With Quote
  #44  
Old 09-28-2008, 12:45 PM
john102774 john102774 is offline
 
Join Date: Aug 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yet another great Hack!

What if we want to use the old postbit as a default to all members, Is there an option?

Thanks for this great Hack!
Reply With Quote
  #45  
Old 09-29-2008, 11:34 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 john102774 View Post
Yet another great Hack!

What if we want to use the old postbit as a default to all members, Is there an option?

Thanks for this great Hack!
You could try the instructions from the post below, I have not tested them, so you would try the instructions at your own risk, but I don't see why they should not work.

Quote:
Originally Posted by RedWingFan View Post
This is a roundabout way to do it, but here goes.

IF you can run a database query, you can take an extra step to change everyone over. I did it on my forum a few hours ago and nobody noticed.

After you set up your custom field in the user profile, and you have the ID number, you run this simple query first:

update userfield set field26 = '1'

My custom field was "26"...substitute your own field number there, of course. This would be step #1-1/2 in your procedure.

From that point, I then uploaded the XML file, modified the plugins, etc. per your instructions, then went over to the AdminCP and changed the forum over to the horizontal postbit. Since everyone's "Use the old postbit" setting is checked (set to '1' in the database), it is already turned on for them when you switch the main forum setting over to the horizontal postbit; nobody will know any better!

New users who sign up will get the newer postbit, but if they look through their options, they'll find the checkbox and activate it themselves. I did change the wording so that everyone could understand it better.

So the short version is--insert that database query instruction above as #2 in your procedure, and it's an easy workaround when most people are used to the left-hand postbit.
Reply With Quote
  #46  
Old 10-28-2008, 02:06 PM
Chris583 Chris583 is offline
 
Join Date: Jan 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem that I have noticed and a member just pointed out again to me.

"I like vertical more, except when I post, my post only comes up horizontal, and all the others vertical, until I refresh the page, if you can fix that, I'd be really grateful."

Any ideas, help? THANKS!!!
Reply With Quote
  #47  
Old 10-28-2008, 09:35 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 Chris583 View Post
I have a problem that I have noticed and a member just pointed out again to me.

"I like vertical more, except when I post, my post only comes up horizontal, and all the others vertical, until I refresh the page, if you can fix that, I'd be really grateful."

Any ideas, help? THANKS!!!
I am aware of the issue, it is not a bug, but a behaviour due to the fact that we are tricking vBulletin into thinking that we are using postbit_legacy when the forum is actually not using it.

It is because he is using Quick Reply, and as the whole page has loaded before he has replied, he is relying on Ajax to display the post after he has replied, and considering that vBulletin is being tricked into thinking it is in another mode from person to person, it will initially revert the postbit to horizontal, until the page has been refreshed, we can not get around this without edits to vBulletin files.

That would probably require at least editing vbulletin_quick_reply.js, which is a core vBulltin file (maybe other files too, but have not looked into it yet). I am not really up on javascript or ajax, but may attempt to fix it at some point (I will give no timeframe). But the only problem with the edits, is that each and every time vBulletin is updated, you will have to apply the edits.
Reply With Quote
  #48  
Old 10-29-2008, 07:50 PM
Chris583 Chris583 is offline
 
Join Date: Jan 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the explanation!
Reply With Quote
  #49  
Old 11-16-2008, 09:50 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
I am aware of the issue, it is not a bug, but a behaviour due to the fact that we are tricking vBulletin into thinking that we are using postbit_legacy when the forum is actually not using it.

It is because he is using Quick Reply, and as the whole page has loaded before he has replied, he is relying on Ajax to display the post after he has replied, and considering that vBulletin is being tricked into thinking it is in another mode from person to person, it will initially revert the postbit to horizontal, until the page has been refreshed, we can not get around this without edits to vBulletin files.

That would probably require at least editing vbulletin_quick_reply.js, which is a core vBulltin file (maybe other files too, but have not looked into it yet). I am not really up on javascript or ajax, but may attempt to fix it at some point (I will give no timeframe). But the only problem with the edits, is that each and every time vBulletin is updated, you will have to apply the edits.
Hi there
I really like this modification, it is fantastic.

I have been using version 3.7.001 since it was first launched. I just now upgraded to the new version because I realized the issue with the highlighted search terms.
I am now noticing this error where the postbit is horizontal until the page is refreshed (when using Quick Reply).
However I am 99.99% sure that this did not happen in the first version. I would have noticed it a long time ago.

So why is it just now happening in this new version?
Reply With Quote
  #50  
Old 11-17-2008, 04:00 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 EagleNick View Post
Hi there
I really like this modification, it is fantastic.

I have been using version 3.7.001 since it was first launched. I just now upgraded to the new version because I realized the issue with the highlighted search terms.
I am now noticing this error where the postbit is horizontal until the page is refreshed (when using Quick Reply).
However I am 99.99% sure that this did not happen in the first version. I would have noticed it a long time ago.

So why is it just now happening in this new version?
It is quite possible it did not, as v3.7.002 was a complete rewrite, and I am doing the same thing in a completely different way, and the original did not highlight no matter what I did, even though it should have, so went back to the drawing board and rewrote it.

If it bothers you that much and you can live without the highlighting of keywords when searching then by all means re-install v3.7.001
Reply With Quote
  #51  
Old 11-19-2008, 05:14 PM
Scamorz Scamorz is offline
 
Join Date: Oct 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't work for me

I have 3.7.0 and i followed all instrunctions, but when i check box it doesn't change nothing...

I have 3 different styles and i make test on default style...
Reply With Quote
Reply

Thread Tools

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 05:28 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.04736 seconds
  • Memory Usage 2,322KB
  • Queries Executed 27 (?)
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
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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