Results 1 to 10 of 10

Thread: Hide Contact / Poster Tabs

  1. #1
    Thread Starter
    dollarpermile.com's Avatar
    Join Date
    May 2010
    Posts
    112
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Hide Contact / Poster Tabs



    My ad site is dedicated to moving freight http://www.dollarpermile.com and I didn't want unsubscribed users to view contact details, so after several attempts and some help from Jomark

    http://appthemes.com/forum/showthrea...-hwo-can-reply

    this is what I have done...

    Using the code given to me by Jomark in the above link. I began placing it into my sidebar-comments page, which worked however left the user able to view poster details and thus contact poster... So after much trial and error, I now have placed the code in my sidebar-ad.php file.


    Find your sidebar-ad.php file and place the tags from the above linked forum post like I did...
    Code:
     
     
     
    <div class="content_right">
     
     
        <div class="tabprice">
    ----------------------------------------Above is extra code to show where I placed code---------------------------------
     
    <?php // add a private menu
    if(current_user_can('contributor' || 'administrator' || 'editor' || 'subscriber')) : ?>
              <?php if (!empty($gmap_check)) { ?>
            <ul class="tabnavig">
            [*]<span class="big"><?php _e('Map', 'cp') ?></span>
              <?php } ?>[*]<span class="big"><?php _e('Contact', 'cp') ?></span>[*]<span class="big"><?php _e('Poster', 'cp') ?></span>
     
            <?php endif; ?>
      --------------------------------------Below is extra code to show where I placed code-------------------------------------     [/list]
     
        <?php if (!empty($gmap_check)) { ?>
    Now You may noticed that I modified the original code just a bit by adding more users roles who can view...

    Code:
    <?php // add a private menu
    if(current_user_can('contributor' || 'administrator' || 'editor' || 'subscriber')) : ?>
    So now when a unregistered visitor views an ad they cannot see any contact detail however they can still see the Google Map and have now way to contact the ad poster until becoming a subscriber...



    I hope this helps someone... Now if I could only change the names of the "contact" and "poster" tabs....
    Last edited by pepsi; July 7th, 2010 at 02:47 AM.

  2. #2
    Thread Starter
    dollarpermile.com's Avatar
    Join Date
    May 2010
    Posts
    112
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Re: Hide Contact / Poster Tabs

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    dollarpermile.com's Avatar
    Join Date
    May 2010
    Posts
    112
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Talking Re: Hide Contact / Poster Tabs

    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Amateur
    Not a Verified Customer
    zupafly's Avatar
    Join Date
    Jun 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hide Contact / Poster Tabs

    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    dollarpermile.com's Avatar
    Join Date
    May 2010
    Posts
    112
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Re: Hide Contact / Poster Tabs

    You must be an AppThemes customer and logged in to view this response. Join today!

  6. The Following User Says Thank You to dollarpermile.com For This Useful Post:

    zOrg (September 24th, 2012)

  7. #6
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts

    Re: Hide Contact / Poster Tabs

    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.

  8. #7
    Member Almost's Avatar
    Join Date
    Jul 2010
    Posts
    97
    Thanks
    14
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    logosinmotion's Avatar
    Join Date
    Apr 2013
    Location
    United States
    Posts
    49
    Thanks
    7
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    Junior Member speedy222's Avatar
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #10
    Expired Customer kamyap's Avatar
    Join Date
    Oct 2016
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 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. How To Hide wp-admin page
    By bili.ph in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 20th, 2009, 02:25 AM