b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: conf ] [ index: conf ] [ all elements ]

Procedural File: _admin.php

Source Location: /blogs/conf/_admin.php

Page Details

This is the admin config file

This sets how the back-office/admin interface works

Filesource:  Source Code for this file
Globals
int   $allow_cross_posting [line 36]

Cross posting

Possible values:

  • -1 if you don't want to use categories at all
  • 0 if you want users to post to a single category only
  • 1 if you want to be able to cross-post among multiple categories
  • 2 if you want to be able to cross-post among multiple blogs/categories
  • 3 if you want to be able to change main cat among blogs (which will move the posts from one blog to another; use with caution)

Default value:  1
Information Tags:
Todo:  fp>This should be moved to the backoffice. In the BO, this should actually be split into: App Settings: checkbox [] allow cross posting another checkbox [] allow moving posting between different blogs Each blog's settings: radio between:
  • One category per post
  • Multiple categories per post (requires transparent handling of main cat)
  • Main cat + extra cats
  • Don't use categories (this requires to transparently manage a default category)

[ Top ]

array   $posttypes_perms [line 68]

Post types that can be restricted on a per-blog basis using the blog user/group permissions.

The key of each array element is the part of the corresponding permission name without the "blog_" prefix (e. g. a value of 'page' means the permission 'blog_page'). The value of each array element is an array containing the post type IDs whose usage is controlled by the respective permission.

Default value:  array(
   'page' => array(
      1000,
   ),'intro'=>array(1500,1520,1530,1570,1600,),'podcast'=>array(2000,),'sidebar'=>array(3000,),)

API Tags:
See:  ItemTypeCache::get_option_list_usable_only()
See:  check_perm_posttype()


[ Top ]

array   $posttypes_reserved_IDs [line 51]

Reserved post type IDs.

These post types are reserved for future use and can't be edited or deleted in the post type editor. It also is not possible to select them when creating a new post. Do not remove any IDs from this array.

Default value:  array( 4000, 5000 )
Information Tags:
Todo:  fp>get rid of this and just delete 4000 & 500 from the database during upgrade

[ Top ]



Documentation generated on Sat, 06 Mar 2010 03:59:39 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).