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> </td>
<td> </td>
<td>this one</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </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> </td>
<td> </td>
<td><?php echo elgg_view("account/forms/login"); ?></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
different, going, location, going to start, website
Last updated 278 days ago by Edward Love
| | Goof Pages | Goof Groups | Goof Blog | Quiz | Goof Videos | |
| All rights reserved. GoofBucket.com - 2009. |
About •
Terms •
Policy •
Contact •
|
