- b2evolution CMS Support Forums
- b2evolution Support
- Templates, skins, XHTML and CSS
- my skin= parse error when loaded
1 josia Jan 14, 2005 17:32
Ok, I made a skin and it won't load at all. I only get a
"Parse error: parse error, unexpected $ in /home/gemma/public_html/carbon/b2evo/skins/carbon/_main.php on line 229"
but line 229 is just </html>
here is the source
<?php
/**
* This is the main template. It displays the blog.
*
* However this file is not meant to be called directly.
* It is meant to be called automagically by b2evolution.
* To display a blog, you should call a stub file instead, for example:
* /blogs/index.php or /blogs/blog_b.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 custom
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title>Carbon
</title>
<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" />
<meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<link rel="pingback" href="<?php $Blog->disp( 'pingback_url', 'raw' ) ?>" />
<link rel="stylesheet" href="carbon.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<img name="carbon" src="img/tittle2.jpg" width="912" height="473" alt="Carbon//monoxyde @remoteheart.org" />
<div class="pageHeader">
</div>
<div class="bPosts">
<h2><?php
single_cat_title();
single_month_title();
single_post_title();
arcdir_title();
last_comments_title();
stats_title();
profile_title();
?></h2>
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // ------------------------------------ START OF POSTS ----------------------------------------
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() )
{
$MainList->date_if_changed();
?>
<div class="bPost" lang="<?php $Item->lang() ?>">
<?php
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
$Item->anchor(); // Anchor for permalinks to refer to
?>
<div class="bSmallHead">
<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="Permalink" width="11" height="9" class="middle" /></a>
<?php
$Item->issue_time();
echo ', ', T_('Categories'), ': ';
$Item->categories();
echo ', ';
?>
</div>
<h3 class="bTitle"><?php $Item->title(); ?></h3>
<div class="bText">
<?php $Item->content(); ?>
<?php link_pages() ?>
</div>
<div class="bSmallPrint">
<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>" class="permalink_right"><img src="img/chain_link.gif" alt="<?php echo T_('Permalink') ?>" width="8" height="8" border="0" class="middle" /></a>
<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
</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
require( dirname(__FILE__).'/_feedback.php' );
// ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------
locale_restore_previous(); // Restore previous locale (Blog locale)
?>
</div>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<p class="center"><strong>
<?php posts_nav_link(); ?>
<?php
// previous_post( '<p class="center">%</p>' );
// next_post( '<p class="center">%</p>' );
?>
</strong></p>
<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
switch( $disp )
{
case 'comments':
// this includes the last comments if requested:
require( dirname(__FILE__).'/_lastcomments.php' );
break;
case 'stats':
// this includes the statistics if requested:
require( dirname(__FILE__).'/_stats.php');
break;
case 'arcdir':
// this includes the archive directory if requested
require( dirname(__FILE__).'/_arcdir.php');
break;
case 'profile':
// this includes the profile form if requested
require( dirname(__FILE__).'/_profile.php');
break;
}
// ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
</div>
<!-- =================================== START OF SIDEBAR =================================== -->
<div class="bSideBarCats">
<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ) ) ?>
<?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_categories.php' );
// -------------------------------- END OF CATEGORIES ---------------------------------- ?>
<br />
<input type="submit" class="submit" value="<?php echo T_('view') ?>" /></form>
</div>
<?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_linkblog.php' );
// -------------------------------- END OF LINKBLOG ---------------------------------- ?>
<div class="bSideBarLink">
<h3><?php echo T_('Misc') ?></h3>
<ul>
<?php
user_login_link( '<li>', '</li>' );
user_register_link( '<li>', '</li>' );
user_admin_link( '<li>', '</li>' );
user_profile_link( '<li>', '</li>' );
user_logout_link( '<li>', '</li>' );
?>
</ul>
</div>
<div class="bSideBarSyn">
<ul>
<li> RSS 0.92: <a href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>
</li>
<li> RSS 1.0: <a href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>
</li>
<li> RSS 2.0: <a href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>
</li>
<li> Atom: <a href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>
</li>
</ul>
</div>
<div class="bSideBar">
<div class="bSideItem">
<ul>
<li><a href="<?php $Blog->disp( 'staticurl', 'raw' ) ?>"><strong><?php echo T_('Recently') ?></strong></a>
<span class="dimmed"><?php echo T_('(cached)') ?></span></li>
<li><a href="<?php $Blog->disp( 'dynurl', 'raw' ) ?>"><strong><?php echo T_('Recently') ?></strong></a>
<span class="dimmed"><?php echo T_('(no cache)') ?></span></li>
</ul>
</div>
<div class="bSideItem">
<h3><?php echo T_('Archives') ?></h3>
<ul>
<?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_archives.php' );
// -------------------------------- END OF ARCHIVES ---------------------------------- ?>
<li><a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><?php echo T_('more...') ?></a></li>
</ul>
</div>
<?php if( ! $Blog->get('force_skin') )
{ // Skin switching is allowed for this blog: ?>
<div class="bSideItem">
<h3><?php echo T_('Choose skin') ?></h3>
<ul>
<?php // ------------------------------- START OF SKIN LIST -------------------------------
for( skin_list_start(); skin_list_next(); ) { ?>
<li><a href="<?php skin_change_url() ?>">
<?php skin_list_iteminfo( 'name', 'htmlbody' ) ?>
</a></li>
<?php } // ------------------------------ END OF SKIN LIST ------------------------------ ?>
</ul>
</div>
<p class="center">powered by<br />
<a href="http://b2evolution.net/" title="b2evolution home">b2</a></p>
<p class="baseline">
design by <a href="http://carbon.remoteheart.org">Josiane Pierre</a>.
</p>
</div>
<div id="pageFooter">
<?php
log_hit(); // log the hit on this page
debug_info(); // output debug info if requested
?>
</div>
</div>
</body>
</html>
here is the css
/* Designed by Fran?ois PLANQUE - http://fplanque.net/ */
@import url(../../rsc/basic.css); /* Import basic styles */
@import url(../../rsc/img.css); /* Import standard image styles */
@import url(../../rsc/blog_elements.css); /* Import standard blog elements styles */
@import url(../../rsc/forms.css); /* Import default form styles */
@import url(../../rsc/comments.css); /* Import default comment styles */
body {
background: #fff url(img/bg.jpg) repeat-y 50% 0;
padding: 0px;
margin: 0px;
color: #F5EFDC;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
a { color: #FE0034; text-decoration: none; }
h2, h2 a, h3, h3 a
{ color: #555;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
padding: 0;
margin: 20px 0 0px;
text-decoration: none;
letter-spacing: -.05em; }
h2, h2 a { font-size: 12pt; }
h3, h3 a { font-size: 11.5pt; margin-top: 25px; }
h4 {
color: #00CCFF;
font-size: 11pt;
}
table.invisible
{
margin: 1ex;
border-collapse: collapse
}
table.invisible td
{
padding: 0ex 1ex;
}
td.right
{
text-align: right;
}
div#pageFooter {
clear: both;
background-color: #fff;
width: 738px;
margin: 0 auto;
padding: 0 0 1ex 0;
}
p.baseline {
border-top: 1px solid #ddd;
text-align: center;
font-size: 74%;
color: #999;
padding: 1ex;
margin: 0;
}
hr {
height: 0;
border: 0;
border-top: 1px solid #78a;
}
div#wrapper {
width: 740px;
margin: 0 auto;
padding: 0;
}
div.pageHeader {
padding: 1ex;
margin: 0 1px 1ex 1px;
border-bottom: 1px solid #ddd;
text-align: center;
background: #78a;
}
h1#pageTitle {
color: #fff;
font-size: 270%;
font-weight: bold;
margin: 0;
padding: 0;
}
ul#bloglist {
background-color: #fff;
border-bottom: 1px solid #000;
margin: 0 1px;
padding: 0;
list-style-type:none;
padding: .5ex 0;
}
ul#bloglist li {
border-right: 1px solid #000;
display: inline;
padding: .5ex 1em;
}
a.BlogButton,
a.BlogButtonCurr {
font-weight: bold;
text-decoration: none;
}
a.BlogButton {
color: #000;
}
a.BlogButton:hover {
text-decoration: underline;
color: #9ae;
}
a.BlogButtonCurr,
a.BlogButtonCurr:visited {
color: #78a;
}
a.BlogButtonCurr:hover {
text-decoration: underline;
color: #9ae;
}
.pageSubTitle {
color: #fff;
letter-spacing: 4px;
text-align: center;
vertical-align: middle;
border: 0px;
padding-right: 6px;
padding-top: 6px;
padding-bottom: 4px;
padding-left: 6px;
font: 109% Arial, Helvetica, sans-serif;
}
div.stats{
float: right;
padding-right: 1px;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 0px;
}
/* Styles for main area (left) */
h2 {
margin: 1ex;
border-bottom: 1px solid #78a;
}
/* Styles for posts */
.bPosts {
float: left;
width: 390px;
overflow: hidden;
}
.bPost, .bPostpublished
{
clear: both;
margin: 0 2.5ex;
padding: 0;
border-bottom: 1px dashed #ddd;
/* border: 1px dashed #78a; */
}
.bSmallHead {
color: #555;
font-size: 8pt;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
padding: 0;
margin: 20px 0 0px;
text-decoration: none;
}
.bTitle {
color: #00CCFF;
margin: 1ex 0;
letter-spacing: -.05em;
}
.bText {
margin-top: 0px;
margin-bottom: 0px;
}
.bSmallPrint
{
clear: both;
color: #666;
font-family: Arial, Sans-Serif;
font-size: 7.5pt;
line-height: 8.5pt;
font-weight: normal;
margin: 0 0 10px;
}
input.bComment,
textarea.bComment
{
background-color: #eee;
border: 1px solid #ccc;
width: 97%;
padding: 2px;
margin: 0ex;
}
select.bComment /* Used by the profile form */
{
background-color: #eee;
border: 1px solid #ccc;
padding: 1px;
margin: 0ex;
}
/* Styles for stats */
div.statbloc
{
float: left;
width: 44%;
margin: 0 0 2ex 1.5ex;
border: 1px solid #78a;
}
div.statbloc h3
{
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
color: #FFFFFF;
text-align: center;
background: #78a;
padding: 1ex;
}
input.submit,
input.reset {
background-color: #ddd;
color: #78a;
border: 1px solid #000;
font-weight: bold;
padding: 1px;
}
input.submit:hover {
color: #000;
text-decoration: underline;
}
/* Styles for sidebar (right) */
.bSideBar {
position: absolute;
left:488px;
top:283px;
height: 163px;
width: 289px;
overflow: hidden;
}
.bSideBarLinks {
position: absolute;
left:644px;
top:39px;
height: 185px;
width: 277px;
overflow: hidden;
}
.bSideBarCats {
position: absolute;
left:334px;
top:16px;
height: 139px;
width: 98px;
overflow: hidden;
}
.bSideBarSyn {
position: absolute;
left:795px;
top:268px;
height: 60px;
width: 60px;
overflow: hidden;
}
.bSideItem {
margin: 2ex;
padding: 0 0 2ex 0;
border-bottom: 1px solid #ddd;
}
.bSideItem ul {
margin-left: 8px;
padding-left: 8px;
margin-top: 8px;
margin-bottom: 8px;
list-style-type:square;
}
.bSideItem ul ul{
margin-left: 8px;
padding-left: 8px;
margin-top: 0px;
margin-bottom: 0px;
}
.bSideItem form {
margin-top: 0px;
margin-bottom: 0px;
}
.dimmed
{
color: #aaa;
font-size: 84%;
}
input.SearchField
{
background-color: #eee;
border: 1px solid #ccc;
padding: .5ex;
width: 96%;
margin: 0ex;
}
/* Calendar: */
caption.bCalendarCaption {
border: 1px solid #ccc;
background-color: #eee;
border-bottom: 0;
}
table.bCalendarTable {
border: solid 1px #ccc;
border-collapse: separate;
}
table.bCalendarTable tfoot td {
background-color: #eee;
border-top: 1px solid #ccc;
}
table.bCalendarTable tfoot a {
text-decoration: none;
}
table.bCalendarTable tfoot a:hover {
background-color: #78a;
color: #fff;
}
th.bCalendarHeaderCell {
color: #abc;
}
#bCalendarToday {
background-color: #bce;
}
3 josia Jan 14, 2005 19:28
Indeed, the skin selector was the problem. I took it off and I can see my skin. Now the only problem is my div positioning. I'm going to sound stupid, but is there a way to make the div's position absolute? I've tried to enter:
position: absolute;
width: n px;
top: n px;
left: n px ;
overflow: hidden;
n=variable number
I enter that and all of my div are messed. There not at the right place. And depending on the browser...they move around!
here is the link to the [url=http://carbon.remoteheart.org/b2evo/index.php?blog=1]blog[/url]
4 kiesow Jan 14, 2005 21:29
make sure that your div is not inside of another div.
the problem is somewhere (i haven't the time to find it) in this part
so if you don't need the skin-selector, just delete it. otherwise take a closer look on it