PDA

View Full Version : Show code to users with more than x posts


sassou2009
06-13-2011, 01:41 PM
hey guys,
i'am going to lunch a new page, so i wanna only users with more than 150 posts to see the content of this page and if user has less than 150post he get a message that he is not allowed.

please HLEP

BirdOPrey5
06-16-2011, 01:29 AM
Assuming you're using a template to make the new page you can wrap it all in a conditional based on post count to show the page or not...

Basically:


<if condition="$vbulletin->userinfo[posts] > 149">

*All Original Code Here*

<else />
You must have 150 Posts or more to view this page!
</if>

sassou2009
06-16-2011, 05:56 PM
thx :)