Hide remove members for sidebar

aravot
aravot's picture

Joined: 2005-03-05
Posts: 61
Posted: Tue, 2005-04-26 01:15

How to remove/hide Members and Search from sidebar without deactivating the module(s), if there is no such option than consider a feature request.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-26 02:26

comment out the loadSystemContent functions in module.inc for each module.

 
aravot
aravot's picture

Joined: 2005-03-05
Posts: 61
Posted: Wed, 2005-04-27 21:32

This is what I did went to Gallery2->modules->members->module.inc searched for loadSystemContent commented out the following:

/**
     * @see GalleryModule::loadSystemContent
     *
    function loadSystemContent(&$template) {
	global $gallery;
	$content = array();

	$view = GalleryUtilities::getRequestVariables('view');
	if ($view == 'members:MembersList' || $view == 'members:MembersProfile') {
	    return array(GalleryStatus::success(), array());
	}/*

if I have done correctly (I don't think so) when accessing my website I get the following error.

Quote:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/domains/mysite.com/public_html/mambo/gallery2/modules/members/module.inc on line 108

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-04-27 22:03

um, the code block above ends with /* instead of */

 
rhambling
rhambling's picture

Joined: 2004-08-26
Posts: 11
Posted: Fri, 2005-05-13 17:49

find this code

  /**
     * @see GalleryModule::loadSystemContent
     */
    function loadSystemContent(&$template) {
	global $gallery;
	$content = array();

	$view = GalleryUtilities::getRequestVariables('view');
	if ($view == 'members:MembersList' || $view == 'members:MembersProfile') {
	    return array(GalleryStatus::success(), array());
	}

and replace with the following code

 /**
     * @see GalleryModule::loadSystemContent
     */
    function loadSystemContent(&$template) {
	global $gallery;
	$content = array();

	/*$view = GalleryUtilities::getRequestVariables('view');
	if ($view == 'members:MembersList' || $view == 'members:MembersProfile')*/ {
	    return array(GalleryStatus::success(), array());
	}