forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: DJNilo on August 20, 2010, 06:57:24 am

Title: Need someting like this (Fullsize Image)
Post by: DJNilo on August 20, 2010, 06:57:24 am

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) (http://forum.coppermine-gallery.net/index.php/topic,34360.0.html) 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) (http://forum.coppermine-gallery.net/index.php/topic,34360.0.html)   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.


Title: Re: Need someting like this (Fullsize Image)
Post by: papukaija on August 20, 2010, 06:46:17 pm
Please post a link to your gallery (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) as requested by board rules.
Title: Re: Need someting like this (Fullsize Image)
Post by: DJNilo on August 23, 2010, 07:20:30 pm
Please post a link to your gallery (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) as requested by board rules.


Sorry, link http://www.fakeforlife.com/gallery/female/index.php <-- not save for work.
This is adult website.
Title: Re: Need someting like this (Fullsize Image)
Post by: DJNilo on August 25, 2010, 10:45:22 pm
Is this so hard to do??  ???
Title: Re: Need someting like this (Fullsize Image)
Post by: Nibbler on August 25, 2010, 11:35:39 pm
Not really. Changing the instructions from

Code: [Select]
'{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

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

should have the desired effect.
Title: Re: Need someting like this (Fullsize Image)
Post by: DJNilo on August 26, 2010, 03:16:33 am
Thx but where to edit and add the code? Index.php?
Title: Re: Need someting like this (Fullsize Image)
Post by: papukaija on August 26, 2010, 10:34:11 pm
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 (http://documentation.coppermine-gallery.net/en/).