summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-07-27 11:40:20 +0000
committerwjames5 <will@tekimaki.com>2007-07-27 11:40:20 +0000
commit48ef69e67978e6d4b3845a0da96e97e52795a6a6 (patch)
tree9ac0b88072097f87ca5c9c41a43a2d2e7072214f /admin
parent9ec8bfd93abd96d5723d699fb9e692ff0c8e1b4e (diff)
downloadblogs-48ef69e67978e6d4b3845a0da96e97e52795a6a6.tar.gz
blogs-48ef69e67978e6d4b3845a0da96e97e52795a6a6.tar.bz2
blogs-48ef69e67978e6d4b3845a0da96e97e52795a6a6.zip
refines options for viewing future and expired posts. Includes small list at top of center include. This roughs in a basic way to view future posts. Refinement is needed on limiting access to individual future and expired posts by permission, and all pending posts are showing up user post pages - should be limied to only future posts by that users
Diffstat (limited to 'admin')
-rw-r--r--admin/admin_blogs_inc.php4
-rw-r--r--admin/schema_inc.php1
2 files changed, 3 insertions, 2 deletions
diff --git a/admin/admin_blogs_inc.php b/admin/admin_blogs_inc.php
index 3ac0dd7..8bdfd52 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.18 2007/06/22 06:26:20 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_blogs/admin/admin_blogs_inc.php,v 1.19 2007/07/27 11:40:19 wjames5 Exp $
// get a list of blogs for the selection of the home blog
require_once( BLOGS_PKG_PATH.'BitBlog.php' );
@@ -82,8 +82,8 @@ 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_max_list", (isset( $_REQUEST["blog_posts_max_list"]) && is_numeric($_REQUEST["blog_posts_max_list"])) ? $_REQUEST["blog_posts_max_list"] : "10");
$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 );
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index f2af589..7a60e43 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -95,6 +95,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_posts_max_list','10'),
) );
// ### User Preferences Set In This Package