MyBB Community Forums

Full Version: Customize Post Bit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As of right now, I have a custom profile field that I have managed to customize quite a bit. The text displays as "User Rating: Trusted", which is what I want. However, I want users that aren't rated to NOT be able to have this in their post bit (Currently displays as "User Rating:"). How can I make it so that only certain user IDs can have this in their post bit?
If you want to only show the custom field when there is something in there and hide it when it's empty, download the template conditionals plugin, and then use this code.

Quote:<if $post['fidX'] != "" then> your custom profile field code goes here </if>

Replace X with the ID for the profile field.
Took some trial and error to figure things out since PHP isn't my strong point, but I figured it out. I am beyond happy, this nearly completes all the changes I wanted to make. Thanks a ton man! Big Grin
No problem, happy to help out Big Grin