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

Reply
 
Thread Tools
Postbit Toggle in User CP Details »»
Postbit Toggle in User CP
Version: 1.01, by a simple fa?ade a simple fa?ade is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.0 Beta 3 Rating:
Released: 07-09-2006 Last Update: 07-09-2006 Installs: 26
Uses Plugins Template Edits
 
No support by the author.

Postbit Toggle in User CP

This hack was originally inspired by an old hack providing similar functions created by Darth Cow. It creates a toggle option in the User CP to determine which postbit a user wishes to use. It also includes optional instructions to include the information concerning this field in the postbits.

Template Edits: 2, optional
Files to Upload: 0
Plugins to Import: 1
Other: 3 (Add one Profile Field and change one vB Options setting; OPTIONAL - create a phrase)

====

Installation Instructions -

View the readme.txt in the ZIP archive.

====

Support -

I will offer support in this thread.

Show Your Support

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

Comments
  #12  
Old 12-06-2006, 12:44 PM
tansu's Avatar
tansu tansu is offline
 
Join Date: Apr 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, it works for me, but no other members..
isnt it strange?
Reply With Quote
  #13  
Old 01-21-2007, 08:30 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any clue to my problem?
Reply With Quote
  #14  
Old 01-25-2007, 04:19 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working but with some problems and bugs:

1- The template postbit_legacy is not included in the cache.

2- Whenever a member decide to change his postbit choice's options, it seems to revert to the postbit_legacy all time even if my own choice is on postbit. (on top).

To correct this, I have to go in the vbulltin options under Style and language and save the settings without changing anything!

Really weird. Any idea?

It says in the first thread that this hack is supported, well, last online in September... is it really the case?
Reply With Quote
  #15  
Old 01-25-2007, 02:33 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like there may be a setup issue. Check the following plugin

legacypostbit toggle

Make sure the Field is Correct and the Option it's pointing too.
Reply With Quote
  #16  
Old 01-25-2007, 03:16 PM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I have in the plugin: (the order option is set to 5 for field in my peronalized fields too).


PHP Code:
$vbulletin->options['legacypostbit'] = 1;

if (
$vbulletin->userinfo['field5'] == 'Profile on top')
{
  
$vbulletin->options['legacypostbit'] = 0;

Also, in my vBulletin Options > Style and Template Settings, 'Use Legacy (Vertical) Postbit Template' is set to No.
Reply With Quote
  #17  
Old 01-25-2007, 07:58 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Order Option? Or the actual field # ?
Reply With Quote
  #18  
Old 01-26-2007, 04:26 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Field1 = Biography: Order = 1
Field2 = Location: Order = 2
Field3 = Interests: Order = 3
Field4 = Occupation; Order = 4
Field5 = Postbit Toggle; Order = 5

So the answer is both.

I can't get this why it's happening. It's very annoying.
Reply With Quote
  #19  
Old 01-26-2007, 01:18 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is My Setup. You could try and see if it makes a difference.

Code:
$vbulletin->options['legacypostbit'] = 1;

if ($vbulletin->userinfo['field5'] == 'Top')
{
  $vbulletin->options['legacypostbit'] = 0;
}
The Field Options are:
Left
Top

And I have Set Default: Yes, but no First blank option
Reply With Quote
  #20  
Old 01-26-2007, 03:03 PM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exitilus View Post
And I have Set Default: Yes, but no First blank option
You mean this in User profile field?: If it's the case, it's also what I have.
Attachment 59533

In Style and languages settings I also have this:
Attachment 59534

I tried changing for
Left
Top

No changes. I'm without any clue.

One note, I did not install the option to have the toggle option in the message's profile, did you?
Reply With Quote
  #21  
Old 01-26-2007, 05:08 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What type of Profile Field is it ? It should be Single-Selection Menu.

Also what version of VB are you using ?
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 10:42 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.04503 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)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
  • (2)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