Log in

View Full Version : Custom Profile Field Forumhome


paul41598
07-20-2006, 05:28 PM
I'm trying to write a conditional and need help. I made a custom profile field, YES & NO options. Now Im trying to display something on the forumhome, if the user selects YES in their USERCP.


<if condition="$post[field38]=='Yes'">
INFO
</if>


This works great in the postbit, but not for forumhome template. Any ideas?

Mythotical
07-22-2006, 01:46 AM
You need to create a plugin for your index page that will call field38 then it will work. View my Alias hack via my profile if you need an example.

Kirk Y
07-22-2006, 05:50 AM
No you don't. It'd be easier to just do a template edit, in my opinion.

Use $bbuserinfo instead of $post. $post is used for the postbit variables.