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.

Themes /

Discuss SilverStripe Themes.

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

Can not change theme...


Reply


6 Posts   4608 Views

Avatar
ThomasP

Community Member, 4 Posts

19 February 2009 at 9:51pm

Hi, i have made a installation of the latest version of silverstripe.
I want to change theme. And i have choosen itheme. I have uploaded the theme to the theme folder.
Now i need to change the mysite/_config.php file. But i am not allow to change this file. I can not change the chmod of the file... What can i do about this?
I have contacted my hosting provider and there is no errors from their side... Is it the SilverStripe that have some kind og lock??

The _config.php
<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
   "type" => "MySQLDatabase",
   "server" => "localhost",
   "username" => "X",
   "password" => "X",
   "database" => "X",
);

// Sites running on the following servers will be
// run in development mode. See
// http://doc.silverstripe.com/doku.php?id=devmode
// for a description of what dev mode does.
Director::set_dev_servers(array(
   'localhost',
   '127.0.0.1',
));

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/cms-themes-and-skin
SSViewer::set_theme('blackcandy');

?>

Maybe i need some one to login to my admin panel....

Hope someone can help

/Thomas

Avatar
mdm

Community Member, 19 Posts

19 February 2009 at 11:11pm

Hello Thomas!

SSViewer::set_theme('blackcandy');

where it sais blackcandy type the foldername of your theme you want to use.
save and upload the config file. Server will prob. say you cant overwrite this, so delete it and then upload your edited file.

I had this problem that the file couldnt be overwritten - so I simply deleted it and uploaded the new one.

Avatar
ThomasP

Community Member, 4 Posts

20 February 2009 at 4:22am

Hi MDM.
Thanks for your reply..
I have tried 4 times now and i can not change the config file.. if you have time i would like to have some to look at the files..

Can you help me with this?

Avatar
ThomasP

Community Member, 4 Posts

20 February 2009 at 5:02am

Now its finaly working...
I did make a new config file and uploadet the file once again... waitet for 15 mins and then it was working

Thanks

Avatar
mdm

Community Member, 19 Posts

20 February 2009 at 7:57am

When updating files like template its good to make a www.domain.com/?flush to clear the server cash.
Im just finished my template and had to flush a few times just to make the favico to show up.

Good that it finally worked out for yha!
Im new to this so also learning on the way but its really much fun when you get the hang of it and things start to happend :)

Avatar
ThomasP

Community Member, 4 Posts

20 February 2009 at 9:47pm

Edited: 20/02/2009 9:51pm

hi once again...
1* The heading and the index page is not found..." Your Site Name" "your site's tagline here" i´ll think that the heading is automatic set? But not working?

2* When i go to my domain the front page is not there.. "page not found" but the other sides is there...

3* When im trying put a picture on the side i can not upload?

What can i do, what is the error here?

Have silverstripe made a check tool i can use?