By raph on Wednesday, 07 October 2015
Replies 3
Likes 0
Views 0.9K
Votes 0
Hi Stackideas team,

I would like to hide the ES dashboard for guests.

And at the same time I made menu links for guests to register with two ES profiles, using the following method: http://stackideas.com/forums/registration-url

When I am not logged in and I click on one of the menu links for guests to register with one of the ES profiles, I get an alert message: "please login first".

Also when I am logged in and go to a public page I get the same message: "please login first".

Could you let me know what I missed I this config?

Thanks!

Raph
Hey raph,

I am really sorry that delay of this reply,

It seems like `Easysocial - dashboard` menu item (English) you set to `Registered` access, then causing this redirect back to login page instead of registration page.

So I have help you set to `Public` access and another 3 `Easysocial - login layout` menu item, it should work fine now , can you give it a check now?
·
Thursday, 08 October 2015 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Good to read you

It works fine but actually I don't want the community link to be shown for guests.

Is there a way to do that?

Would some php like : ....

?php
$user =& JFactory::getUser();
if ($user->guest) { ?>

<li class="sp-menu-item display-none"><a href="/community-izs" title="">Community-IZS</a></li>

<?php }


 else { ?>
<li class="sp-menu-item display-block"><a href="/community-izs" title="">Community-IZS</a></li>
<?php } ?>



... would do it or using this code will do the same as if the dashboard link remains available for registered only?

thanks for your advice

Kind regards

Raph
·
Thursday, 08 October 2015 03:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey raph,

Yes, your above code is good if can detect that `community` menu item on your frontpage.

But in my opinion, you actually replace this menu item to use `EasySocial Dropdown Menu` module and assign this module display on your top right corner position, it should look good.
·
Thursday, 08 October 2015 10:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post