Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 05:46 am EST

Geeklog Forums

Block Visibility Question


Status: offline

ptp

Forum User
Newbie
Registered: 07/19/04
Posts: 8
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 (opens in new window).
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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.
Your nav box would contain the user functions and even the admin functions if you want.. tis da bomb.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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?

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
 Quote

All times are EST. The time is now 05:46 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content