Code: Select all
<!-- IF "postcount higher then X" -->
with this? thank you in advance, I hope this is posted correctly. I know the above code
wont work, its just a plain English version of what i want it to do.

help.
Code: Select all
<!-- IF "postcount higher then X" -->
Code: Select all
$template->assign_vars(array(
'X_POSTS' => ($user->data['user_posts'] > $min_posts) ? true : false;
));
Code: Select all
<!-- IF X_POSTS -->
code here if they have greater than $min_posts
<!-- ELSE -->
code here if they have less than or equal to $min_posts
<!-- ENDIF -->
Code: Select all
<!-- IF X_POSTS -->
code here if they have greater than $min_posts
<!-- ENDIF -->
Code: Select all
<!-- IF not X_POSTS -->
code here if they dont have greater than $min_posts
<!-- ENDIF -->
Code: Select all
if($user->data['user_posts'] >= 50)
{
$template->assign_var('S_POST_CHECK', true);
}
Code: Select all
<!-- IF S_POST_CHECK -->
Stuff to show to users with 50 or more posts
<!-- ENDIF -->