[solved] Frontend User - why won't it work!?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

[solved] Frontend User - why won't it work!?

Post 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...
Last edited by Anonymous on Wed Jan 07, 2009 11:17 pm, edited 1 time in total.
Duketown

Re: Frontend User - why won't it work!?

Post by Duketown »

robinmarek,

Did you see any content/news at all with the coding?
What does the coding used look like?

Duketown
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Frontend User - why won't it work!?

Post 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!
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Frontend User - why won't it work!?

Post 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?
Duketown

Re: Frontend User - why won't it work!?

Post 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:

Code: Select all

{if $ccuser->loggedin()}
in stead of the:

Code: Select all

{if $customcontent_loggedin}
Duketown
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Frontend User - why won't it work!?

Post 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!
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Frontend User - why won't it work!?

Post 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  :-\
Duketown

Re: Frontend User - why won't it work!?

Post 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
schug.trent
Forum Members
Forum Members
Posts: 28
Joined: Sun May 18, 2008 7:53 pm

Re: Frontend User - why won't it work!?

Post 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?
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Re: Frontend User - why won't it work!?

Post 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.
schug.trent
Forum Members
Forum Members
Posts: 28
Joined: Sun May 18, 2008 7:53 pm

Re: Frontend User - why won't it work!?

Post by schug.trent »

Got it. I had to use this:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('onlinespecialsmembers')}
Post Reply

Return to “Modules/Add-Ons”