Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

link for unregistered users

This discussion is related to the Galleries addon.
kopnakopna Coimbra Portugal ☯

Hi @vrijvlinder

Is it possible to turn the show link for unregistered users?
thank you =)

chidez

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2017

    Find this bloc in the plugin's default.php

    public function Base_Render_Before($Sender) {
                $Session = Gdn::Session();
                if ($Sender->Menu){
                    $Sender->Menu->AddLink('Gallery',T('Gallery'), 'gallery', array('Plugins.Attachments.Upload.Allow'));
    

    Replace with this

        public function Base_Render_Before($Sender) {
                        if ($Sender->Menu){
                        $Sender->Menu->AddLink('Gallery',T('Gallery'), 'gallery');
    
    whu606
  • kopnakopna Coimbra Portugal ☯

    @vrijvlinder написал:
    Find this bloc in the plugin's default.php

    public function Base_Render_Before($Sender) {
              $Session = Gdn::Session();
              if ($Sender->Menu){
                  $Sender->Menu->AddLink('Gallery',T('Gallery'), 'gallery', array('Plugins.Attachments.Upload.Allow'));
    

    Replace with this

        public function Base_Render_Before($Sender) {
                      if ($Sender->Menu){
                      $Sender->Menu->AddLink('Gallery',T('Gallery'), 'gallery');
    

    I admit my mistake in my question :) only viewing gallery. I know I'm boring - excuse me please =)

    K17
Sign In or Register to comment.