Info

Category: uncategorized
Licence: GNU General Public License (GPL) version 2
Updated: 64 days ago
Downloaded: 128

Releases

Latest:

Previous releases:
None
More projects by Le Luyen:

0

Recommendations

Summary:

Full description:

create_link_login

(Edit your project's description!)

Release notes:

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

What does this Plugin do?

Ben Wagner 262 days ago

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

@Shilog

try it and see ;-)

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

my english is not well, but you trying it.

I' m hack it for create link login(Not Plugin), because elgg don't give link(only area).

Le Luyen 261 days ago