Ignore:
Timestamp:
Nov 13, 2004, 2:43:53 PM (19 years ago)
Author:
plg
Message:
  • admin/cat_options page added : manage options for the whole categories tree (uploadable, commentable). status and visible will be soon added
  • admin.php : $conf_link var to avoid lines longer than 79 characters
  • config.upload_available configuration parameter disappear : it's simpler to manage with cat_options
  • config.show_comments idem : new column categories.commentable, each categories can be commentable or not
  • categories.site_id becomes a nullable column : a virtual category does belong to no site
  • function display_select_categories has a new argument : $CSS_classes array to optionnaly assign a CSS class to each category in the select field
  • added informations in include/config.inc.php for setting default value of :
  • categories.visible
  • categories.status
  • categories.uploadable
  • categories.commentable
  • 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best rated and most visited categories
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config.inc.php

    r601 r602  
    168168// show_gt : display generation time at the bottom of each page
    169169$conf['show_gt'] = true;
     170
     171// Default options for new categories.
     172//
     173// Some options for categories (commentable, uploadable, status, visible)
     174// must be set directly in the database by changing the corresponding
     175// default values of the column. Examples :
     176//
     177// ALTER TABLE phpwebgallery_categories ALTER visible SET DEFAULT 'true';
     178// ALTER TABLE phpwebgallery_categories ALTER status SET DEFAULT 'private';
     179// ALTER TABLE phpwebgallery_categories ALTER uploadable SET DEFAULT 'true';
     180// ALTER TABLE phpwebgallery_categories ALTER commentable SET DEFAULT 'false';
     181//
     182// MySQL default values are used when inserting a row and that no value is
     183// given for the column. In PhpWebGallery, the above columns are not valued
     184// during categories insertion, so default values are important.
    170185?>
Note: See TracChangeset for help on using the changeset viewer.