Page 1 of 1
[solved] Frontend User - why won't it work!?
Posted: Tue Jan 06, 2009 10:21 am
by robinmarek
I am so fed up, I've spent hours trying to get it to work properly, and just when I think I'm getting somewhere with it it stops working again!
I'm using CMSMS 1.4.1 and Frontend User 1.5.4 and CustomContent 1.5.2
I've put the code around certain pages, and around one of the news templates to hide news. First off I signed into FEU log in and it wouldn't display the news stories it said I needed to be logged in to view.
Then it started doing that for all the rest of the pages, even though I was definitely logged in.
Is there a better solution? Or another module that will do something similar?
EDIT: come on folks, lets mark them as [solved] when they are...
Re: Frontend User - why won't it work!?
Posted: Tue Jan 06, 2009 6:45 pm
by Duketown
robinmarek,
Did you see any content/news at all with the coding?
What does the coding used look like?
Duketown
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 9:46 am
by robinmarek
Hi duketown, thanks for replying - here's the link to the problem:
http://www.starboardmediauk.co.uk/cmsms
If you click on 'Members' and log in with:
Username: test
Pass: password
(If you can!!)
The code looks like:
{cms_module module=CustomContent}
{if $customcontent_loggedin}
Content here
{else}
You must be a member to view this page.
{/if}
I've got this on various pages, where it says 'Content here' I've got various things like forum module, etc.
My main problem now is that I thought I had it all working yesterday, then I sent it to a client and they said they can't see a log in box? It's driving me mad!
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 9:48 am
by robinmarek
Oh and it often brings up the message 'got here 3' when I initially log in - which I can't get rid of?
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 11:57 am
by Duketown
robinmarek,
Using Google Chrome: no login part.
Using IE7: no login part on the mentioned page.
On
http://www.starboardmediauk.co.uk/cmsms/index.php?page=test-4 however, I see login part. After login, I see the member directory. However if I go back to the home page, I'm not authorized to the content. This is true for both browsers.
Have you tried the following:
in stead of the:
Duketown
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 12:41 pm
by robinmarek
Thanks for testing it - I'll try that code instead
How do I fix the disappearing members log in box? I am banging my head on the wall trying to fix it!
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 12:46 pm
by robinmarek
Okay I changed that code...
What I don't understand is I know my client is using Mac Firefox and Safari which is what I'm using, but they can't see the log in box...
HrmmmÂ

Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 6:41 pm
by Duketown
robinmarek,
Is what you have on 'page=test-4' something different then on the other pages?
Do you see something weird when you have turned debug on?
Duketown
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 7:57 pm
by schug.trent
I'm having the same problem with logging in. I know I'm logged in but it's not displaying my content. I see that yours is working now because I logged in using TEST and PASSWORD.
What did you do that made it work?
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 8:03 pm
by robinmarek
I didn't do anything

I changed that code as outlined by dukecode (see above), so I don't know if that did it. It just seems to do what it likes most of the time.
Re: Frontend User - why won't it work!?
Posted: Wed Jan 07, 2009 8:17 pm
by schug.trent
Got it. I had to use this:
Code: Select all
{if $ccuser->loggedin() && $ccuser->memberof('onlinespecialsmembers')}