Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » Forum Error on Published Site

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1060 Views
  • BruceG
    Avatar
    Community Member
    29 Posts

    Forum Error on Published Site Link to this post

    I received the following when trying to view a forum on the published site.

    Fatal error: Call to undefined method Controller::currentcontroller() in D:\wamp\www\SilverStripe-v2.3.0\forum-v0.1.2\code\Forum.php on line 155

    I see there's a new forum module under development. Is this due out soon? Maybe this will resolve my problem if I wait for it.

    Cheers
    Bruce

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Forum Error on Published Site Link to this post

    Hey Bruce, Try the RC. It is pretty stable with SilverStripe 2.3. These forums are running it, we just haven't got round to releasing it as stable yet.

  • BruceG
    Avatar
    Community Member
    29 Posts

    Re: Forum Error on Published Site Link to this post

    Thanks Will

    That seems to work.

    If I wanted to set up a customised Forum holder and forum pages (layouts, colour, positioning, spacing etc) what's the best way to go about that?
    Is there a tutorial to explain this procedure?

    Bruce

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Forum Error on Published Site Link to this post

    If its all just css/ html changes then you can copy forum/templates forum/css forum/images to yourthemename_forum/*

    So you should have

    themes/yourtheme_forum/css/
    themes/yourtheme_forum/images/
    themes/yourtheme_forum/templates

    Now you can edit away at the files in yourtheme_forum! without touching on the forum/ folder

  • BruceG
    Avatar
    Community Member
    29 Posts

    Re: Forum Error on Published Site Link to this post

    Thanks Will

    I'll have a crack
    It all sounds so simple - if only I knew what I was doing???

    Regards
    Bruce

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Forum Error on Published Site Link to this post

    Basically you can override the default theme by defining your own custom theme. Eg if you installed with the BlackCandy theme the theme is stored in themes/blackcandy. Now when you add a module it first looks for its templates, images and css from themes/blackcandy_forum as blackcandy is the current theme. If that does not exist it uses the default styles in forum/.

    So if you want to override any default styles (this covers the templates in sapphire and cms as well as any modules) you just need to create a yourcurrenttheme_modulename folder and place the files in there. This is whats known as a subtheme.

    1060 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.