Results 1 to 3 of 3

Thread: Can anyone assist with this code?

  1. #1
    Thread Starter
    Expired Customer gmanct's Avatar
    Join Date
    Jul 2015
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone assist with this code?

    Hi everyone

    I have enabled the Inquiry Form Login option in settings which forces users to be logged in order to view the contact tab for an ad.

    However this allows users with any role (ie subscriber, contributor etc) to view the contact tab.

    I ave found the code that enables this option, and I was wondering if anyone knows a way to amend the code so that it allows only users with a Contributor role to view the contact tab?

    <?php if ( ( $cp_options->ad_inquiry_form && is_user_logged_in() ) || ! $cp_options->ad_inquiry_form ) {

    Any help much appreciated

    g

  2. #2
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  3. #3
    Thread Starter
    Expired Customer gmanct's Avatar
    Join Date
    Jul 2015
    Posts
    21
    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. Please can you assist adding the naira currency to my taskerr
    By hostlord007 in forum Taskerr General Discussion
    Replies: 1
    Last Post: August 15th, 2015, 12:29 PM
  2. display extra code before showing the actual coupon code
    By usrini10 in forum Clipper General Discussion
    Replies: 4
    Last Post: August 10th, 2015, 12:06 PM
  3. [SOLVED] View Source Code shows Code that should only be shown to Admins?
    By mintvouchercodes in forum Help Using Clipper
    Replies: 6
    Last Post: June 10th, 2014, 04:58 AM
  4. Replies: 4
    Last Post: June 9th, 2014, 12:32 PM
  5. Dimitris Adding Script code to pages - theme is deleting code
    By nzcid in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: March 28th, 2013, 08:33 AM