2012-09-18, 12:51:06
(This post was last modified: 2012-09-18, 12:56:13 by monniedene.)
I looked at the changes to the code on GitHub and looked at the custom permissions. I really like the presentation of the custom permissions.
I'll test this version in the next few days.
Have you changed the "View All Categories" functionality or added an "Uncategorized" option? (see http://get-simple.info/forum/post/29805/#p29805)
Also, I'm unsure if the line in bold in this is currently in error:
public function listPosts($array=false, $sort_dates=false)
{
$all_posts = glob(BLOGPOSTSFOLDER . "/*.xml");
if(count($all_posts) < 1)
{
return false;
}
else
{
$count = 0;
if($array==false)
{
return $all_posts;
}
else
{
foreach($all_posts as $post)
{
$data = getXML($post);
$posts[$count]['filename'] = $post;
$posts[$count]['date'] = (string) $data->date;
$posts[$count]['category'] = (string) $data->category;
$posts[$count]['tags'] = (string) $data->tags;
if(isset($data->author)) { $posts[$count]['authur'] = (string) $data->author; }
$count++;
}
Author seems to not be implemented (I may be wrong). Otherwise, I believe it should be $posts[$count]['author'].
Also is the feature "Added ability to display post count next to archive months in archives function (disabled by default)" also available for categories? I would really like being able to do it for categories too.
I'll be sure to check the code more thoroughly in the next version. I really like learning from it.
I'll test this version in the next few days.
Have you changed the "View All Categories" functionality or added an "Uncategorized" option? (see http://get-simple.info/forum/post/29805/#p29805)
Also, I'm unsure if the line in bold in this is currently in error:
public function listPosts($array=false, $sort_dates=false)
{
$all_posts = glob(BLOGPOSTSFOLDER . "/*.xml");
if(count($all_posts) < 1)
{
return false;
}
else
{
$count = 0;
if($array==false)
{
return $all_posts;
}
else
{
foreach($all_posts as $post)
{
$data = getXML($post);
$posts[$count]['filename'] = $post;
$posts[$count]['date'] = (string) $data->date;
$posts[$count]['category'] = (string) $data->category;
$posts[$count]['tags'] = (string) $data->tags;
if(isset($data->author)) { $posts[$count]['authur'] = (string) $data->author; }
$count++;
}
Author seems to not be implemented (I may be wrong). Otherwise, I believe it should be $posts[$count]['author'].
Also is the feature "Added ability to display post count next to archive months in archives function (disabled by default)" also available for categories? I would really like being able to do it for categories too.
I'll be sure to check the code more thoroughly in the next version. I really like learning from it.