A simple way to run code for only 1 username...
<?php
if ($_SESSION['user']->username == "Myuser")
echo "<p>HTML CODE</p>;
?>
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I've done certain types of accounts using the roles framework, a custom role I developed, profile manager and such. The only thing missing (I don't do it 'cause I don't need that for my project) is some sort of paypal integration at user registration. For instance, when using profile manager, you can let users choose which kind of profile they want. I thought that if users selects 'premium' profile, to display a paypal 'pay now' button. It is harder than it sounds, but it could be a good start.
Possible append a $action_user->username to a URL
Starting with Elgg 1.8: don't use $_SESSION['user] anymore. Instead use elgg_get_logged_in_user_entity().
In 1.5 and above use get_loggedin_user(). Never use $_SESSION.