Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:07 pm EST

Geeklog Forums

Show blocks to users only who are no members


Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Is there any way to show blocks, stories, static pages to users only who are no members?

Like showing a block "become a member!" only to those guests, who have no cookie last visit or password?

How could this be done, would it be useful?
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
You can set permissions for anon only, but remember admins see all.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Are you looking for the check boxes in the Permissions aera? Only select Anonymous and it is done... except for root, because root can see a lot of thing.

::Ben

[Edit : 1 minute too late :)]
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Thanks, I meant people who are not members of the site. People who log off are anonymous but also members. I want to show the "become a member" block only to non members = anonymous who are not registered with the site.

I suppose they would not have certain cokies. Any ideas?
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I´ve had the same problem, since I´m no developer, I solved it with a style sheet selector and display:none for logged in users. A long time ago, I remember something like:

block 1: no title, and only an empty span tag (visible to all)
block 2: no title, closing the span, opening a new span with style=display:none (visable to logged-in users)
block 3: the content, closing the span, and the footer of the block (visible to all)

with the second block, only visible to logged in visitors, you stop displaying the third block.

Since I´m always using an extra empty block template for banners etc. which I used for the 2 first blocks, this was done in seconds.


Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

All times are EST. The time is now 02:07 pm.

  • 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