Results 1 to 3 of 3

Thread: How to know if user is logged in

  1. #1
    Thread Starter
    Rookie ismael33's Avatar
    Join Date
    May 2012
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    How to know if user is logged in

    Hello,

    in theme-header.php i want to change the link that appears in:

    <a href="<?php echo CP_ADD_NEW_URL ?>" class="obtn btn_orange"><?php _e('Post an Ad', 'appthemes') ?></a>

    I want to show registration link to guests and new-ad link to users.

    How can i know if the user is logged in or not?

    Thank you

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. The Following User Says Thank You to jomarkosabel For This Useful Post:

    ismael33 (June 4th, 2012)

  4. #3
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





  5. The Following User Says Thank You to mohsinoffline For This Useful Post:

    ismael33 (June 4th, 2012)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Ver 3.1.7 - I have logged on other user account
    By jamai in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: July 9th, 2012, 02:07 PM
  2. Logged In plugin...
    By aj270303 in forum ClassiPress General Discussion
    Replies: 4
    Last Post: May 2nd, 2012, 06:13 AM
  3. Replies: 4
    Last Post: September 18th, 2011, 11:40 AM
  4. top black bar options links to worpress admin section when user is logged in.
    By faisalloe in forum ClassiPress General Discussion
    Replies: 4
    Last Post: June 25th, 2011, 03:49 PM
  5. [MOD NEEDED] PHP to call logged in user
    By doctorcilantro in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 7th, 2010, 11:01 AM