View Single Post
Old 12-23-2011, 12:50 PM  
Stephen
Consigliere
 
Industry Role:
Join Date: Feb 2003
Posts: 1,771
Quote:
Originally Posted by cyberxxx View Post
This code will do the trick (insert it right into your WP theme):

Code:
 <?php
if (!is_user_logged_in()) {
  echo "your annoying ad is here";
}
?>
Or do you want it made as a widget or so?
That works well with the WP login system, but I like to use straight .htaccess (CCBill) with a similar check for a "members" cookie:

Code:
<?php if (isset($_COOKIE['Members'])) { include("members.php"); } ?>
Stephen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote