Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adding your own HTML to EnlargeIt window with Image  (Read 11210 times)

0 Members and 1 Guest are viewing this topic.

andybutkaj

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Adding your own HTML to EnlargeIt window with Image
« on: November 17, 2010, 09:27:24 pm »

Is there an easy way how to add your own html (e.g. <div>something</div>) to pictures which are enlarged in your coppermine gallery. EnlargeIt window usually consist from Title, buttons (close, info, next, prev, etc.) and the large picture itself...

I tried to find it in code, but I realized that everything is created dynamically by javascript (which is packed by some method). So not easy way to do it for me.

Thanks for any suggestions
Andy
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #1 on: November 18, 2010, 01:04:09 am »

Powered by Coppermine text is not visible in your gallery. Please make it visible if you need support.
Logged

andybutkaj

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #2 on: November 18, 2010, 01:13:24 am »

don't understand... it is

http://www.butkaj.com/visit/
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #3 on: November 18, 2010, 09:18:47 am »

<!--Coppermine Photo Gallery 1.4.20 (stable)-->

Moving accordingly.
Logged

andybutkaj

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #4 on: November 21, 2010, 11:57:31 am »

Ok, i found it by myself.

You have to add your own code to enlargeit_source.js, then you have to use (e.g. http://javascriptcompressor.com/) to compress your javascript code (to base64) and this code you should replace in enlargeit.js.

This way you can add, facebook like/recommend button, or AddThis button to your enlarged pictures so your visitors can share it. Example here: http://www.toprq.com/thumbnails.php?album=10
 
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #5 on: November 21, 2010, 05:20:44 pm »

then you have to use (e.g. http://javascriptcompressor.com/) to compress your javascript code (to base64)
Do you really need to do that? Does EnlargeIt won't work with an uncompressed file? Just a question, I never looked at the plugin source.
Logged

andybutkaj

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Adding your own HTML to EnlargeIt window with Image
« Reply #6 on: November 21, 2010, 05:51:40 pm »

Andree: Originally my enlargeIt version uses packed version (enlargeit.js)... Obviously, you can put there uncompressed version instead of the packed line (from enlargeit_source.js), but I just tried to keep the standard from the author...

In my case, I also never used the JS packer before, so I was curios, why my javascript changes does not showup...:)  then I found strange line in enlargeit.js, I searched for it online, found some packers, I use them - surprisingly - it has worked... ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.