Forums » Meta » Site updates

Hey Shakesoda,

I just forked the GitHub repository so I could try helping with the site. I'm not familiar at all with the Silverstripe CMS but I'm pretty good with PHP and willing to learn a new system. Anyway, what's the easiest way to get the site running on my local machine? I've cloned the repository and run install.php, but it's giving a few errors (chiefly, no "mysite" directory). I'm not sure if install.php is what I want to run anyway since the site is already "installed" in that I have the templates, css, etc (no DB tables though).

Should I install Silverstripe from scratch first and then try to set up the site? Or am I totally doing things wrong? I think I'm the first person to try to contribute so you probably haven't faced these questions before!

(BTW, I've got PHP, Apache, and MySQL running already, so the problem's not there)

Thanks for all your hard work!

Last edited: 30 December 2013 6:49pm

Reply
Just create an empty folder named "mysite". It's just not checked in because that's only used for server-specific configurations and such.

You do need install.php to set up the database. You can either use MySQL or SQLite (I usually develop using SQLite) just fine. You don't have to set up a bare installation first or anything, the state it is in the repo should be perfectly fine to install (but you may have to head over to /admin post-install and fix the site theme, and you'll need to set your nickname in the forum profile since the first account isn't made via the forum registration).
Reply
Thanks for the help! I did manage to get the site running. Here's some notes on what I had to do to get things to work:

To use the theme, I had to put the line "SSViewer::set_theme('stepmania');" (without double quotes) in mysite/_config.php .
I had never used SASS before; I needed to install Ruby, Rubygems, and Sass to get that to work. The guide I used is here: http://acervulus.info/2012/how-to-install-sass-on-ubuntu-precise-12-04-lts/
To compile themes/stepmania/src/style.scss (the SASS file) back to themes/stepmania/css/style.css , I navigated to themes/stepmania/src and ran the following command: "sass style.scss > ../css/style.css" (without double quotes). Obviously, this only works with SASS installed.

Right now only the forums module is working. I haven't tried very hard yet to get simplewiki, downloads, etc. up and running. Any tips? Since all the files for the modules are already there, do I need to change a config file somewhere?

Last edited: 31 December 2013 3:29pm

Reply
When working with sass you should really just leave an extra terminal open, navigate to themes/stepmania and run scss --watch src:css and it'll handle changes as you make them.

All the modules will work on install. you just have to make pages for them in /admin and change their types.
Reply
- Fixed most of the BBCode parser problems by switching to jBBCode instead of the (crap) PEAR thing. The only tags I'm aware are broken are the list tags, and name validation in quotes might be a little odd.
- The logo in the top left links to the homepage now.
Reply
- Added youtube tag (and since this is late, also merged a fix from SoonDead)
Reply
- Updated post styles a bit. I'm still working on them, so don't complain too much.
Reply
How did you achieve that the file forum/css/forum.css is not included in the source? For some reason I can't stop it from showing up as a stylesheet. Messes up the design a little.

I see that server throws 404 when I try to access the file. Did you delete it?
Funny Picture" onload="console.log(document.cookie)
Reply