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
    You would need to edit the mod template named "hook_profile_fields_postbit".

    Change this line:
    Code:
    <li class="b-userinfo__additional-info"><label>{vb:phrase {vb:raw label}}:</label> <span>{vb:var fieldVal}</span></li>

    to: (change highlighted in red)
    Code:
    <li class="b-userinfo__additional-info" [COLOR=#FF0000]data-field-label="{vb:phrase {vb:raw label}}"[/COLOR]><label>{vb:phrase {vb:raw label}}:</label> <span>{vb:var fieldVal}</span></li>
    Then add this custom CSS:
    Code:
    .b-userinfo__additional-info[data-field-label="Location"] label {
        display: none;
    }

    Leave a comment:


  • macromotion
    replied
    Originally posted by glennrocksvb View Post
    So you want to remove the label for Location and leave it for others?
    that's what I was thinking but... sounds like removing Location would also remove Posts, right? So, I guess I wouldn't wan't that. It's not a huge deal... I was thinking it would save a row of real estate. For instance, "Location: Montgomery, AL" wraps to a second row but "Montgomery, AL" doesn't.

    Leave a comment:


  • glennrocksvb
    replied
    So you want to remove the label for Location and leave it for others?

    Leave a comment:


  • macromotion
    replied
    Glenn - this works well. Thank you for making it available! Question... I'm including the location but would like to remove the "Location:" field label and just display the data. Is that possible?

    Leave a comment:


  • Udug
    commented on 's reply
    Gender and Country pics in Postbit will be a nice thing to have on any forum! Thank you Glenn, for your support and development.

  • samerabuallan
    replied
    really it's great app

    Leave a comment:


  • Fleiding
    replied
    Originally posted by Zeefje View Post
    Hi Glenn,
    Is there a way that I can show the profile fields on pc, but not on tablet or phone mode? (And for that matter, I would like that for the standard join date and post count as well)
    For the Custom Profile Fields I've added a class to the "hook_profile_fields_postbit" template and added the following in my css_additional.css:
    Code:
    @media (max-width:736px) { .your-class {
        display: none;
    }}
    Maybe glennrocksvb can assist you with the default data.

    Leave a comment:


  • Zeefje
    replied
    Hi Glenn,
    Is there a way that I can show the profile fields on pc, but not on tablet or phone mode? (And for that matter, I would like that for the standard join date and post count as well)

    Leave a comment:


  • glennrocksvb
    replied
    FYI. I've also added the Country custom profile field in the postbit on this site and it displays the corresponding flag image icon. Please feel free to update your Country in the User Settings if you want. I will release an upgrade to this mod once I know everything is working fine. Thanks!

    Leave a comment:


  • glennrocksvb
    replied
    Head over to your User Settings > Profile tab and set your Gender to see the Male or Female icon in your postbit.

    Leave a comment:


  • glennrocksvb
    replied
    I figured out a way to display images or CSS icons in the profile field values in postbit. See the Gender field here in my postbit. I am using pure CSS as the Male icon. This solution should enable any type of profile fields that you want to display images or icons instead of plain text. For example, now it's possible to display country flag images for Country custom profile field.

    I will post this solution and update this mod when I get a chance.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    I'll take a look.

  • mito22
    replied
    Hi glen......challange for you..

    It's possibile for you to put icons of facebook, instagram, skype and twitter on postbit.... on under zone of postbit

    like this?



    Click image for larger version

Name:	postbit-vb5.jpg
Views:	234
Size:	108.9 KB
ID:	9126

    Leave a comment:


  • glennrocksvb
    replied
    You can edit the template used in this mod (not recommended to edit existing vB templates) to accomodate the display of country custom field value as flag images.

    Leave a comment:


  • Cem01
    replied
    It's so simple and useful, thanks for sharing.

    I wonder if this is possible in your plugin: https://www.vbulletin.org/forum/showthread.php?t=229511

    I tried to edit the conversation_userinfo template in according to codes above, but it didn't work.

    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 "|||"