PDA

View Full Version : customizing postbit template help with conditional



himerus
Wed 31st Dec '03, 1:31am
I'm working on modifying the posbit to show some additional information from the users profile, and custmize the overall layout. (See attached image)

I no longer allow guest users to post without registering for obvious reasons, but I have several hundred posts that were from "Guests" and the first section labeled "Quick Info" just appears empty. The "Reputation" section has at least Posts: n/a.

I would like to insert a conditional that will exclude either or both sections from the postbit if it is a guest post.

Something like <if condition"guest[poster]">

Wayne Luke
Wed 31st Dec '03, 2:19am
Surround the entire area with:

<if condition="$post['userid']">
Stuff here....
</if>

himerus
Wed 31st Dec '03, 5:09am
Like a charm.... thanks!!!!