boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parse Error???

 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
evildemon148882



Joined: 27 Nov 2004
Posts: 5

PostPosted: Sat Nov 27, 2004 3:01 pm    Post subject: Parse Error??? Reply with quote

I'm trying to install b2 on my site and I keep getting this error:

Parse error: parse error, unexpected T_STRING in /www/s/soultaker/morbidrose/htdocs/b2/b2config.php on line 10

Here's my code:


Quote:
<?php

/* *
* b2's config file *
* */


# Reminder: everything that

starts with #, /* or // is a comment

/* Start editing */

# $siteurl is your blog's

URL: for example, 'http://mydomain.com' (no trailing slash !)
# $blogfilename is

the name of the default file for your blog
# $blogname is the name of your blog

$siteurl = 'http://www.morbidrose.wandering-soul.net';
$blogfilename = 'index.php';
$blogname =

'Morbid Rose';
$blogdescription = 'Blog about me';


# fill these only if you have a

Cafelog ID,
# this enables your blog to be in the Recently Updated b2 blogs list.
#

to obtain this ID, e-mail [email protected] with these details:
# name of the

weblog, weblog's URL, your e-mail address, and a password
# in the future, the

password will allow you to change these details online

$cafelogID = '';
$use_cafelogping = 0; # set this to 1 if you do have a Cafelog ID


# $pathserver

is where you have uploaded b2: for example, 'http://mydomain.com' (no ending

slash !)
# by default b2 is set to run in the folder your blog resides, same as

$siteurl

$pathserver = 'http://www.morbidrose.wandering-soul.net';


# your email (obvious uh ?)

$admin_email = '[email protected]';


# set this to 0 or 1, weither you want

new users to be able to post entries once they registered

$new_users_can_blog = 1;


# day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc
$start_of_week = 0;



// ** MySQL settings **

# fill with your database details
$dbname = '----------'; // the name of the database
$dbhost =

'----------'; // 99% chances you won't need to change this

value
$dbusername = '------------'; // your MySQL username
$dbpassword = '-------------'; // ...and password

# database tables'

names (change them if you want to have multiple b2's in a single database)
$tableposts = 'b2posts';
$tableusers = 'b2users';
$tablesettings = 'b2settings';
$tablecategories = 'b2categories';
$tablecomments = 'b2comments';


// ** Post

preview function **

# set this to 1 if you want to use the 'preview' function
$use_preview = 1;



// ** Spell Checker functions **


# set this to 0 to disable the

spell checker, or 1 to enable it
$use_spellchecker = 1;



// ** Text formatting

options **

# these options can help you format your text without using too much

html
$use_bbcode = 0; // use BBCode, like bold
$use_gmcode = 0; // use

GreyMatter-styles: **bold** \italic\ __underline__
$use_quicktags = 1; //

buttons for HTML tags (they won't work on IE Mac yet)

# IMPORTANT! set this to 0

if you are using Chinese, Japanese, Korean,
#

or other double-bytes languages
$use_htmltrans = 1;

# this could help balance

your HTML code. if it gives bad results, set it to 0
$use_balanceTags = 1;



// **

Image upload **


# set this to 0 to disable file upload, or 1 to enable it
$use_fileupload = 1;

# enter the real path of the directory where you'll upload

the pictures
# if you're unsure about what your real path is, please ask your

host's support staff
# note that the directory must be writable by the

webserver (ChMod 766)
# note for windows-servers users: use forwardslashes

instead of backslashes
#$fileupload_realpath = '/www/s/soultaker/htdocs/b2/images';
$fileupload_realpath = '/www/s/soultaker/htdocs/public_html/images';

# enter the URL of

that directory (it's used to generate the links to the pictures)
$fileupload_url =

'http://morbidrose.wandering-soul.net/images';

# accepted file types, you can add to that list if

you want
# note: add a space before and after each file type
# example:

$fileupload_allowedtypes = ' jpg gif png ';
$fileupload_allowedtypes = ' jpg gif

png ';

# by default, most servers limit the size of uploads to 2048 KB
# if you

want to set it to a lower value, here it is (you cannot set a higher value)
$fileupload_maxk = '96';

# you may not want all users to upload pictures/files, so

you can set a minimum level for this
$fileupload_minlevel = '1';

# ...or you may

authorize only some users. enter their logins here, separated by spaces
# if you

leave that variable blank, all users who have the minimum level are authorized to

upload
# note: add a space before and after each login name
# example:

$fileupload_allowedusers = '';
$fileupload_allowedusers = '';



// **

RSS **

# set this to 1 if you want to syndicate your news in b2rss.xml
# note

that b2rss.xml has to be writable by the webserver (ChMod 766)
$use_rss = 0;
$posts_per_rss = 10;

# the language of your blog ( see this:

http://backend.userland.com/stories/storyReader$16 )
$rss_language = 'en';


// **

Weblogs.com ping **

# set this to 1 if you want your site to be listed on

weblogs.com when you add a new post
$use_weblogsping = 0;



// ** Comments options **

# set this to 1 to require e-mail and name, or 0 to allow comments without e-

mail/name
$require_name_email = 0;

# here is a list of the tags that are allowed in

the comments.
# you can add tags to the list, just add them in the string,
# add

only the opening tag: for example, only '<a>' instead of '<a href=""></a>'

$comment_allowed_tags =

'<b><i><u><strong><em><code><blockquote><p><br><strike><a>';

# set this to 1 to

let every author be notified about comments on their posts
$comments_notify = 0;



//

** Smilies options **

# set this to 1 to enable smiley conversion in posts
#

(note: this makes smiley conversion in ALL posts)
$use_smilies = 1;

# the directory

where your smilies are (no trailing slash)
$smilies_directory =

'http://morbidrose.wandering-soul.net/b2-img/smilies';

# here's the conversion table, you can

modify it if you know what you're doing
$b2smiliestrans = array(
'Smile'

=> 'icon_smile.gif',
'Very Happy' => 'icon_biggrin.gif',
'Very Happy'

=> 'icon_biggrin.gif',
'Very Happy' => 'icon_biggrin.gif',
'Smile'

=> 'icon_smile.gif',
'Smile' => 'icon_smile.gif',
'Smile'

=> 'icon_smile.gif',
'Sad' => 'icon_sad.gif',
'Sad'

=> 'icon_sad.gif',
'Sad' => 'icon_sad.gif',
''

=> 'icon_surprised.gif',
'' => 'icon_surprised.gif',


'' => 'icon_surprised.gif',
'' =>

'icon_eek.gif',
'' => 'icon_eek.gif',
''

=> 'icon_eek.gif',
'' => 'icon_confused.gif',
''

=> 'icon_confused.gif',
'' => 'icon_confused.gif',
'Cool'

=> 'icon_cool.gif',
'Cool' => 'icon_cool.gif',
'Cool'

=> 'icon_cool.gif',
'' => 'icon_lol.gif',
''

=> 'icon_mad.gif',
'' => 'icon_mad.gif',
''

=> 'icon_mad.gif',
'Razz' => 'icon_razz.gif',
'Razz'

=> 'icon_razz.gif',
'Razz' => 'icon_razz.gif',
''

=> 'icon_redface.gif',
'' => 'icon_cry.gif',
''

=> 'icon_evil.gif',
'' => 'icon_twisted.gif',


'' => 'icon_rolleyes.gif',
'' =>

'icon_wink.gif',
'' => 'icon_wink.gif',
''

=> 'icon_wink.gif',
'' => 'icon_exclaim.gif',
'Question'

=> 'icon_question.gif',
'Idea' => 'icon_idea.gif',
''

=> 'icon_arrow.gif',
'Neutral' => 'icon_neutral.gif',
'Neutral'

=> 'icon_neutral.gif',
'Neutral' => 'icon_neutral.gif',


'Mr. Green' => 'icon_mrgreen.gif',
);


# the weekdays and the months..

translate them if necessary

$weekday[0]='Sunday';
$weekday[1]='Monday';
$weekday[2]

='Tuesday';
$weekday[3]='Wednesday';
$weekday[4]='Thursday';
$weekday[5]='Friday';
$weekday[6]='Saturday';


# the months, translate them if necessary - note: this

isn't active everywhere yet
$month['01']='January';
$month['02']='February';
$month

['03']='March';
$month['04']='April';
$month['05']='May';
$month['06']='June';
$month['07']='July';
$month['08']='August';
$month['09']='September';
$month['10']

='October';
$month['11']='November';
$month['12']='December';



# $b2inc is where the

included b2 files are: that's generally the directory b2-include,
# so you

shouldn't have to change that setting
$b2inc='b2-include';





// ** Configuration for

b2mail.php ** (skip this if you don't intend to blog via email)

# mailserver

settings
$mailserver_url = 'mail.yourdomain.com';
$mailserver_login =

'[email protected]';
$mailserver_pass = 'password';
$mailserver_port = 110;

# by

default posts will have this category
$default_category = 1;

# subject prefix
$subjectprefix = 'blog:';

# body terminator string (starting from this string,

everything will be ignored, including this string)
$bodyterminator = "___";

# set

this to 1 to run in test mode
$thisisforfunonly = 0;


### Special Configuration for

some phone email services

# some mobile phone email services will send identical

subject & content on the same line
# if you use such a service, set

$use_phoneemail to 1, and indicate a separator string
# when you compose your

message, you'll type your subject then the separator string
# then you type your

login:password, then the separator, then content

$use_phoneemail = 0;
$phoneemail_separator = ':::';





/* Stop editing */


$HTTP_HOST=getenv('HTTP_HOST');

/* domain name */
$REMOTE_ADDR=getenv('REMOTE_ADDR'); /* visitor's IP */
$HTTP_USER_AGENT=getenv('HTTP_USER_AGENT'); /* visitor's browser */

$server =

$dbhost;
$loginsql = $dbusername;
$passsql = $dbpassword;
$path = $pathserver;
$base

= $dbname;

?>
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 896
Location: Oslo, Norway

PostPosted: Sat Nov 27, 2004 7:42 pm    Post subject: Reply with quote

Lol?
Code:
# Reminder: everything that
starts with #, /* or // is a comment

is supposed to be
Code:
# Reminder: everything that starts with #, /* or // is a comment

This is a repeating error in your config file. Fix all of them.

Or better, download b2 from http://sigg3.net/cafelog and use that b2config.php.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
evildemon148882



Joined: 27 Nov 2004
Posts: 5

PostPosted: Sat Nov 27, 2004 10:59 pm    Post subject: Reply with quote

Ugg, I feel really stupid. I fixed all of that, but now there is this error:

Parse error: parse error, unexpected ':' in /www/s/soultaker/morbidrose/htdocs/b2/b2config.php on line 14
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 365

PostPosted: Sun Nov 28, 2004 12:36 pm    Post subject: Reply with quote

Line 14 should say:
Code:
# $blogname is the name of your blog
so is just a comment. Are you sure you have sorted out all the lines? What do the first 14 lines say?
Back to top
View user's profile Send private message
evildemon148882



Joined: 27 Nov 2004
Posts: 5

PostPosted: Sun Nov 28, 2004 2:54 pm    Post subject: Reply with quote

Thanks everyone! I figured out what I was doing wrong. I'm so dumb when it comes to this kind of stuff.
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 896
Location: Oslo, Norway

PostPosted: Mon Nov 29, 2004 9:22 am    Post subject: Reply with quote

Have you ever tried playing chess without knowing the rules?
The player isn't dumb, he's just not educated within that system:)
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group