coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on March 16, 2004, 06:02:15 PM

Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears on March 16, 2004, 06:02:15 PM
Ok, here is what i want to do, but am unsure of how to achieve it:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2Fi%2Fpreview.dll%2Ftmp%2Fdur%2Fhrs%2Fb34.jpg&hash=466b8e43f03ab9c711ad3d1ad448649a96f19c50)

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

I want it to do this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2Fi%2Fpreview.dll%2Ftmp%2Fdur%2Fhrs%2Faf34.jpg&hash=adb6135ab3af8e5b8bfedac9cf347d8adc27753d)

any suggestions on what to do?
Title: how would you make 'next' disappear on the last image?
Post by: Casper on March 16, 2004, 07:08:38 PM
in an un-modded gallery, you would open displayimage.php, and remove this;

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 = "";
    }
Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears 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'.
Title: how would you make 'next' disappear on the last image?
Post by: Casper 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.
Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears 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
Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears 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

:)
Title: how would you make 'next' disappear on the last image?
Post by: Casper on March 16, 2004, 10:50:40 PM
OK, my mistake.
open theme.php, and look for <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}">
Delete everything in the cell, but not the cell itself.
Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears 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.
Title: how would you make 'next' disappear on the last image?
Post by: bit bit spears on March 16, 2004, 11:58:05 PM
thank you for your help, though:)