Page 1 of 1

FronEndUsers/CustomContent... display questions

Posted: Fri Nov 24, 2006 12:35 am
by 10010110
I've successfully set up the FrontEndUsers and CustomContent modules (along with CMSMailer, of course) and I set up two pages for two different groups to view. And whoever isn't logged in/in one of these groups just sees the login form.
At least that's how it's supposed to work.  ;D

What happens now is that I do get the login form alright but then if I've logged in to one group I can even see the content of the other group (if I type in the according URL for the other group's page).
I've set it up like this:

Code: Select all

...[header stuff]...

</__body>
<div id="container">
	<div id="header">
		<h1>{sitename} – {title}</h1>
                <a href="/">Home Page</a>
	</div>
	<div id="content">
{cms_module module=CustomContent}
<!--customContent: startif group=EPcustomers -->
          {content}
<!--customContent: else -->
<p>You must be logged in to view the content of this page. If you haven't subscribed yet go to the {cms_selflink page='index' text='home page'} and click the according link at the bottom.
{cms_module module=FrontEndUsers}
<!--customContent: endif -->
<!--customContent: startif group=BAEcustomers -->
          {content}
<!--customContent: endif -->
	</div>
{global_content name='footer'}
<__script__ src="http://www.google-analytics.com/urchin.js" type="text/javascript"></__script>
<__script__ type="text/javascript">
_uacct = "UA-535201-2";
urchinTracker();
</__script>
<__body>
</__html>
Is it the double {content} tag? It IS showing the correct content for the correct group, though. It's just that I have access to the other group's content without logging in again.

Also in the front end user preferences I've set "Page ID/Alis to jump to after login/logout" to {$group}, yet it's not jumping to the page of the group that user belongs to but to the index page (with a '#' at the end of the URL). What have I done wrong and how do I fix it?

Any help would be greatly appreciated.  :)

Re: FronEndUsers/CustomContent... display questions

Posted: Sun Nov 26, 2006 1:44 pm
by 10010110
DAMMIT! I've tried everything but...
Can anybody show me a working example of CustomContent and how it's implemented? Either the module isn't fully mature yet or I need to adjust some settings that I don't know of...  :-\

I have two kinds of content for two groups. I changed my previous code so that I have two templates, one for each group. Now, the login form shows up when a user isn't logged in and it goes to the content if the user logs in. However, if a logged in user of one group types the URL for the content of the other group it should be showing the login form too. What it currently does is showing the logout form. How can I change it to what I'd like to have? Exchanging the default logout form with the login form in the logout template in FrontEndUser Management doesn't work, it just doesn't display any form then.
Also if a user views the content of his group it still shows the content of the (except of the login form) although this shold be hidden if the user is logged in.

What am I doing wrong here? ???
Please help me.  :-[