Login/Account Information Like concrete.org's Site
Permalink
Is there a way to have horizontal login info like this site's top menu where it shows "Account" and "Sign Out" at the top.
I'm basically wondering how to modify the login block so it spreads horizontally (across the top of the forum addon) but having the account link up there too wouldn't hurt.
I'm basically wondering how to modify the login block so it spreads horizontally (across the top of the forum addon) but having the account link up there too wouldn't hurt.
I usually just don't even bother with the login block and instead hard-code the login form where I want to in the template. Just go to your site's login page and "view source" in the browser to see what the html of the form and input fields needs to be, and make the form post to your site's login page.
This code is in the footer of the default theme. It will say "Login" and, when you are logged in, it'll say, "You are currently logged in as XYZ"
The lines after "All Rights Reserved" may be what you're looking for (?).
<div id="footer">
<span class="powered-by"><a href="http://www.concrete5.org" title="<?php echo t('concrete5 - open source content management system for PHP and MySQL')?>"><?php echo t('concrete5 - open source CMS')?></a></span>
© <?php echo date('Y')?> <a href="<?php echo DIR_REL?>/"><?php echo SITE?></a>.
<?php echo t('All rights reserved.')?>
<?php
$u = new User();
if ($u->isRegistered()) { ?>
<?php
if (Config::get("ENABLE_USER_PROFILES")) {
$userName = '<a href="' . $this->url('/profile') . '">' . $u->getUserName() . '</a>';
} else {
$userName = $u->getUserName();
}
?>Viewing 15 lines of 20 lines. View entire code block.
The lines after "All Rights Reserved" may be what you're looking for (?).