Being logged out when posting comments

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
MaxC
New Member
New Member
Posts: 3
Joined: Mon Nov 19, 2007 9:52 pm

Being logged out when posting comments

Post 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
MaxC
New Member
New Member
Posts: 3
Joined: Mon Nov 19, 2007 9:52 pm

Re: Being logged out when posting comments

Post 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
Post Reply

Return to “CMSMS Core”