Log in

View Full Version : Conditional Postcount Ranks


Talisman
08-27-2006, 11:25 PM
Would it be possible display post count ranks that are gender-based using a conditional statement off the member's gender? Say..... at 100 posts, the title would be either AAA or BBB depending on whether the member was male or female.

How would this be coded? Is it a simple template edit? Would this add to the page queries?

Kirk Y
08-27-2006, 11:42 PM
Try something like this:
<if condition="$post[posts] >= 100 AND $post[fieldX] == 'Male'">AAA</if>
<if condition="$post[posts] >= 100 AND $post[fieldX] == 'Female'">BBB</if>

Where fieldX is the Custom Profile Field Number specifying the User's Gender.

Talisman
08-27-2006, 11:56 PM
Thanks, acidburn. I thought it would be something like this.

How would I do this, though, so it ties in to the full ranking list we set up in the ACP. Essentially giving both male/female terms at all ranking levels?

Kirk Y
08-28-2006, 12:05 AM
That'd require editing the Ranking System, I imagine - more than a template edit, anyway.