Results 1 to 1 of 1

Thread: Hiding and Showing the Post ad button

  1. #1
    Thread Starter
    compunetitcc's Avatar
    Join Date
    Nov 2012
    Location
    South Africa
    Posts
    162
    Thanks
    35
    Thanked 4 Times in 3 Posts

    Hiding and Showing the Post ad button

    Hi, I need to Hide the Post an Ad button when the user is not logged in. Then once they logged in they will see the button.

    Alos need to check if the user has an posted ad. If so the button will also be hidden. Only Logged in users with No ads will see the button. This is the code I have but not working:

    PHP Code:
              <?php
                  
    if ( is_user_logged_in() ) 
                  {
                      
                  } else 
                  {
                      echo 
    'Welcome, visitor!';
                  }
            
    ?>

                <a href="<?php echo CP_ADD_NEW_URL?>" class="obtn btn_orange"><?php _e'Post FREE Profile'APP_TD ); ?></a>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hiding Post-an-Ad Button
    By manishkhullar in forum ClassiPress General Discussion
    Replies: 0
    Last Post: August 29th, 2013, 11:31 AM
  2. Hiding login & post ad buttons
    By forsalebytracey in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 10th, 2013, 11:46 AM
  3. Hiding Post Name?
    By thepsionicstorm in forum Report JobRoller Bugs
    Replies: 1
    Last Post: July 16th, 2011, 11:18 AM
  4. Hiding a sticky post from showing up in Just Listed section
    By tbase in forum ClassiPress General Discussion
    Replies: 0
    Last Post: May 4th, 2010, 06:26 PM
  5. Hiding a sticky post from showing up in Just Listed section
    By tbase in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM