Page 1 of 1

Being logged out when posting comments

Posted: Fri Nov 30, 2007 4:05 pm
by MaxC
Hi all,

I have a small gaming community website which use the Comments module in combination with News. Together with FEU and Customcontent i have hidden the comment form so that only logged in visitors can post comments (a dirty hack, but sufficient for now), but everyone can still view what's been written by others.

This is causing a strange problem, though:
  • When a member post a comment, he automaticly get logged out.
  • Also, when trying to login from within a news article, you get redirected to a blank page without getting logged in.
I use this code to only show the comments form to logged in members:

Code: Select all

{if $customcontent_loggedin}
<h3>{$addacomment}</h3>

{$startform}

{$commenttxt}(*):<br  />
{$inputcomment}<br  />
<br  />
{$submit} {$cancel}

{$endform}

{else}
<h3>Login to comment</h3>
{/if}
Does anyone have a solution to my two problems? If you need any more info, let me know.

Best regards
Max C.
www.onlinegamer.se

Re: Being logged out when posting comments

Posted: Sat Dec 01, 2007 2:03 pm
by MaxC
A shameful *bump*. Sorry about that.

FYI, I am running CMSMS 1.2 with all new versions of the modules described above.

On my page I have the loginform in the right sidebar, which is visible on all pages. When someone is reading the detailed news and is trying to login, they get redirected to a blank page instead of being logged in.

Has anyone else encountered such a problem? If so, what did you do to fix it?

My page: www.onlinegamer.se