Posted on: 07/19/04 12:47pm
By: ptp
Is there any way that I could have a block appear only if a user is not logged in, or only if a user is logged in? Ive made a custom navigation block on my site that includes all the "User Functions" seen when logged in, but when I disable the user functions block, I also lose the Login/Register functions seen on that block if a site visitor is not logged in. I added a link to login or register at the bottom of my Navigation block, but its not really noticeable to new visitors. I want to make it easier for these new visitors to register or visitors to login by having that niticeable login box there, but I would like it to go away, or have it replaced by the Navigation block, whenever a visitor logs in. Is this possible? I dont see that option in the settings, so I figure it would have to be something with the coding of the box. If anyone could help, it would be much appreciated.
To see what I mean, visit
my site[*1] (opens in new window).
Block Visibility Question
Posted on: 07/19/04 02:01pm
By: machinari
the "menu" plugin would make this job a lot easier for you. you could have you login box and your nav box and when logged in only your nav box would be left. check it out
here[*2] .
Your nav box would contain the user functions and even the admin functions if you want.. tis da bomb.
Block Visibility Question
Posted on: 07/19/04 02:26pm
By: Dirk
[QUOTE BY= ptp] Is there any way that I could have a block appear only if a user is not logged in, or only if a user is logged in?[/QUOTE]
You can do that by setting the block's permissions accordingly.
However, the Login block is a bit different than the other blocks and you're probably better off using the Menu plugin in that case, as Machinari already suggested.
bye, Dirk