by Le Luyen
First uploaded 262 days ago
0
Recommendations
Summary:
Full description:
create_link_login
(Edit your project's description!)
When you don't want to appear the form login in main page, you will think creat a link for login
Ex: < a href="login.php">Login</a>
after download it, replace folder 'account', and use way:
<a href="<?php echo $vars['url']; ?>account/login.php"><?php echo 'Login'; ?></a> for all area of site
Or use way: Open mod/custom_index/views/default/canvas/layouts/new_index.php
find:
<?php
//this displays some content when the user is logged out
if (!isloggedin()){
echo elgg_view("index/lefthandside");
//display the login form
echo $vars['area1'];
echo "<div class=\"clearfloat\"></div>";
}
?>
and replace
<?php
//this displays some content when the user is logged out
if (!isloggedin()){
echo elgg_view("index/lefthandside");
//display the login form
//echo $vars['area1'];
?>
<a href="<?php echo $vars['url']; ?>account/login.php"><?php echo 'Login'; ?>
<?php echo "<div class=\"clearfloat\"></div>";
}
?>
Have fun
Surprised to see the lack of reponse.
I am new to Elgg and just came across the site.
Does Login appear in the place where Logout appears after logging in?
shillo 262 days ago
exactly what the description says LOL ;-)
DhrupDeScoop 262 days ago
@ Dhrup
I tried it, and saw it's deemed a misconfigured plugin.
Have I to make all the changed mentioned by Le Luyen?
I din't understand it properly (for instance, after download it, replace folder 'account'), so I deftly removed the plugin, thinking I will come back to it later. I need that change, but right now I am tenaciously, monomaniacally, pursuing just one thing: my monopoly on Pages :) as the Admin. Ha ha ha :)
shillo 261 days ago

Ben Wagner
Profile
Friends
Friends of
Pages
Plugins
What does this Plugin do?
Ben Wagner 262 days ago