Announcement

Collapse
No announcement yet.

Add Custom Profile Fields in Postbit

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • glennrocksvb
    replied
    Originally posted by tenis View Post
    I tried to ad the custom field without a third-party plugin but I failed.
    The Show on Post is correctly set to Yes in your screenshot. What is exactly not working? If user has not filled out the profile field in their Profile settings, it would not show it on postbit by design.

    Leave a comment:


  • tenis
    replied
    Yes, you are right. After I deleted a user or after I merged 2 users this error appear.

    I tried to ad the custom field without a third-party plugin but I failed.
    Click image for larger version

Name:	image.png
Views:	146
Size:	21.6 KB
ID:	28194

    Leave a comment:


  • glennrocksvb
    replied
    Actually, you don't need this mod anymore. It is now possible to display profile fields on postbit without a plugin by just setting "Show on Post" option to Yes when creating/updating a profile field. This feature has been added to vB5 natively in the past few versions which is several years after this mod was created. I actually have this note in the first post about this.

    Originally posted by glennrocksvb View Post
    NOTE: With recent updates from vBulletin 5, you can now show profile fields on postbit without a third-party plugin. This is done by setting "Show on Post" to Yes when creating/updating a profile field in the User Profile Field Manager and it will show on postbit.

    But if you want to show icons instead of text, then you still need a plugin to do that. I just released new mods for displaying
    Gender icons and Country Flag icons on postbit.

    Leave a comment:


  • glennrocksvb
    replied
    Thanks for reporting. Just to clarify the scenario, you deleted a user and his old posts show invalid_profile_userid error? Did the error occur on all topics with his posts or only some of them? Could you please post a link to the topic that used to have this issue?

    Leave a comment:


  • tenis
    replied
    Hello,

    Installing this caused my forum a random Invalid_profile_userid error.

    An old user on my forum was deleted a few years ago on his own request. He had created a number of threads, and now we get the error "invalid_profile_userid" when trying to access the threads. I'm not sure whether this has something to do with the latest update (I run 5.7.2), but I cannot remember seeing this error

    Leave a comment:


  • glennrocksvb
    replied
    With recent updates from vBulletin 5, you can now show profile fields on postbit without a third-party plugin. This is done by setting "Show on Post" to Yes when creating/updating a profile field in the User Profile Field Manager and it will show on postbit.

    But if you want to show icons instead of text, then you still need a plugin to do that. I just released new mods for displaying Gender icons and Country Flag icons.

    Leave a comment:


  • Nessa
    replied
    Hi Glenn, nice you are back.

    I was wondering about adding the flags icon in the postbit.

    We are using vb 5.6.4

    Thanks!

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    First post updated.

  • glennrocksvb
    replied
    The sprite image containing all the icons used in vB5 has changed since this mod was posted. That's why the image icon will not show up. To find where the new location of the sprite image file is, right-click any of the icons on your forum and then choose Inspect. Observe the background used and locate the image path inside the "url(" and ")". Copy that path and use it in the CSS code. I will update the first post with this instruction.

    Leave a comment:


  • Navodit
    replied
    please, help the image is not shojng up on my forum, it is light colored theme... i even made my own image.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    What other fields? If custom profile fields then there's no way to show it via CSS if it's not present in the HTML source in the first place.

  • Snowhog
    replied
    Thank you Glenn! Adds back to vBulletin 5 some of the look and feel we had gotten accustomed to in vBulletin 4.2.5.

    Leave a comment:


  • albanah
    replied
    Originally posted by glennrocksvb View Post
    By default, vBulletin 5 only displays the Join Date and Post count in the postbit area (avatar and username section) in the thread view of a topic. There may be other tutorials out there to add custom fields in postbit but some require you to edit the existing postbit template. Editing existing templates is not good for maintenance reasons as you would have to resolve template merge conflicts every time you upgrade. Or some might require you to create a template hook and repeatedly copy/paste template code for adding multiple fields and change instances of profile field variable names. Another maintenance nightmare.

    Don't look any further, here's the mod that is simple but rocks! Simply download the zip file, uncompress it and upload the XML in AdminCP > Products & Hooks > Manage Products > [Add/Import Product] and you're good to go. By default, it adds Location and Occupation profile fields. You can configure what profile fields to add in AdminCP > Settings > Options > Custom Profile Fields in Postbit Settings.

    As a bonus, the mod also adds "Send PM" link to the postbit to make it easier for users to send a private message to a user while reading a thread. You can also configure that in the Custom Profile Fields in Postbit Settings.

    Demo:
    Look at the postbit section on this thread.

    Upgrade Instructions:
    If you are upgrading this mod from an older version, choose Yes in the "Allow Overwrite" radio button when importing the XML file.

    Customizations:
    To add the existing envelope icon in the default icon sprite image to the Send PM link, add the below custom CSS in css_additional template in AdminCP or in Sitebuilder > Style > CSS Editor.
    Code:
    .send-pm-in-postbit:before {
    content: '';
    width: 15px;
    height: 14px;
    position: relative;
    bottom: -1px;
    background: transparent url('images/css/sprite_icons_vb_ltr.png') no-repeat scroll [COLOR=#FF0000]-16px[/COLOR] -176px;
    display: inline-block;
    margin-right: 3px;
    }
    For dark colored themes, you can use the light colored envelope icon by changing -16px to 0 in the background value above.

    Version History:
    v1.1
    • Added rel="nofollow" to Send PM link to prevent search engines to follow the link and get Access denied error.
    v1.0
    • Initial version.
    can you help with css code like this field to add other fields without using products

    Leave a comment:


  • lange
    replied
    Thanks for this product.

    I will test it on legacy/vertical postbit.

    Leave a comment:


  • danielmorashov
    replied
    the mod working fine on vb 5.6.4 but the "SEND PM" icon doesn't work because of the system update
    Code:
    .send-pm-in-postbit:before {
    content: '';
    width: 15px;
    height: 14px;
    position: relative;
    bottom: -1px;
    background: transparent url('images/css/sprite_icons_vb_ltr.png') no-repeat scroll [COLOR=#FF0000]-16px[/COLOR] -176px;
    display: inline-block;
    margin-right: 3px;
    }
    Can someone update the updated code to the system?

    Leave a comment:

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"