How to Make Static Profile Pages in Elgg

This article will give you an easy to follow guide on how to make default and static user profiles in Elgg.

Before I jump into I am going to explain what is a profile page. Well, Elgg provides a feature in which anyone that creates an account in Elgg will have a profile page. A profile page is where anyone can describe himself in any way desired.

Default Profile Page:

A way to manage profile pages and making them non user editable is by creating static profiles to all users. By doing this, you can give the desired layout of a profile page that everyone will have. However, before making them static, we will need to establish the default profile that everyone will have. To do this we do the following:

1. Login to your site as an Admin. Go to the Administration Page, then to Tools Administration and look for a plugin called defaultwidgets and enable it. This plugin comes by default in any recent version of Elgg:

2.After enabling it, please go to the Administration menu and click on the Default Profile Widgets link:

3. After clicking on that link, a different page will load. There you can drag and drop the elements that you want to establish by default on all the profiles on your Elgg site:

4. After setting custom default profile, we make them non editable. Basically what we are going to do is removing the edit page button that is located on the profile page.

Profile with Default Custom Layout:

5. Go to YourElggFolder/views/default/canvas/layouts/ and open the file called widgets.php.

6. Look for this line:

<a href=”javascript:void(0);”><?php echo(elgg_echo(‘dashboard:configure’)); ?></a>

That line  is located on line 267. Remove it and the edit page buttom will be gone:

For more info about Elgg hosting solutions please visit Arvixe-Elgg Hosting

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , | Posted under Elgg | RSS 2.0

Author Spotlight

Rodolfo Hernandez

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

5 Comments on How to Make Static Profile Pages in Elgg

  1. Squiblez says:

    Lol i actually went to an Elgg powered site like this. And inject the script and modified my page. The other 30 or so members for some local sports team of some kind were really confused :P

  2. darwinrc says:

    Do you know if I can define a grid of widgets for a page different from profile and dashboard? I would like to add those widgets to a user-defined page or plugin.

    Thanks

  3. christine says:

    I don’t know if this page is still active but I am hoping :) I have just installed Elgg for my website and want to make default profiles that users cannot change the layout of. I am using the newest version which is 1.8.18 so the setting/instructions you give on this page are no longer accurate. Instead of an Edit page link, not there is an Add Widgets button and the existing widgets can be moved. Is there an updated document somewhere for the newest version? Thanks!!

Leave a Reply

Your email address will not be published. Required fields are marked *


6 + 2 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>