Remove Display name
How can to remove Display name field from Registration form 
For Elgg registration action
Open the file
elgg\actions\register.php
And change this code
$name = get_input('name');
With this
$name = get_input('username');
Open the file
elgg\views\default\forms\register.php
And change this code
$name = get_input('n');
With this
$name = get_input('u');
And delete this code
<div class="mtm">
<label><?php echo elgg_echo('name'); ?></label><br />
<?php
echo elgg_view('input/text', array(
'name' => 'name',
'value' => $name,
'class' => 'elgg-autofocus',
));
?>
</div>
For adding new user action
Open the file
elgg\actions\useradd.php
And change this code
$name = get_input('name');
With this
$name = get_input('username');
Open the file
elgg\views\default\forms\useradd.php
And delete this code
<div>
<label><?php echo elgg_echo('name');?></label><br />
<?php
echo elgg_view('input/text', array(
'name' => 'name',
'value' => $name,
));
?>
</div>




hi
how to remove " write a blog post " in menu blog and "upload a file" in menu file
elgg v 1.7.11
thank's for your help
For Elgg 1.7.x
Remove write a blog post
Open the file
elgg\mod\blog\start.php
And delete this code
add_submenu_item(elgg_echo('blog:addpost'),$CONFIG->wwwroot."pg/blog/new/{$page_owner->username}/");
Remove upload a file
Open the file
elgg\mod\file\start.php
And delete this code
add_submenu_item(elgg_echo('file:upload'), $CONFIG->wwwroot . "pg/file/new/". $page_owner->username);
"write a blog post" has removed but the member stil can write/update/upload their blog artikel.why ?
thank's
Ahh…
U need to remove action&case for 'new' page also…
This full solution for Remove write a blog post for Elgg 1.7.x
Open the file
elgg\mod\blog\start.php
And delete this code
register_notification_object('object', 'blog', elgg_echo('blog:newpost'));
Delete this code
if (can_write_to_container(0, page_owner()) && isloggedin()) add_submenu_item(elgg_echo('blog:addpost'),$CONFIG->wwwroot."pg/blog/new/{$page_owner->username}/");
Delete this code
case "new":
set_input('username', $page[1]);
include(dirname(__FILE__) . "/add.php");
break;
case "edit":
set_input('blogpost', $page[1]);
include(dirname(__FILE__) . "/edit.php");
break;
And delete this code
case "new":
$url = "{$CONFIG->wwwroot}pg/blog/new/{$page[0]}/";
break;
Also you need to delete some linka as 'Edit' and 'Delete':
Open the file
elgg\mod\blog\views\default\object\blog.php
And delete this code
<p class="options">
<?php
if ($canedit) {
?>
<a href="<?php echo $vars['url']; ?>pg/blog/edit/<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a>
<?php
echo elgg_view("output/confirmlink", array(
'href' => $vars['url'] . "action/blog/delete?blogpost=" . $vars['entity']->getGUID(),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
));
// Allow the menu to be extended
echo elgg_view("editmenu",array('entity' => $vars['entity']));
?>
<?php
}
?>
</p>
————
Now all OK
thank's
maybe the member using plugin ? because they still can write/update/upload their blog artikel.
Try it:
Open the file
elgg\mod\blog\start.php
And remove this code
register_action("blog/add",false,$CONFIG->pluginspath . "blog/actions/add.php");
register_action("blog/edit",false,$CONFIG->pluginspath . "blog/actions/edit.php");
Check again
it's work.thank you very much.
but some think trouble when i edit my "external page" in
administration.not simple again,
like this….
<p><a href=" src="; border="0" width="240" height="240" style="border: 0;" /></a></p>
i confuse
before i just embed a picture,now show like that
thank,s
thank,s
for remove upload a file not work.if i remove that code,in my web site show..
Parse error: syntax error, unexpected '}' in ………../public_html/mod/file/start.php on line 104
As in the previous post, you need a little more code changes
Open the file
elgg\mod\file\start.php
And delete this code
if (can_write_to_container($_SESSION['guid'], page_owner()) && isloggedin())
add_submenu_item(elgg_echo('file:upload'), $CONFIG->wwwroot . "pg/file/new/". $page_owner->username);
Delete this code
case "new":
set_input('username', $page[1]);
require($CONFIG->pluginspath . "file/upload.php");
break;
Delete this code
case "new":
$url = "{$CONFIG->wwwroot}pg/file/new/{$page[0]}/";
break;
And delete this code
register_action("file/upload", false, $CONFIG->pluginspath . "file/actions/upload.php");
Read also about 'How can to disallow notification about file uploading': http://elgghacks.com/disallow-notification-about-file-uploading
And 'How to remove the message about file uploading from Riverdashboard': http://elgghacks.com/remove-the-message-about-file-uploading/
—————-
Remember! If you'll to disable files uploading, you must to disable Embed plugin also. There may be problems!
How can i add user's "black list"???
What you mean 'black list' ?
Before registration on the site use this plugin:
After the registration of users you can to ban any user from the user's hover menu (if you are an administrator)
example…
I am user, and I want to ban somebody ONLY FOR ME
(Sorry, I can't speak English… sorry (Armenia))
Ahh…
)
Such a function is not in Elgg by default. (btw, good idea
Just set your default the access level as 'Friends' or/and create some 'Friends collection'
Also try these Elgg plugins for additional features:
'Social privacy' from (A plugin that will allow only to your friends to make comments on your public pictures, files, blogs, etc.)
'Messages Block' from http://weborganizm.org/sfera/v/65/elgg-customizations (private messaging: friends only)
'Westors Elgg Manager' from (Users can view and edit external contacts, send e-mails, manage their friends and groups)
great!!!
please help me to use "default access level" in elgg 1.8.8
can i remove Subject from messages
Sorry
What's subject? What's message? Is a plugin aka Elgg Messages or …?
I'm about elgg default plugin: Messages 1.8
Open the file
elgg\mod\messages\views\default\forms\messages\reply.php
And delete this code
<div>
<label><?php echo elgg_echo("messages:title"); ?>: <br /></label>
<?php echo elgg_view('input/text', array(
'name' => 'subject',
'value' => $reply_title,
));
?>
</div>
Open the file
elgg\mod\messages\views\default\forms\messages\send.php
And delete this code
<div>
<label><?php echo elgg_echo("messages:title"); ?>: <br /></label>
<?php echo elgg_view('input/text', array(
'name' => 'subject',
'value' => $subject,
));
?>
</div>
after removing codes i have an error while sending message:
Sorry; you need to actually put something in the message body before we can save it.
Especially for you: http://elgghacks.com/elgg-messages-without-subject/
thank you very much!!!
so these changes can stop elgg asking for a display name on registration..
what effect does this have on the way the site functions?
does the display name get replaced with username in every way possible? e.g. on the right click – hover menu for each member?
thanks
In first, need to restrict the creating/editing 'Display name' for users
Open the file
elgg\views\default\forms\profile\edit.php
And delete this code
<div>
<label><?php echo elgg_echo('user:name:label'); ?></label>
<?php echo elgg_view('input/text', array('name' => 'name', 'value' => $vars['entity']->name)); ?>
</div>
Next, need to replace $name with $username in user_hover_menu
Open the file
elgg\views\default\navigation\menu\user_hover.php
And edit this code
$name_link = elgg_view('output/url', array(
'href' => $user->getURL(),
'text' => "<span class=\"elgg-heading-basic\">$user->name</span>@$user->username",
'is_trusted' => true,
));
With this code
$name_link = elgg_view('output/url', array(
'href' => $user->getURL(),
'text' => "<span class=\"elgg-heading-basic\">@$user->username</span>",
'is_trusted' => true,
));