MyBB Community Forums

Full Version: Postbit Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I've added a custom field to my postbit for example "Favourite Movie"

Now you don't have to enter anything in the field once you register for this so now it's on my postbit on the left hand side and just empty.

I want to make so if you don't enter a fav movie then it won't appear on your post bit.

I've done this before but don't know the code i need, I've installed the PHP in Templates / Complex Templates plugin and i need to use the IF tags but the last time i did it was with image and this is just for normal text so for example with a image I'd just put this in my postbit_author_user

            <if !empty($post['fid6']) then>
                <img src="images/twittxbox360/twitter.png" alt="" />{$post['fid6']}<br />
            </if>
<if !empty($post['fidX']) then>
       {$post['fidX']}
</if>
It's still there Confused
^ that should work if field id (X) is correct. anyway, see this)
I prefer using the way i said, got to be a reason why it isn't working it's worked before.
^ please see suggested method example here and another method here
Sorted it.

<if !empty($post['fid6']) then> <img src="images/glowing/postbitimages/fb.png"alt=""/><a href="http://www.facebook.com/#!/{$post['fid6']}"target="_blank">{$post['fid6']}</a><br/> </if>