Hi!
I am trying to customize the frontpage and want to remove the "lastest files", "latest groups" etc. from the homepage. (www.buddhaland.asia)
I deleted from the file mod/elggbook/views/default/canvas/layouts/new_index.php
The following code (in this example the groups):
<?php
}
if(is_plugin_enabled('groups')){
?>
<!-- display latest groups -->
<div class="index_box">
<h2><?php echo elgg_echo("custom:groups"); ?></h2>
<?php
if (!empty($vars['area5'])) {
echo $vars['area5'];//this will display groups
}else{
echo "<p><?php echo elgg_echo('custom:nogroups'); ?>.</p>";
}
?>
</div>
<?php
}
?>
</div>
But all I get is a blank page as result.
Do I need to do more?
Where do I need to look!
I am doing trial and error for the complete sunday, would really like the solution!
Thanks!!!!!!!!
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.
- Your Web Support@yourwebsupport

Your Web Support - 0 likes
You must log in to post replies.Thank you Dave!!!!! U rock for answering.
BUT you misinterpreted my message (I think). You thought I was adding the code above BUT I DELETED the code above from the file mod/elggbook/views/default/canvas/layouts/new_index.php
This was clearly not my solution I thought it was be because the result was a blank page. I love Elgg and being involved for a month now. I try to master it.
I hope you can point me out HOW TO DELETE the "LATEST ............ files, groups, etc" from the homepage.
I only want the gif image, login &LATEST USERS to be displayed. Nothing more. (see www.buddhaland.asia)
So I need to delete these topics. How do I do that? (I want the functionallity of groups etc. inside, but not showing the latest topics on the home/front page)
Thank you very much in advance!
Greetings from Spain
<?php
/**
* Elgg custom profile
* You can edit the layout of this page with your own layout and style. Whatever you put in the file
* will replace the frontpage of your Elgg site.
*
* @package Elgg
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
?>
<div id="custom_index">
<!-- left column content -->
<div id="index_left">
<!-- welcome message -->
<?php
if (isloggedin()) {
?>
<!-- somethin here -->
<?php } else { ?>
<!-Registration appears -->
<div class="index_box">
<h2><?php echo elgg_echo("Register Today!!"); ?></h2>
<?php
$username = get_input('u');
$email = get_input('e');
$name = get_input('n');
$admin_option = false;
if (($_SESSION['user']->admin) && ($vars['show_admin']))
$admin_option = true;
$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name', 'class' => "general-textarea", 'value' => $name)) . "</label><br />";
$form_body .= "<label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email', 'class' => "general-textarea", 'value' => $email)) . "</label><br />";
$form_body .= "<label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username', 'class' => "general-textarea", 'value' => $username)) . "</label><br />";
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "general-textarea")) . "</label><br />";
$form_body .= "<label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "general-textarea")) . "</label><br />";
if ($admin_option)
$form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option'))));
$form_body .= elgg_view('input/hidden', array('internalname' => 'friend_guid', 'value' => $vars['friend_guid']));
$form_body .= elgg_view('input/hidden', array('internalname' => 'invitecode', 'value' => $vars['invitecode']));
$form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register'));
$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register')));
?>
<div id="register-box">
<?php echo elgg_view('input/form', array('action' => "{$vars['url']}action/register", 'body' => $form_body)) ?>
</div>
</div>
<?php
}
?>
<?php
if(is_plugin_enabled('file')){
?>
<!-- display latest files -->
<div class="index_box">
<h2><?php echo elgg_echo("custom:files"); ?></h2>
<?php
if (!empty($vars['area2'])) {
echo $vars['area2'];//this will display files
}else{
echo "<p><?php echo elgg_echo('custom:nofiles'); ?></p>";
}
?>
</div>
<?php
}
?>
</div>
<!-- right hand column -->
<div id="index_right">
<!-- more content -->
<?php
//include a view that plugins can extend
echo elgg_view("index/righthandside");
?>
<!-- latest members -->
<?php
if (isloggedin()) {
?>
<!-- somethin here -->
<?php } else { ?>
<!--intro Image -->
<div class="index_box">
<img src="<?php echo $vars['url']; ?>mod/elggbook/graphics/intro.png" width="532" height="314" />
</div>
<?php
}
?>
<div class="index_box">
<h2><?php echo elgg_echo("custom:members"); ?></h2>
<div class="contentWrapper">
<?php
if(isset($vars['area3'])) {
//display member avatars
foreach($vars['area3'] as $members){
echo "<div class=\"index_members\">";
echo elgg_view("profile/icon",array('entity' => $members, 'size' => 'small'));
echo "</div>";
}
}
?>
<div class="clearfloat"></div>
</div>
</div>
<?php
if(is_plugin_enabled('blog')){
?>
<!-- latest blogs -->
<div class="index_box">
<h2><?php echo elgg_echo("custom:blogs"); ?></h2>
<?php
if (isset($vars['area4']))
echo $vars['area4']; //display blog posts
?>
</div>
<?php
}
?>
</div>
<div class="clearfloat"></div>
</div>