CustomeContent only works on first reload

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.
Locked
Gibberish

CustomeContent only works on first reload

Post 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?
Last edited by Gibberish on Mon Apr 30, 2007 5:12 am, edited 1 time in total.
xynjav
New Member
New Member
Posts: 3
Joined: Sat May 12, 2007 8:33 pm

Re: CustomeContent only works on first reload

Post 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.
alby

Re: CustomeContent only works on first reload

Post by alby »

A possible solution here

Alby
xynjav
New Member
New Member
Posts: 3
Joined: Sat May 12, 2007 8:33 pm

Re: CustomeContent only works on first reload

Post 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.
Locked

Return to “CMSMS Core”