Announcement

Collapse
No announcement yet.

How To Make the Postbit a User Option

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Make the Postbit a User Option

    (1) Create a new Custom Profile Field of the your choosing (yes/no / radio / select). I am going to use a single-selection menu for this demo. I put in two options "Top" and "Left". At the very bottom of the custom profile edit page, set the Display Page option to Options: Thread Viewing. Submit your new profile field.

    (2) Now you are redirected to your list of custom profile fields. Find the new field you selected and note its Name. Mine is called field66 for example.

    (3) Then I placed this in my phpinclude_start template:
    PHP Code:
    if ($bbuserinfo['field66'] == 'Left')
      {
        
    $vboptions['legacypostbit'] = 1;
      } 
    Now everyone will default to top style but can choose left style in their User CP. You can adjust the code to default everyone to left style by enabling the vboption for legacy postbit and then changing the above code to:
    PHP Code:
    if ($bbuserinfo['field66'] == 'Top')
      {
        
    $vboptions['legacypostbit'] = 0;
      } 
    Originally posted by Freddie Bingham.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

  • #2
    This plugin adds this capability to 3.5.X:
    http://www.vbulletin.org/forum/showthread.php?t=91620
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X