how would you make 'next' disappear on the last image? how would you make 'next' disappear on the last image?
 

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]

Main Menu

how would you make 'next' disappear on the last image?

Started by bit bit spears, March 16, 2004, 06:02:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

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?

Casper

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 = "";
    }
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

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'.

Casper

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.
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

nope

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

*this is intermediate display

bit bit spears

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

:)

Casper

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.
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

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.

bit bit spears