How to change size of elgg group icon ?

How to change size of elgg group icon ?,

i saw in source code

<img src="http://website.com/groupicon/987547/large/1346247270.jpg" alt="test" class="" width="200" height="200">

 

i wan't to change width to 400 how can i do that?

  • The icon sizes are stored in Elgg's global config. You can change it through a plugin by using elgg_set_config()

  • Hannibal Smith

    can you explain how to use elgg_set_config() ? i only wan't to change group icon size

  • /**
     * Set an Elgg configuration value
     * @warning This does not persist the configuration setting. Use elgg_save_config()
     * @param string $name  Name of the configuration value
     * @param mixed  $value Value
     * @return void
     * @since 1.8.0
     */
    function elgg_set_config($name, $value) {
        global $CONFIG;
        $name = trim($name);
        $CONFIG->$name = $value;
    }

    ++

    /**
     * Save a configuration setting
     * @param string $name      Configuration name (cannot be greater than 32 characters)
     * @param mixed  $value     Configuration value. Should be string for installation setting
     * @param int    $site_guid NULL for installation setting, 0 for default site
     * @return bool
     * @since 1.8.0
     */
    function elgg_save_config($name, $value, $site_guid = 0) {
        global $CONFIG;
        $name = trim($name);
        if (strlen($name) > 255) {
            elgg_log("The name length for configuration variables cannot be greater than 255", "ERROR");
            return false;
        }
        elgg_set_config($name, $value);
        if ($site_guid === NULL) {
            if (is_array($value) || is_object($value)) {
                return false;
            }
            return datalist_set($name, $value);
        } else {
            if ($site_guid == 0) {
                $site_guid = (int) $CONFIG->site_id;
            }
            return set_config($name, $value, $site_guid);
        }
    }