Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: how would you make 'next' disappear on the last image?  (Read 4909 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« on: March 16, 2004, 06:02:15 pm »

Ok, here is what i want to do, but am unsure of how to achieve it:

(http://tangiblebrit.com/i/preview.dll/tmp/dur/hrs/b34.jpg)

I have hi-lighted the area i want to modify.

I want it to do this:
(http://tangiblebrit.com/i/preview.dll/tmp/dur/hrs/af34.jpg)

any suggestions on what to do?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
how would you make 'next' disappear on the last image?
« Reply #1 on: March 16, 2004, 07:08:38 pm »

in an un-modded gallery, you would open displayimage.php, and remove this;

Code: [Select]
if ($pos < ($pic_count -1)) {
        $next = $pos + 1;
        $next_tgt = "$PHP_SELF?album=$album$cat_link&pos=$next";
        $next_title = $lang_img_nav_bar['next_title'];
    } else {
        $next_tgt = "javascript:;";
        $next_title = "";
    }
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« Reply #2 on: March 16, 2004, 08:11:26 pm »

wait-so your saying that when it comes to the last image, it will hide 'next' ?

that's what i want to do, and for 'previous' also

like when it starts at the first image, it hides 'previous'.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
how would you make 'next' disappear on the last image?
« Reply #3 on: March 16, 2004, 09:46:56 pm »

What I am saying, is I think it will do what you want, but as I don't know what other mods you've done, and I'm not even sure whether it's the normal image you're showing, or the full size pop-up, I can't be sure.

Why don't you try it, and see.  If it works, you now should know what to look for to do the same with the previous, if not, restore your code, and ask again, with a bit more information.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« Reply #4 on: March 16, 2004, 10:24:37 pm »

nope

what it did was link to my gallery when i did that...

*this is intermediate display
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« Reply #5 on: March 16, 2004, 10:41:12 pm »

to be more specific, i want it to act like corbis does with images:

goto

http://pro.corbis.com/popup/Enlargement.aspx?mediauids={73d30cca-7e70-4fd6-8d26-4292b0e6ef5e}|{ffffffff-ffff-ffff-ffff-ffffffffffff}&qsPageNo=1&fdid=&Area=Search&TotalCount=554&CurrentPos=1&WinID={73d30cca-7e70-4fd6-8d26-4292b0e6ef5e}

and that is a pop up page with the image previous and next display,

since this image is the first in its album, it hides the previous link, and when you goto the last image in the album, it hides the next link

:)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
how would you make 'next' disappear on the last image?
« Reply #6 on: March 16, 2004, 10:50:40 pm »

OK, my mistake.
open theme.php, and look for
Code: [Select]
<a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}">
Delete everything in the cell, but not the cell itself.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« Reply #7 on: March 16, 2004, 11:57:24 pm »

ohhh no lol

i don't want to delete the entire 'Next Image' option!  :wink:

i want it to hide 'next image' when you get to the last image of the album-i am going to see what i should do - experiment.
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how would you make 'next' disappear on the last image?
« Reply #8 on: March 16, 2004, 11:58:05 pm »

thank you for your help, though:)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.