Adding your own HTML to EnlargeIt window with Image Adding your own HTML to EnlargeIt window with 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

Adding your own HTML to EnlargeIt window with Image

Started by andybutkaj, November 17, 2010, 09:27:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andybutkaj

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

papukaija

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


Αndré

Quote from: http://www.butkaj.com/visit/<!--Coppermine Photo Gallery 1.4.20 (stable)-->

Moving accordingly.

andybutkaj

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

Αndré

Quote from: andybutkaj on November 21, 2010, 11:57:31 AM
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.

andybutkaj

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