Author Topic: Hiding Thumbnails from guests  (Read 3478 times)

0 Members and 1 Guest are viewing this topic.

Offline CRego3D

  • Pre-Newbie
  • Posts: 5
    • View Profile
Hiding Thumbnails from guests
« on: October 07, 2002, 09:59:20 PM »
I have the settign on my site (http://www.theregos.com) so that only registed users can see the images, but non regited users they can still see the thumbnails

Is there a way to prevent non-registed users from seeign the thumbnails ? (maybe a nice "register" image instead)

Cheers

Carlos

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Hiding Thumbnails from guests
« Reply #1 on: October 08, 2002, 07:41:32 AM »
Try this:

Replace in the templates thumbnails_bit.html, random_image.html and random_cat:_image.html
Code: [Select]
{thumbnail}
with
Code: [Select]
{if user_loggedin}
{thumbnail}
{endif user_loggedin}
{if user_loggedout}
<img src="path/to/please_register.gif">
{endif user_loggedout}


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search