Author Topic: Replace next/previous image text links with image  (Read 4573 times)

0 Members and 1 Guest are viewing this topic.

Offline gborislav

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Replace next/previous image text links with image
« on: July 13, 2007, 12:28:58 AM »
Hi,
On this website,when you click on details of picture
http://www.foto-kocher.com/details.php?image_id=8433
On the top right and left side where says "next picture and previous
picture" it shows the actual picture only smaller. On my website which is by
default mode it just says Next and Previous" but no picture. Can you
recommend me some MOD so that on mine it would show the pictures too.

Thanks,
Boris

manurom

  • Guest
Re: Replace next/previous image text links with image
« Reply #1 on: July 13, 2007, 12:40:55 AM »
Hello;
you just have to edit templates/your_template/details.html.
Find:
Code: [Select]
<td class="row2"> {if prev_image_name}{lang_prev_image}<br />
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <!-- <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a> -->
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_image_name}</a></b>
                              <!-- <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a> -->
                              {endif next_image_name}</td>

and change it to:
Code: [Select]
<td class="row2"> {if prev_image_name}{lang_prev_image}<br />
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a>
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_image_name}</a></b>
                              <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a>
                              {endif next_image_name}</td>

Offline gborislav

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Replace next/previous image text links with image
« Reply #2 on: July 13, 2007, 02:08:31 AM »
Thank you very much for the replay, is it possible to make the pictures smaller, or where can i change the sizes.
For example 30 by 30.

Thanks again

manurom

  • Guest
Re: Replace next/previous image text links with image
« Reply #3 on: July 13, 2007, 10:38:46 AM »
Hello;
replace the previous code by this one, if you want to have 30 pixels width and height por your previous and next thumbnails:
Code: [Select]
<td class="row2"> {if prev_image_name}{lang_prev_image}
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" width="30" height="30" border="1"></a>
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_image_name}</a></b>
                              <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" width="30" height="30" border="1"></a>
                              {endif next_image_name}</td>

Hint: if your pictures are not squared, try to use only the height in pixels, to keep natural looking thumbnails. The width of the thumbnail will be resized proportionnally to the height.

Offline gborislav

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Replace next/previous image text links with image
« Reply #4 on: July 16, 2007, 01:09:11 AM »
Thank you.

Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Replace next/previous image text links with image
« Reply #5 on: October 05, 2007, 04:20:44 PM »
any idea to make it like a film strip??