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

0 Members and 1 Guest are viewing this topic.

DJNilo

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Need someting like this (Fullsize Image)
« 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) 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.


Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Need someting like this (Fullsize Image)
« Reply #1 on: August 20, 2010, 06:46:17 pm »

Please post a link to your gallery as requested by board rules.
Logged

DJNilo

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Need someting like this (Fullsize Image)
« Reply #2 on: August 23, 2010, 07:20:30 pm »

Please post a link to your gallery as requested by board rules.


Sorry, link http://www.fakeforlife.com/gallery/female/index.php <-- not save for work.
This is adult website.
Logged

DJNilo

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Need someting like this (Fullsize Image)
« Reply #3 on: August 25, 2010, 10:45:22 pm »

Is this so hard to do??  ???
Logged

Nibbler

  • Guest
Re: Need someting like this (Fullsize Image)
« Reply #4 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.
Logged

DJNilo

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Need someting like this (Fullsize Image)
« Reply #5 on: August 26, 2010, 03:16:33 am »

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

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Need someting like this (Fullsize Image)
« Reply #6 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.