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
User Postbit Template Selection Details »»
User Postbit Template Selection
Version: 1.00, by WhSox21 WhSox21 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.0 Beta 3 Rating:
Released: 06-29-2005 Last Update: 07-07-2005 Installs: 106
Uses Plugins
 
No support by the author.

I'm just getting back into the swing of things with vBulletin 3.5. Here's my first plugin being released (Others are still in progress).

What this does:
This allows users to select which postbit they wish to use via their control panel.

Installation
Upload the plugin and create a new user profile field by following the directions below.
Once you complete the top two steps you must edit the plugin and find: field5
Then change that to your user profile field number.

Add a New User Profile Field

Profile Field Type:
Single-Selection Menu

Title: Postbit Template Selection

Description:
If you prefer the old-style postbit, using two vertical columns rather than the new horizontal layout, you can switch back to using that template with this switch.

Options:
Horizontal Postbit
Vertical Postbit (Legacy)

Set Default:
Yes, but no First Blank Option

Display Order:
This is your choice.

Field Required:
No

Field Editable by User:
Yes

Private Field:
Yes

Field Searchable on Members List
No

Show on Members List
No

Allow user to input their own value for this option
No

The rest does not matter.

Show Your Support

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

Comments
  #32  
Old 10-04-2005, 12:09 AM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works good on 3.5.0

nice and easy and especially nice with the add on.

installed.
Reply With Quote
  #33  
Old 10-05-2005, 12:32 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everybody considering to use this should use this Code: https://vborg.vbsupport.ru/showpost....1&postcount=25

The default Code of this Hack causes additional queries due to uncached Templates.
Reply With Quote
  #34  
Old 10-05-2005, 01:49 AM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Everybody considering to use this should use this Code: https://vborg.vbsupport.ru/showpost....1&postcount=25

The default Code of this Hack causes additional queries due to uncached Templates.
the code you link to works great if you have the legacy postbit set as default in options...but how can that code be reworked to work with the horizontal postbit when set as default so that the additional queries can be eliminated?
Reply With Quote
  #35  
Old 10-05-2005, 03:24 PM
Loony BoB's Avatar
Loony BoB Loony BoB is offline
 
Join Date: Mar 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aye, that is also what I'm interested in doing. My website uses non-legacy by default but has legacy as an option, and we can't upgrade until we can figure out how to do this (using our test board).
Reply With Quote
  #36  
Old 10-05-2005, 08:02 PM
jtallen123 jtallen123 is offline
 
Join Date: Apr 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is there a version of this that works properly with the horizontal, non-legacy, as the default yet? I seemed to read conflicting reports in this thread.
Reply With Quote
  #37  
Old 10-05-2005, 08:17 PM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jtallen123
So is there a version of this that works properly with the horizontal, non-legacy, as the default yet? I seemed to read conflicting reports in this thread.
from what i gather...the original code functions just fine as is...except its not cached causing extra queries?

the code Kirby linked to resolves that issue but legacy postbit needs to be set in ACP as default.

hopfully a version of that code is released to work with horizontal as default and without the extra queries. i tried playing with the plugin code, reversing and switching the code around...but was unsuccessful (no surprise there though...dont know a whole lot about php yet).
Reply With Quote
  #38  
Old 10-06-2005, 04:19 AM
Samira's Avatar
Samira Samira is offline
 
Join Date: Dec 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this, with the regular postbit as default:

https://vborg.vbsupport.ru/showpost....1&postcount=25

I did away with the else portion and only used the first part. Works fine with legacy as an option but not default. I also made sure to set in the profile field for the 'Top' option to be the default selection, if that makes any difference.
Reply With Quote
  #39  
Old 10-06-2005, 06:48 AM
shungo shungo is offline
 
Join Date: Nov 2002
Location: France
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acidburn0520
Try going into the ACP -> vBulletin Options -> Style & Language Settings -> Set "Use Legacy (Vertical) Postbit Template" to "No".

That's i did exactly. But still not working on gold version even replacing by right field profile in module
Reply With Quote
  #40  
Old 10-06-2005, 02:44 PM
jtallen123 jtallen123 is offline
 
Join Date: Apr 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm - I think I'll eventually use this on my forums if we ever get a confirmed version that works with 3.5.0 and horizontal as default.
Reply With Quote
  #41  
Old 10-06-2005, 11:35 PM
Samira's Avatar
Samira Samira is offline
 
Join Date: Dec 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works for me, jtallen.
Reply With Quote
  #42  
Old 10-07-2005, 12:48 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Wise One
hopfully a version of that code is released to work with horizontal as default and without the extra queries. i tried playing with the plugin code, reversing and switching the code around...but was unsuccessful (no surprise there though...dont know a whole lot about php yet).
Hmm, works fine for me on gold no matter if legacy is default or not?
Reply With Quote
  #43  
Old 10-14-2005, 10:40 PM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Everybody considering to use this should use this Code: https://vborg.vbsupport.ru/showpost....1&postcount=25

The default Code of this Hack causes additional queries due to uncached Templates.
another question about this. the code you recommend to use in the link above. is the caching done because of the code change or is it because of the hook it belongs to?

as it is now...it works great. when i add the add on, using the option to switch postbits (in the thread display mode menu) doesnt change the postbit. rather...it does, but it requires a refresh after clicking the option. if i use the code in the post you linked to...but change the hook to postbit_display_complete the refresh is no longer required and using the thread display mode menu option changes the postbit accordingly.

i guess what im trying to figure out is...are the additional queries you refer to being caused because of the hook used or the code used...
Reply With Quote
  #44  
Old 10-16-2005, 11:39 AM
Mika Mika is offline
 
Join Date: Feb 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Hmm, works fine for me on gold no matter if legacy is default or not?
Here as well (3.5 gold).
Reply With Quote
  #45  
Old 10-17-2005, 05:33 PM
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone with spare time wants to take over this hack's support and functioning please let me know. I'll give you full credit to this hack and if the vb mods want to they can switch the thread starter via the database.

I just don't have time to update this at the moment. Too many things going on in my life.
Reply With Quote
  #46  
Old 11-22-2005, 08:22 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Everybody considering to use this should use this Code: https://vborg.vbsupport.ru/showpost....1&postcount=25

The default Code of this Hack causes additional queries due to uncached Templates.
Ok Andreas...the code below is the correct code to use to not get those additional queries, is that right? I just want to be sure, cause it works just fine

Quote:
global $vbulletin;
if ($vbulletin->userinfo['field9'] == "Vertical Postbit (Legacy)")
{
$vbulletin->options['legacypostbit'] = 1;
}
else if ($vbulletin->userinfo['field9'] == "Horizontal Postbit")
{
$vbulletin->options['legacypostbit'] = 0;
}
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 08:21 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.06787 seconds
  • Memory Usage 2,365KB
  • Queries Executed 30 (?)
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
  • (8)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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