summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-05 00:59:58 +0000
committerwjames5 <will@tekimaki.com>2007-03-05 00:59:58 +0000
commitfd1ff1397d0e2acd082b162c936ee97a1b14f7aa (patch)
treecb0d32a2d411351d150f53c4d7fba7aec8adc29f /admin
parentf1be08f78202ea16caa4c7209d175afab7363f6f (diff)
downloadblogs-fd1ff1397d0e2acd082b162c936ee97a1b14f7aa.tar.gz
blogs-fd1ff1397d0e2acd082b162c936ee97a1b14f7aa.tar.bz2
blogs-fd1ff1397d0e2acd082b162c936ee97a1b14f7aa.zip
adds new blog service - auto gen user blogs on new user registration - off by default
Diffstat (limited to 'admin')
-rw-r--r--admin/admin_blogs_inc.php9
-rw-r--r--admin/schema_inc.php1
2 files changed, 8 insertions, 2 deletions
diff --git a/admin/admin_blogs_inc.php b/admin/admin_blogs_inc.php
index cf6aa40..cbc9d95 100644
--- a/admin/admin_blogs_inc.php
+++ b/admin/admin_blogs_inc.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_blogs/admin/admin_blogs_inc.php,v 1.13 2007/03/02 04:38:08 wjames5 Exp $
+// $Header: /cvsroot/bitweaver/_bit_blogs/admin/admin_blogs_inc.php,v 1.14 2007/03/05 00:59:58 wjames5 Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
@@ -62,6 +62,10 @@ $formBlogFeatures = array(
'label' => 'Blog Post Comments',
'note' => 'Allow the addition of comments to blog posts.',
),
+ "blog_autogen_user_blog" => array(
+ 'label' => 'Auto Generate User Blogs',
+ 'note' => 'This will autogenerate a blog for each user\' personal use when they register. <br/>You want this on if you are running a community blogging site.',
+ ),
);
$gBitSmarty->assign( 'formBlogFeatures',$formBlogFeatures );
@@ -84,9 +88,10 @@ if( $processForm ) {
// Lazy error handling to ensure numeric. TODO: Fix.
$gBitSystem->storeConfig("blog_top_post_count", (isset( $_REQUEST["blog_top_post_count"]) && is_numeric($_REQUEST["blog_top_post_count"])) ? $_REQUEST["blog_top_post_count"] : "3");
$gBitSystem->storeConfig("blog_posts_comments", isset( $_REQUEST["blog_posts_comments"] ) ? 'y' : 'n', BLOGS_PKG_NAME );
+ $gBitSystem->storeConfig("blog_autogen_user_blog", isset( $_REQUEST["blog_autogen_user_blog"] ) ? 'y' : 'n', BLOGS_PKG_NAME );
$gBitSystem->storeConfig("blog_list_order", $_REQUEST["blog_list_order"], BLOGS_PKG_NAME );
$gBitSystem->storeConfig("blog_list_user_as", $_REQUEST["blog_list_user_as"], BLOGS_PKG_NAME );
- $gBitSystem->storeConfig("blog_posts_description_length", $_REQUEST["blog_posts_description_length"], BLOGS_PKG_NAME );
+ $gBitSystem->storeConfig("blog_posts_description_length", $_REQUEST["blog_posts_description_length"], BLOGS_PKG_NAME );
$gBitSmarty->assign('blog_list_order', $_REQUEST["blog_list_order"]);
$gBitSmarty->assign('blog_list_user_as', $_REQUEST['blog_list_user_as']);
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 1508370..74f9e84 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -86,6 +86,7 @@ $gBitInstaller->registerPreferences( BLOGS_PKG_NAME, array(
array( BLOGS_PKG_NAME, 'blog_rankings','y'),
array( BLOGS_PKG_NAME, 'blog_list_user_as', 'text'),
array( BLOGS_PKG_NAME, 'blog_posts_description_length', '500'),
+ array( BLOGS_PKG_NAME, 'blog_autogen_user_blog','n'),
) );
if(defined('RSS_PKG_NAME')) {
$gBitInstaller->registerPreferences( BLOGS_PKG_NAME, array(