Being logged out when posting comments
Posted: Fri Nov 30, 2007 4:05 pm
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:
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
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.
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}
Best regards
Max C.
www.onlinegamer.se