X
Elgg is a open source social networking platform

This widget requires Flash Player 9 or better


Share |

Tags

This will be shown to users with no Flash or Javascript.



Pages home > Custom Your Index part 2

Custom Your Index part 2

Now we have the basic page in html we are going to start adding elements of the elgg php.  We are going to start with the login, because, well lets face it if no one can login then what's the point.  Please remember this tutorial is for example only.  The code we will be picking out of elgg will be the default login, if you plan to use a plugin login the location call will be different then is illustrated here.

We have 9 cells with in our table, most often website login's are location in the upper right corner of a website so in your code we will be using the following bolded cell.

<table border="0" width="100%" id="table1" cellpadding="4">

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>this one</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table>

Now we know where we want our code, we need to go find the code we wish to place there.

<?php echo elgg_view("account/forms/login"); ?>

This is the very simple line to call the login form.  The location may be different if your elgg is in a subdirectory.  Place the line here:

<table border="0" width="100%" id="table1" cellpadding="4">

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td><?php echo elgg_view("account/forms/login"); ?></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table>

You will not see this login to start with, do not worry about this yet.

 

different, going, location, going to start, website

Information

Last updated 278 days ago by Edward Love