Page 1 of 1

CustomeContent only works on first reload

Posted: Mon Apr 30, 2007 5:10 am
by Gibberish
I have CustomContent and FrontendUsers working but after I login my CustomContent won't show. Once I login it shows my login settings and to 'sign out'.

Here is my code:

Code: Select all

{cms_module module=CustomContent} 
{if $customcontent_loggedin gt 0}
... MY CUSTOM CONTENT...
{else}
{cms_module module=FrontEndUsers}
{/if}
Now the custom content randomly shows once. Sometimes it will show when I reload right after login but never show again. After login the logout template always shows. I can see that I am logged in, I just can't get the custom content to load instead of the logout template.

Also I would like to have one user account that 10-20 people can use. By default it seems only one IP can use the user account at a time. Is there a way to change this?

Re: CustomeContent only works on first reload

Posted: Sat May 12, 2007 8:44 pm
by xynjav
I've had similar bad luck, with fresh installs of CustomContent and modules on the latest version of CMSMS. I have the tag {cms_module module=CustomContent} placed within my template (not a page). With a little sleuthing, via the {get_template_vars} tag, I've observed that the the CustomContent variables only get called the one time after I apply/submit my template in the Admin Area. If I reload my test page the {get_template_vars} results get paired down to the base CMSMS variable results, essentially the  {cms_module module=CustomContent} tag isn't getting called at all. Not sure what might be causing this snafu, but it seems to be a major bug.

Re: CustomeContent only works on first reload

Posted: Sat May 12, 2007 8:52 pm
by alby
A possible solution here

Alby

Re: CustomeContent only works on first reload

Posted: Sat May 12, 2007 9:02 pm
by xynjav
Yup, Haha I had just figured it out myself, thanks!  :)

Moral of the story, if you are using the CC module in a page, make sure that the Cachable setting in Page Options is disabled.

You guys at CMSMS rock! You have a fan for life.