Author Topic: display my own custom thumbnail image for unregistered members  (Read 3691 times)

0 Members and 1 Guest are viewing this topic.

Offline abramelin

  • Pre-Newbie
  • Posts: 8
    • View Profile
you know that 4images has a feature that when you close the permission to view the images to the unregistered members, they can not click on the thumbnail images. how can i make this work like showing not the original thumb image. i want to show my own custom thumbnail image to unregistered members. is there a mod like that or which php or template file is checking this feature?

manurom

  • Guest
Re: display my own custom thumbnail image for unregistered members
« Reply #1 on: June 15, 2007, 09:45:02 AM »
Hello;
let's say you want the unregistered visitors only to view this, instead of the thumbnail:

This file is called "denied.png", and attached below. Copy it to templates/your_own_templates/images/ folder, or create your own one.

Change your template file "thumbnail_bit.html" to this:
Code: [Select]
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
{if user_loggedin}<div align="center">{thumbnail}<br />{endif user_loggedin}
{if user_loggedout}<div align="center"><img src="{template_url}/images/denied.png" width="150" height="150" alt="" /><br />{endif user_loggedout}
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} ({user_name_link})
<br />
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}

The tags {if user_loggedin} and {if user_loggedout} will help you to display the image thumbnail for members, and "denied.png" to others.
Please do the same changes to templates/your_own_template/random_image.html and maybe random_cat_image.html if you want to get non registered members unable to see random thumbnails. Don't forget to use the closing tags {endif user_loggedin} and {endif user_loggedout}.
Don't ask if it is possible to have a particular own thumbnail instead of the original one. It would be too much work for a poor result, I think.

Hoping it could help, regards.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: display my own custom thumbnail image for unregistered members
« Reply #2 on: October 18, 2007, 03:04:55 PM »
hi

Is it possible to display some other picture or message in detail page for guest , IF that category is given the permission to view the images only for registered user