StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-24-2009, 05:04 AM
oicurmt3's Avatar
oicurmt3 oicurmt3 is offline
Registered User
Pro Plus Member
 
Join Date: Aug 2009
Posts: 143
Default IF registered user has posted X comments THEN do this

IF registered user has posted X comments THEN do something ELSE do this

I have this nifty piece of code that does this

IF user is Logged-in THEN 'do something' ELSE 'do this'
<?php if (is_user_logged_in()): ?>


DO SOMETHING</p>
<?php else: ?>


DO THIS</p>
<?php endif; ?>

But I'd like to know how to adapt this so that the DO SOMETHING also has a condition that the user must have posted at least X comments.

Thanks
__________________
I love my son more than anything else in the world.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posted comments sjbuckley General Discussion 7 11-11-2009 12:39 AM
Display Posted By, Date, # Comments, Article Views thebred General Discussion 2 07-06-2009 07:25 PM
Posted By/ Leave a Comment / Comments Off / Date / Time financeguy General Discussion 1 05-13-2009 10:51 AM


All times are GMT -5. The time now is 03:21 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.