forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: andybutkaj on November 17, 2010, 09:27:24 pm

Title: Adding your own HTML to EnlargeIt window with Image
Post by: andybutkaj 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
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: papukaija 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.
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: andybutkaj on November 18, 2010, 01:13:24 am
don't understand... it is

http://www.butkaj.com/visit/
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: Αndré on November 18, 2010, 09:18:47 am
Quote from: http://www.butkaj.com/visit/
<!--Coppermine Photo Gallery 1.4.20 (stable)-->

Moving accordingly.
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: andybutkaj 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
 
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: Αndré 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.
Title: Re: Adding your own HTML to EnlargeIt window with Image
Post by: andybutkaj 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... ;)