Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » ForumMemberProfile/register doesn't load if called from outside Forum

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1090 Views
  • DsX
    Avatar
    Community Member
    178 Posts

    ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    Running SS 2.4 and Forum Trunk.
    OK I have the forum as a page under a page that is restricted to a user group.
    Once login in you have no problem of accessing the forum. If you do not login, then I have supplied a link to ForumMemberProfile/register it did allow access to the register for form for the forum (on my local dev machine), however now it does not (svn updates have been applied).. I actually only get a blank page.

    What I would like to know is if I should be able to load the forum registration page from out side the forum if the forum is within a restricted page?
    If not, how would one recommend dealing with this? I need people to register (be approved) then shave access to the forum?

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    anyone have insight .. I have updated to the latest trunk and I get this:

    [Notice] Trying to get property of non-object
    GET /ForumMemberProfile/register

    Line 79 in C:\vhost\Websitename\httpdocs\forum\code\ForumMemberProfile.php
    Source

    70
    71
    72    /**
    73     * Show the registration form
    74     */
    75    function register() {
    76       return array(
    77          "Title" => _t('ForumMemberProfile.FORUMREGTITLE','Forum Registration'),
    78           "Subtitle" => _t('ForumMemberProfile.REGISTER','Register'),
    79          "Abstract" => $this->getForumHolder()->ProfileAbstract,
    80       );
    81    }
    82
    83
    84    /**
    85     * Factory method for the registration form

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    Well that sounds like $this->getForumHolder() is not returning a Forum Holder. Have you got at least 1 'ForumHolder' published on your site. And that user must be able to access (view) that holder.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    right ok.. seems like there was a version that allowed it to work if the holder was not accessible (secured).. so I have added another hidden holder and that gets me to the registration form

    I have also switched to the newly released version with support for 2.4 all seems well except that when I click 'click here to start a new topic.' the page loads with a blank line between the forum breadcrumb and the 'Currently Online:'
    So I am unable to post anything to the forum?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    Are you using a custom forum theme?

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: ForumMemberProfile/register doesn't load if called from outside Forum Link to this post

    you are absolutely right, I had copied the forum theme and made a couple small changes... (mostly CSS) so I have simple removed the .ss files from my them and all is good with my css edits.
    Its really a great system and very versatile.. but I still forget some obvious things here and there.. thanks for your help.

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