← Back to team overview

mahara-contributors team mailing list archive

[Bug 1236767] Re: Custom layouts aren't displayed properly and can't be created with more than 4 rows

 

Here is the config.php, I never used one of those programs, but I will
try it.

<?php


/**
 * Mahara: Electronic portfolio, weblog, resume builder and social networking
 * Copyright (C) 2006-2009 Catalyst IT Ltd and others; see:
 *                         http://wiki.mahara.org/Contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    mahara
 * @subpackage core
 * @author     Catalyst IT Ltd
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL
 * @copyright  (C) 2006-2009 Catalyst IT Ltd http://catalyst.net.nz
 *
 */

/**
 * MAHARA CONFIGURATION FILE
 *
 * INSTRUCTIONS:
 * 1. Copy this file from config-dist.php to config.php
 * 2. Change the values in it to suit your environment.
 *
 * Information about this file is available on the Mahara wiki:
 *     http://wiki.mahara.org/System_Administrator's_Guide/Installing_Mahara#Create_Mahara's_config.php
 *
 * This file includes only the most commonly used Mahara configuration directives. For more options
 * that can be placed in this file, see the Mahara lib file
 *     htdocs/lib/config-defaults.php
 */

$cfg = new stdClass();


/**
 * database connection details
 * valid values for dbtype are 'postgres' and 'mysql'
 */
$cfg->dbtype   = 'mysql5';
$cfg->dbhost   = 'localhost';
$cfg->dbport   = null;
$cfg->dbname   = 'XXX';
$cfg->dbuser   = 'XXX';
$cfg->dbpass   = 'XXX';

/**
 * Note: database prefix is NOT required, you don't need to set one except if
 * you're installing Mahara into a database being shared with other
 * applications (this happens most often on shared hosting)
 */
$cfg->dbprefix = '';

/**
 * wwwroot - the web-visible path to your Mahara installation
 * Normally, this is automatically detected - if it doesn't work for you
 * then try specifying it here.
 * This value must end with a /
 *
 * Example: $cfg->wwwroot = 'http://myhost.com/mahara/';
 *
 * If you want to serve all of your Mahara content via HTTPS, just set
 * $cfg->wwwroot to use HTTPS.
 */
// $cfg->wwwroot = 'https://myhost.com/mahara/';

/**
 * If you are using a proxy to force HTTPS connections, you will need to
 * enable the next line. If you have set this to true, ensure your wwwroot
 * is a HTTPS address.
 */
// $cfg->sslproxy = true;

/**
 * dataroot - uploaded files are stored here
 * This is a ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
 * For example, valid paths are:
 *  * /home/user/maharadata
 *  * /var/lib/mahara
 *  * c:\maharadata
 * INVALID paths:
 *  * http://yoursite/files
 *  * ~/files
 *  * ../data
 *
 * This path must be writable by the webserver and outside document root (the
 * place where the Mahara files like index.php have been installed).
 * Mahara will NOT RUN if this is inside your document root, because
 * this is a big security hole.
 */
$cfg->dataroot = '/data/www/data/didtest/mahara-dev-mahara18';

/**
 * If set, this email address will be displayed in the error message if a form
 * submission is suspected of being spam. This reduces the frustration for the
 * user in the event of a false positive.
 */
$cfg->emailcontact = '';

/**
 * Set this to enable a secondary hash that is only present in the config file
 */
// $cfg->passwordsaltmain = 'some long random string here with lots of characters';

/**
 * When changing the salt (or disabling it), you will need to set the current salt as an alternate salt
 * There are up to 20 alternate salts
 */
$cfg->passwordsaltalt1 = 'old salt value';

/**
 * Uncomment the following line if this server is not a production system.
 * This will put a line up the top of the page saying that it isn't a production
 * site, and that files may not be present.
 */
$cfg->productionmode = false;

$cfg->directorypermissions = 0770;

// closing php tag intentionally omitted to prevent whitespace issues

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1236767

Title:
  Custom layouts aren't displayed properly and can't be created with
  more than 4 rows

Status in Mahara ePortfolio:
  In Progress

Bug description:
  I just tested the Mahara 1.8rc1, on a linux server with a MySQL DB. To
  view the site I am using a Mac OS Laptop with Chrome Version
  30.0.1599.69.

  When using the "create custom layout" feature I have multiple
  problems:

  - The preview only is displayed correctly for 1 - 3 rows, after adding the fourth row the preview doesn't update anymore
  - When adding a custom layout with up to 3 rows, the layout gets added to the other layout options. Adding a 4 row layout does work, but there is just a default thumb, not a picture of the layout.
  - Even though I can add up to 6 rows the adding of custom layouts with 5 or 6 rows doesn't work at all.

  I attached a screenshot of the problems.

  Regards,
  Angela

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1236767/+subscriptions


References