Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By bleem

Thread: Hide custom field if user not logged in

  1. #1
    Thread Starter
    Member tkddroid's Avatar
    Join Date
    Mar 2013
    Location
    Cedar City, UT
    Posts
    50
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Hide custom field if user not logged in

    I would like to hide the phone number and street address on single ads pages unless a user is logged in.

    So not just anyone can go to the site and see phone numbers and addresses but only registered users who are logged in....

    how can i mod the "single-ad_listing.php" to check if a user is logged in before it displays these custom fields?

  2. #2
    domino1957's Avatar
    Join Date
    Apr 2012
    Location
    Switzerland, The Net
    Posts
    779
    Thanks
    29
    Thanked 120 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Get my German translation files for JobRoller and ClassiPress here - and for FXtender here.

  3. #3
    Thread Starter
    Member tkddroid's Avatar
    Join Date
    Mar 2013
    Location
    Cedar City, UT
    Posts
    50
    Thanks
    3
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Member patrickjose's Avatar
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    83
    Thanks
    1
    Thanked 25 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    104
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    tkddroid likes this.

  6. #6
    okkwebmedia's Avatar
    Join Date
    Nov 2012
    Location
    Transylvania
    Posts
    5
    Thanks
    1
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    aj270303's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    2,106
    Thanks
    56
    Thanked 99 Times in 81 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: July 8th, 2016, 04:42 AM
  2. Custom field hide option
    By altafshah in forum ClassiPress General Discussion
    Replies: 10
    Last Post: August 12th, 2012, 07:22 AM
  3. Show / hide <div> when logged in/out
    By hugo in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 3rd, 2010, 09:36 AM