Author Topic: Next picture by clicking on the existing one (category "details")  (Read 9345 times)

0 Members and 1 Guest are viewing this topic.

Offline schmujo

  • Pre-Newbie
  • Posts: 5
    • View Profile
Hi! Is it possible to have a picture following another one by just clicking on the existing one (in the category "details")? So, without having to click on "next image"? Thanks in advance!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Next picture by clicking on the existing one (category "details")
« Reply #1 on: March 29, 2005, 11:09:34 PM »
how about this method:
in details.html template replace {image} with:
Code: [Select]
{if next_image_url}<a href="{next_image_url}">{endif next_image_url}
    {image}
{if next_image_url}</a>{endif next_image_url}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline schmujo

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Next picture by clicking on the existing one (category "details")
« Reply #2 on: March 30, 2005, 08:09:42 PM »
 :D :D :D Yippie, Yippie, Yea! It works!!! Thanks a lot V@no - Just great job!  :D :D :D If you want have a look how your suggestion works: www.anneundjoseph.at

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Next picture by clicking on the existing one (category "details")
« Reply #3 on: January 16, 2006, 08:39:54 AM »
Hello,
 I has one asks to the represented pictures into detail.php if the last picture in the categorie is reached gets I in carries out a cross (no more picture) if one draufklickt comes error message. How can I prevent that?



Greez Darkness  :mrgreen:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Next picture by clicking on the existing one (category "details")
« Reply #4 on: January 16, 2006, 08:55:48 AM »
You've changed more then supposed to :P
missing in details.html:
Code: [Select]
      {if next_image_name}{lang_next_image}<br>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Next picture by clicking on the existing one (category "details")
« Reply #5 on: January 16, 2006, 04:38:04 PM »
You've changed more then supposed to :P
missing in details.html:
Code: [Select]
      {if next_image_name}{lang_next_image}<br>

Hello V@no,
I do not understand which you mean. The pictures all indicate only if the last picture in the categorie angezeitgt we comes that can one that to make the there nothing be seen somehow in such a way is after the last picture?

Greez Darkness  :mrgreen:

My code:

Code: [Select]
<td >
{if prev_image_name}{lang_prev_image}<br>
  <a href="{prev_image_url}" onMouseOver="a('{prev_image_name}');return true"
onMouseOut="b()"><img src="{prev_thumb_file}" border="1" class="pic"></a>
      <br />
{endif prev_image_name}</td>
{if prev_image_name}<br>
    <td align="right">
      <a href="{next_image_url}" onMouseOver="a('{next_image_name}');return true"
onMouseOut="b()"><img src="{next_thumb_file}" border="1" class="pic"></a>

      {endif next_image_name}</td>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Next picture by clicking on the existing one (category "details")
« Reply #6 on: January 17, 2006, 01:36:39 AM »
You have this:
Code: [Select]
{if prev_image_name}{lang_prev_image}<br>(which is for previous image) but you are missing this:
Code: [Select]
{if next_image_name}{lang_next_image}<br>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: Next picture by clicking on the existing one (category "details")
« Reply #7 on: January 18, 2006, 01:11:34 PM »
thank you V@no  great little tweak, :D

okay with camino, firefox, but does not work with IE  :?:

RT.