Jump to content

Adding custom fields to post Bits


The Guy

Recommended Posts

Hello,

 

I was trying to google on where to get a simple script to add custom fields to postbits so it appears under the Username/avatar in posts. There is a plugin on the marketplace, however it seems broken and not workable so I uninstalled it. I appreciate it if someone can point me in the right direction.

Link to comment
Share on other sites

This is in the ACP.

Member Settings - Profiles - Profile Fields.

Add one.

The settings are pretty wide open for what you can have there. Then there is a field where you can specify what shows (and how it shows) underneath avatars/names. Leave blank to not display at all (though will show on a user's profile *page*).

Unless you are doing something else?

Link to comment
Share on other sites

On 5/24/2016 at 3:52 PM, Flitterkill said:

This is in the ACP.

Member Settings - Profiles - Profile Fields.

Add one.

The settings are pretty wide open for what you can have there. Then there is a field where you can specify what shows (and how it shows) underneath avatars/names. Leave blank to not display at all (though will show on a user's profile *page*).

Unless you are doing something else?

Not quite.

Mostly looking to input the custom field in this area (attached imaged.)

Like we are a gaming community so I would like to see their Gamertag or squad they belong too etc. There is a plugin, however its broken.

postbit area.png

Link to comment
Share on other sites

Yeah, what I posted does that exactly. Other than the user needing to input the info on their own on their profile page that's pretty much it. 

1.jpg

2.jpg

Can do pretty much whatever with the field itself. And then once you enter the format for display in the yellow circled area in the second screenshot it will appear right where you pointed out in your image.

The format area is also really wide open. The default text example that pre-populates the field (but isn't actually there) will kick out:

Gamertag: Whatever it is they enter

But you can do any css classes and ips if/then template calls or whatever you want.

Link to comment
Share on other sites

Here's some more to give you an idea of the possibilities. A few years back on the 3x series on our gaming site all we had people do was drop in their Steam id on a custom profile field.

Now, just displaying that is pretty whatever.

SteamID: 1298578327347

So, instead, made a small steam icon graphic and in the display format area we entered something like this (not exact, just winging it here)

<a href='www.steamcommunity.com/profiles/{content}'><img src='steamgraphic.png'></a>

So then we got a link to their profile page underneath their avatar junk and so on.

From there, we pushed it out to popup steam card on hover, and so on... It's pretty doable if you put a bit of time into it.

Note that drop down for the field content let's you do a ton of things. Select box with you setting up some options to choose and on and on.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...