- b2evolution CMS Support Forums
- b2evolution Support
- Templates, skins, XHTML and CSS
- Comments & Categories Error
1 joju Aug 18, 2005 18:47
I've been trying to make a template out of b2evolution upgrading from b2..But When I view the page it results in an error (view it here: http://chicque.com )
Here's the entire code for the page:
<?php
/**
* This file will display a blog, WITHOUT using skins.
*
* This file will set some display parameters and then display the blog in a template.
*
* Note: You only need to use this file for advanced use/customization of b2evolution.
* Most of the time, calling your blog through index.php with a skin will be enough.
* You should try to customize a skin before thrying to use this fle.
*
* Same display without using skins: a_stub.php
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
* @subpackage noskin
*/
# First, select which blog you want to display here!
# You can find these numbers in the back-office under the Blogs section.
# You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
$blog = 2; // 2 is for "demo blog A" or your upgraded blog (depends on your install)
# Tell b2evolution you don't want to use evoSkins for this template:
$skin = '';
# This setting retricts posts to those published, thus hiding drafts.
# You should not have to change this.
$show_statuses = array();
# You could *force* a specific link blog here with this setting: (otherwise, default will be used)
# $linkblog = 4;
# This is the list of categories to restrict the linkblog to (cats will be displayed recursively)
# Example: $linkblog_cat = '4,6,7';
$linkblog_cat = '';
# This is the array if categories to restrict the linkblog to (non recursive)
# Example: $linkblog_catsel = array( 4, 6, 7 );
$linkblog_catsel = array( );
# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min = '';
# Here you can set a limit after which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the future
$timestamp_max = 'now';
# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...
/**
* Let b2evolution handle the query string and load the blog data:
*/
require(dirname(__FILE__).'/b2evocore/_blog_main.php');
# Now, below you'll find the main template...
?>
<!-- // b2 loop start -->
<?php if( isset($MainList) ) while( $MainList->get_item() ) { ?>
<h1><?php the_title(); ?> </h1>
<?php the_content(); ?>
<p>
<div align="right"><small><?php the_date() ?> - <?php $Item->categories() ?> - <?php $Item->feedback_link()
?></small></div>
<?php // START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC.
$disp_comments = 1; // Display the comments if requested
$disp_comment_form = 1; // Display the comments form if comments requested
$disp_trackbacks = 1; // Display the trackbacks if requested
$disp_trackback_url = 1; // Display the trackbal URL if trackbacks requested
$disp_pingbacks = 1; // Display the pingbacks if requested
include( dirname(FILE)."/skins/_feedback.php");
// END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ?>
<!-- // this is just the end of the motor - don't touch that line either --> <?php } ?>
Is there something I'm doing wrong? =3 I can't tell at all >_<;
Thanks!
3 graham Aug 19, 2005 19:15
It's not working because you're using template tags that are out of date. Look at the skins that came with your b2evolution package for the right tags to use.
Just so you know, the blog is working fine when you use a stub file:
http://www.chicque.com/a_stub.php
Is there some reason you're using the noskin file rather than using skins?