Welcome to Elgg's documentation
This is the place to find documentation on all aspects of Elgg. If you would like to contribute your own documentation please do; we want this to be a real community effort!
Remove FOAF from Friends sub menu and profile edit
From Elgg Documentation
To turn off FOAF (friend of a friend) feature in elgg.
To remove it from the friends submenu...
Open /mod/friend/lib.php
Comment out the following beginning section at around line 39 as follows:
/*
$PAGE->menu_sub[] = array( 'name' => 'friend:foaf',
'html' => a_href( "{$CFG->wwwroot}{$friends_username}/foaf/",
__gettext("FOAF")));
*/
To remove the upload FOAF option from the edit profile page...
Open /profile/profile.class.php
Comment out the following section beginning at around line 162 as follows:
/*
$body .= "<p> </p><form action=\"".url . "profile/edit.php?profile_id=".$page_owner."\" method=\"post\" enctype=\"multipart/form-data\">";
$body .= "<p>" . __gettext("You can import some profile data by uploading a FOAF file here:") . "</p>";
$body .=templates_draw(array(
'context' => 'databox',
'name' => __gettext("Upload a FOAF file:"),
'column1' => "<input name=\"foaf_file\" id=\"foaf_file\" type=\"file\" />",
'column2' => "<input type=\"submit\" value=\"".__gettext("Upload") . "\" />"
)
);
$body .= <<<END
<input type="hidden" name="action" value="profile:foaf:upload" />
<input type="hidden" name="profile_id" value="$page_owner" />
</form>
END;
*/

