CustomContent and FrontEndUser modules don't seem to be working properly

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.
Post Reply
Eagle1
New Member
New Member
Posts: 4
Joined: Fri Apr 07, 2006 8:27 pm

CustomContent and FrontEndUser modules don't seem to be working properly

Post by Eagle1 »

Hi,

I am using CMSMS version 1.0.2, CustomContent 1.4.3, FrontEndUsers 1.1.1, and cannot seem to get them to work properly. I've read all the help files, but don't understand all the settings needed in FrontEndUsers to get it working, I guess.

What I'm trying to do: I need to display members-only content when a member logs in. They should have a generic login username and password for all members. It doesn't need to be a personal username and password. And all I need from them is their username and password--the default fields for FrontEndUser. In other words, I don't need any "properties" in the FrontEndUser Management screen.

Yet, logged in as a member or an admin I cannot see the content of the page.

Here's my template code:

Code: Select all

{cms_module module=CustomContent}
{if $customcontent_loggedin}
<h2>Welcome {$customcontent_loginname}</h2>
{content}
{else}
<h2>Sorry, you must be a logged-in member to view this page.</h1>
{cms_module module=FrontEndUsers}
{/if}
Any help or further guidance would be much appreciated. I have searched the forums, but couldn't find anything similar to this problem.

Thanks,
Matt
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by jmcgin51 »

try {if $customcontent_loggedin == 1}

instead of {if $customcontent_loggedin}
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by petert »

jmcgin51 wrote: try {if $customcontent_loggedin == 1}
This works better for me (most of the time)

  if $customcontent_loggedin == '1'

it's the single quotes that do the trick. Shame that the examples in the module are not updated yet
Last edited by petert on Tue Jan 02, 2007 10:22 am, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Eagle1
New Member
New Member
Posts: 4
Joined: Fri Apr 07, 2006 8:27 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by Eagle1 »

Thanks to both of you for replying.

I've tried both:

if $customcontent_loggedin == 1

and:

if $customcontent_loggedin == '1'

and still no luck. Are there settings within the admin panel of Frontend User Management that perhaps I'm not setting up correctly?

Thanks again.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by jmcgin51 »

just curious - have you tried using the comment tags version of CC instead of the Smarty tags?

also, make sure you turn off page caching for any pages that contain CC-protected content...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by calguy1000 »

two things:

a) therre's a caching bug that's fixed in 1.0.3 that may effect what's happening.
b) you will probably want to have {content} displayed at all time in your template, as certain modules, etc. require it.  I had problems when I did a similar thing in my template I got really weird results.  however, wrapping additional content blocks in customcontent stuff should work fine.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Eagle1
New Member
New Member
Posts: 4
Joined: Fri Apr 07, 2006 8:27 pm

Re: CustomContent and FrontEndUser modules don't seem to be working properly

Post by Eagle1 »

jmcgin51 wrote: just curious - have you tried using the comment tags version of CC instead of the Smarty tags?

also, make sure you turn off page caching for any pages that contain CC-protected content...
I have tried both the Smarty template way and the comment tag versions.

Turned off page caching, still no luck.
calguy1000 wrote: two things:

a) therre's a caching bug that's fixed in 1.0.3 that may effect what's happening.
b) you will probably want to have {content} displayed at all time in your template, as certain modules, etc. require it.  I had problems when I did a similar thing in my template I got really weird results.  however, wrapping additional content blocks in customcontent stuff should work fine.
a) I do have version 1.0.2. When do you expect 1.0.3 to be available to the public?
b) I tried it both with {content} and without, still no luck.
Post Reply

Return to “CMSMS Core”