[SOLVED] Custom Content

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
kateb
Forum Members
Forum Members
Posts: 13
Joined: Sun Jul 13, 2008 2:58 pm

[SOLVED] Custom Content

Post by kateb »

I have custom Content 1.5.2 and FEU 1.6.4 installed successfully on version 1.5.3
Everything works fine, but I can't seem to get past the basic

" {cms_module module=CustomContent}
  {if $ccuser->loggedin() && $ccuser->memberof('clients')}
  Here is some custom content just for clients!
  {/if}"

The above code is within my template and works fine. But, I want to have it so that when clients log in they are shown specific content just for them (rather than a whole group). Alternatively, each client could be redirected to their own specific page. This page would need to be secure, eg, if someone tries to access the page directly by typing the link directly into their browser (rather than using the login page), then they either need to be sent to the login page or asked for their username and password.

So far, the only answer I can come up with is to have a specific template for every client, or add if/else statements to the template for every client, both of which are not feasible  :(  My guess is that there is a really simple answer and it involves "$ccuser->username()" but silly me just can't figure this out!! Any help is really appreciated!! Thanks.
Last edited by kateb on Tue Mar 31, 2009 8:56 am, edited 1 time in total.
alby

Re: Custom Content

Post by alby »

kateb wrote: The above code is within my template and works fine. But, I want to have it so that when clients log in they are shown specific content just for them (rather than a whole group). Alternatively, each client could be redirected to their own specific page.
Have you seen in FEU settings?
PageID/Alias to jump to after code verification

Alby
kateb
Forum Members
Forum Members
Posts: 13
Joined: Sun Jul 13, 2008 2:58 pm

Re: Custom Content

Post by kateb »

Awesome!! I saw it but just assumed that it was a default jump to page for everyone - duh!! It works just as I want it to now. Thanks a million  ;)
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: [SOLVED] Custom Content

Post by jtcreate »

I'm having a similar issue, but am missing something on the "PageID/Alias to jump to after code verification" area. What did you put in there? And how did you set up the resulting page?

So, user comes to login page. On login, they are redirected to a page named as their username? I'm missing something in the redirect setup. Any insight or more detailed info would be super helpful.

Thank you,
Jeff T.
Mmmmm... Tasty.
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: [SOLVED] Custom Content

Post by jtcreate »

Cancel that. Got it working! I had the {$username} in the wrong box in the FEU settings. It's working great now!
Mmmmm... Tasty.
Post Reply

Return to “Modules/Add-Ons”