Need someting like this (Fullsize Image) Need someting like this (Fullsize 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

Need someting like this (Fullsize Image)

Started by DJNilo, August 20, 2010, 06:57:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJNilo


Hey, sorry if i posting this in the worng area.

I saw a little hack called from thumbnail to full-size pop-up (skip intermediate page) i tested this on my coppremine 1.5.8 gallery and it works well.

Now to my question, I want  a hack like this from thumbnail to full-size pop-up (skip intermediate page)   but it should not skip the (intermediate page) and instead when visitors click on image to see it in full then it should not open in a popup window, and instead will be open in the same window.

I do not like images showing up in pop-up window, I would prefer that it should be open in the same window.

Please, I have searched through the forum about this but have not found any, so if there is already then forgive me, I myself did not find any.



papukaija


DJNilo


DJNilo


Nibbler

Not really. Changing the instructions from


'{LINK_TGT}' => "javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid={$thumb['pid']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width={$thumb['pwidth']},height={$thumb['pheight']}')",


to


'{LINK_TGT}' => "displayimage.php?pid={$thumb['pid']}&fullsize=1",


should have the desired effect.

DJNilo

Thx but where to edit and add the code? Index.php?

papukaija

Quote from: DJNilo on August 26, 2010, 03:16:33 AM
Thx but where to edit and add the code? Index.php?
If you don't want to loose your changes on updates, then create/edit your custom theme. Search the given code (the original one) from sample theme's theme.php and copy the whole function around the given code to your custom theme and edit it as suggested. More information is available in the docs.