Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Trouble to install new theme


Go to End


2 Posts   2127 Views

Avatar
michael222

Community Member, 1 Post

23 February 2014 at 4:17am

Hello,

Thanks for such a great free script for mobile phone

I have upload and installed through the web browser the SilverStripe-cms-v3.1.2

Working fine

I have tried to change the theme to

http://www.silverstripe.org/woody-theme/

I followed the instructions

1. After unzipping your theme download, put the contents of the zip file into your /themes directory in your silverstripe project.

done

2. To get your theme up and running, you’ll need to change one line of code in the _config.php file. You’ll find the config file in: ./mysite/_config.php:

This would be the code to add SSViewer::set_theme('woody')

this is what i have there

<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
"type" => 'MySQLDatabase',
"server" => 'localhost',
"username" => 'xxxxxxxxxxxx',
"password" => 'xxxxxxxxxxxxx',
"database" => 'xxxxxxxxxxxx',
"path" => '',
);

// Set the site locale
i18n::set_locale('en_US');

when i try to make any changes i get this error

Parse error: syntax error, unexpected '(' in /home/usdaso/public_html/jim/mysite/_config.php on line 17

Can you please advise on install or have I missed something

Cheers in advance

Michael

Avatar
Tim Snadden

Community Member, 32 Posts

15 May 2014 at 7:51am

What you have there doesn't have any syntax errors that I can see. However, the error is pretty clear so maybe in the process of putting it into the forum and removing passwords it got changed somehow. In your post you didn't have a semi-colon at the end of the line. Try this:

SSViewer::set_theme('woody'); // <-- note that it ends with a semi-colon