Acess Level Problem

17 years 11 months ago #12058 by munchen
Acess Level Problem was created by munchen
Hello Everybody,

tried to find some info about this on the forum but have not found it yet.

I want to do the following which I have not been able to accomplish yet:

On the frontpage in the mainmenu I want to show the following items for all users (no matter if registered or not):

Funny Movies
Funny Pictures
Funny Games

However, when an unregistered user clicks on any of these links I want them to be promted with the "You have to register in order to access this page...".

I tried setting these menu items to registered, but if I do that, an unregistered user won't even see that they are there :-)

Best Regards and thanks a lot for your help!
Munchen

Please Log in to join the conversation.

17 years 11 months ago #12073 by nant
Replied by nant on topic Re:Acess Level Problem
This is not a CB question.
Its a Joomla (newbie) question.

You need to create a content item that only registered members can access and link this content to a public menu item.

Topic moved to correct forum!

Please Log in to join the conversation.

17 years 11 months ago #12091 by munchen
Replied by munchen on topic Re:Acess Level Problem
Thanks a lot Nic and my apologies for the wrong posting. I have read so much and bookmarked so many pages about joomla lately and forgot this was a cb forum, my apologies and thanks a lot for the help.

Best Regards

Please Log in to join the conversation.

17 years 11 months ago #12098 by munchen
Replied by munchen on topic Re:Acess Level Problem
Hi Nick,

sorry to bother you again. I was able to accomplish what you suggested but there is still a problem:

The Content for my Menu Items Funny Movies, Funny Pictures, etc. is not of the type Link: Content Item which I now created. It is of the type Component - Funvideos. I have tried to create a new component only available for registered users but I did not find an option to link that one to the mainmenu.

I would be really thankful for any help on this issue!

Best Regards

Please Log in to join the conversation.

17 years 11 months ago #12178 by munchen
Replied by munchen on topic Re:Acess Level Problem
Someone pointed me to a solution which worked great and which I wanted to share with you guys:

You could create a URL link menu item from the menu manager.
Point the url to your component
E.g. index.php?option=com_funny&act=movies

In your component put the following code in your movies function;

Code:
if ($my->id < 1) {
mosNotAuth();
return;
}
The above code will ensure that they are logged in, if they are not logged in, put a link to the login form.

Best Regards

Please Log in to join the conversation.

16 years 3 weeks ago #60505 by birsterj
Replied by birsterj on topic Re:Acess Level Problem
I need CB to register my users as Registered/Author acess... how do I set that up? I need my users to be able to post a weblink but they need Author access.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.229 seconds

Facebook Twitter LinkedIn