Page 1 of 1

[SOLVED] FEU Problems

Posted: Mon Jan 05, 2009 10:02 pm
by schug.trent
I have CMSMS version 1.5.1

Is anyone else having a problem with the FEU module with custom content?

When I login it doesn't display what it is supposed to. It should display some html located after the {if $customcontent_loggedin}. I have nearly the exact same code on a different site with an older version of CMSMS and it works fine.

Code: Select all


<table border="0" cellspacing="0" cellpadding="0" width="580" align="center">
<tbody>
<tr>
<td class="main2" width="580" align="center" valign="top"><br>
<p>{cms_module module=CustomContent}         {if $customcontent_loggedin}    {cms_module module=FrontEndUsers form=logout}  Thank You for logging in, please enjoy the coupons below.<br> {cms_module module='printing'}</p>
<table id="Table_01" style="height: 185px;" border="0" cellspacing="0" cellpadding="0" width="250" align="center" bgcolor="#ffffff">
<tbody>
<tr>
<td rowspan="3"><img src="coupons/images/coupons_01.jpg" alt="" height="185" width="25"></td>
<td colspan="2"><img src="coupons/images/coupons_02.jpg" alt="" height="75" width="225"></td>
</tr>
<tr>
<td class="main" height="88" align="center"><span class="medium">$5 Off</span><br> Get $5.00 off your check when you spend at least $25.00</td>
<td rowspan="2"><img src="coupons/images/coupons_04.jpg" alt="" height="110" width="27"></td>
</tr>
<tr>
<td><img src="coupons/images/coupons_05.jpg" alt="" height="22" width="198"></td>
</tr>
</tbody>
</table>
<p class="medium" align="center"> </p>
<p class="main">{else} <br> You must first log in before you can view the specials. <br>Your username should be your email address.  {cms_module module=FrontEndUsers form=login nocaptcha="1"}</p>
<p class="main">or</p>
<p class="large" align="center">{cms_selflink page="register" text="Click Here to Register"}</p>
<p>{/if}</p>
<p> </p>
<p> </p>
<br><br></td>
</tr>
</tbody>
</table>
Any ideas? is this a bug in the new version of CMSMS

Re: FEU Problems

Posted: Mon Jan 05, 2009 10:27 pm
by Dr.CSS
Are you getting any errors, you have the last if in a p...

{/if}

Re: FEU Problems

Posted: Mon Jan 05, 2009 10:50 pm
by schug.trent
Tried it both ways. No difference it doesn't leave the login screen when I submit the username and password.

Re: FEU Problems

Posted: Mon Jan 05, 2009 10:51 pm
by Dr.CSS
Leaving login screen, you mean like it still says to login or?...

Re: FEU Problems

Posted: Mon Jan 05, 2009 11:29 pm
by schug.trent
correct. It just clears the forms is all pretty much.

Re: FEU Problems

Posted: Tue Jan 06, 2009 12:26 am
by Dr.CSS
I find it hard to read table based layouts but to me it doesn't look like the right syntax, have you tried to use the exact same code as the other 'working' site?...

Re: FEU Problems

Posted: Tue Jan 06, 2009 3:36 am
by schug.trent
Yeah, it is really the same. The only difference is the content that shows up when you're logged in. The settings for custom content and everything else is the same too. Is anyone else having problems with this? Could it just be a bug?

Re: FEU Problems

Posted: Wed Jan 07, 2009 7:26 pm
by Dr.CSS
Sometimes a link is the best bet...

Re: FEU Problems

Posted: Wed Jan 07, 2009 7:50 pm
by schug.trent
Yeah... But that's no fun!


Edit:

Figured it out. Used this:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('members')