Jump to:

1368 Posts in 487 Topics by 521 members

Themes

SilverStripe Forums » Themes » Trouble to install new theme

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 376 Views
  • michael222
    Avatar
    Community Member
    1 Post

    Trouble to install new theme Link to this post

    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

  • Tim Snadden
    Avatar
    Community Member
    32 Posts

    Re: Trouble to install new theme Link to this post

    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

    376 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.