Support dropdown available to guests

Discussion in 'Styling and Customization Questions' started by Juan Carlos Solís, Apr 29, 2015.

  1. Juan Carlos Solís

    Juan Carlos Solís New Member

    Joined:
    May 29, 2013
    Messages:
    15
    Likes Received:
    3
    Hi there.

    I see that the Support dropdown is available to people that are not logged into the software:

    1.png
    And when you try to use any of the options on it, you get the following error:

    2.png

    Can I prevent this dropdown from being public? I only want registered customers to interact with my system so in my case there's no need for this option showing up to unregistered users.

    Any help will be appreciated.

    Regards!
     
    #1
    shahidi likes this.
  2. hostmaster

    hostmaster Member

    Joined:
    Jan 14, 2013
    Messages:
    33
    Likes Received:
    8
    This is really simple to accomplish.

    Go to: your-clientexec-installation > templates > default > views > layoutpartials > topmenu.phtml

    In this file, you will be using PHP to make this happen. Look for this line:

    Code:
    <?php if ( $this->user->hasPermission('support_view') || $this->user->hasPermission('knowledgebase_view') || $this->user->hasPermission('support_submit_ticket') || $pluginmenu['support']!="") { ?>
    
    Before it, put this:

    Code:
      <?php if($this->loggedin){?>
    Then look a few rows down for this:

    Code:
      </ul>
      </li>
      <?php } ?>
    Change it to this:

    Code:
      </ul>
      </li>  <?php } ?>
      <?php } ?>
    Save your changes.

    Now only people logged in will be able to see the Support link in the menubar.

    Hope this helps.
     
    Last edited: May 2, 2015
    #2
    Juan Carlos Solís likes this.
  3. Juan Carlos Solís

    Juan Carlos Solís New Member

    Joined:
    May 29, 2013
    Messages:
    15
    Likes Received:
    3
    Hi hostmaster!

    Thank you very much, this is exactly what I needed.

    I'm not much of a coder, so I didn't knew how to tell the software to show the option only for logged in users.

    In my opinion this should be in the config section of the system.

    This thread is now resolved :)

    Best regards!
     
    #3
  4. hostmaster

    hostmaster Member

    Joined:
    Jan 14, 2013
    Messages:
    33
    Likes Received:
    8
    Great news! Glad I could help.

    Good luck with your site.
     
    #4
  5. CE-Matt

    CE-Matt Administrator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    1,571
    Likes Received:
    274
    That's really strange. Can I get you to open a ticket with us? This menu should only display if there's options for the user to be able to use under it.
     
    #5
    Juan Carlos Solís likes this.
  6. Juan Carlos Solís

    Juan Carlos Solís New Member

    Joined:
    May 29, 2013
    Messages:
    15
    Likes Received:
    3
    Sure, with pleasure.

    Ticket #111161

    I appreciate your interest, this shows you really care about your customers.

    Best regards!
     
    #6
  7. CE-Matt

    CE-Matt Administrator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    1,571
    Likes Received:
    274
    Just took a look at the ticket and looks like it was all sorted out :)
     
    #7
    Juan Carlos Solís likes this.
  8. Juan Carlos Solís

    Juan Carlos Solís New Member

    Joined:
    May 29, 2013
    Messages:
    15
    Likes Received:
    3
    That's correct Matt. Thank you very much!

    In case someone else is having this behavior, this was happening due the permissions set to the Guest customer role.

    You can find this on Settings > Customer Groups > Guests. Here you have several options regarding support and KB. Just enable/disable them to suit your needs.

    Thanks to all of you for your kind help.

    Regards!
     
    #8
    shahidi likes this.

Share This Page