Different themes: no login possible

Permalink
Hi,
I did a new install of Concrete5 v5.6.2.1 (german) yesterday, but I'm not able to use different themes other than the built in ones.
When I'm using the built in themes, I see the login link in the footer, but on every 3rd party theme I used there's is nothing to click on it, so I have to force a login window via url.

What am I doing wrong?
Wrong permissions in C5 (theme) folder on the harddisk or something different?
Regards,
Mike

mike2013
 
mike2013 replied on at Permalink Reply
mike2013
I found a temporary solution by myself:
I installed the Add-On "Login" and created a "Login" block in the footer.
What a surprise:
I've got 2 Login blocks now. :)
So I deleted the created "Login" block, but the second one is still sitting there and I think it'll stay there.
Maybe it's because I had the idea to clear cache? Don't know... hmm. ;)
MichaelG replied on at Permalink Reply
MichaelG
Because it's unprofessional.

Unless you have a website that the registration is open to the public, why would you put a link for the public to login. Isn't it just for YOU? Why does anyone else need to see it?

the URL to login is always just yourdomain.com/login
or yourdomain.com/index.php/login if you don't have Pretty URLs turned on.
mike2013 replied on at Permalink Reply
mike2013
Sorry, I don't understand: please read my first post.
I wasn't able to login by myself as there were _no_ login fields _only_ on 3rd pary themes.
I had to manually fill in the link (you mentioned) in the browser window, which I didn't have to do before. This was a rescue way btw. :)
annekeh replied on at Permalink Best Answer Reply
annekeh
Hi Mike,

It is possible that the installed theme doesn't have the login-link hardcoded in the footer. You should check in the elements/footer.php file. I use always the folowing code to place a login link (5.6):
<?php 
         $u = new User();
         if ($u->isRegistered()) { ?>
    <?php echo t('Currently logged in as <b>%s</b>.', $u->getUserName())?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a>
    <?php  } else { ?>
    <a href="<?php echo $this->url('/login')?>"><?php echo t('Admin')?></a>
    <?php  } ?>
mike2013 replied on at Permalink Reply
mike2013
Thank you! I'll try it.
mike2013 replied on at Permalink Reply
mike2013
It works great, thank you!