Log in

View Full Version : zero post no public profile.


gabs1980
03-19-2009, 11:58 AM
Any pointers for disable profile page to the public where the users profile has no posts similar to the "members" list.

I know I can disable via user groups so that x number of post you can add a profile but I'd like to work it the other way around and disable public view of profiles with say less than 10 posts..

Thanks.

Lynne
03-19-2009, 02:01 PM
I guess you can write a plugin to check the number of posts for $userinfo and if less than 10 give an error message (or something like that). Perhaps try using the member_start hook location. I'm not sure what userinfo is available at that point, so you'll have to spit out some variables and see and then you can write your condition after you know what you have available to you.