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
-
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
-
Powered by Coppermine text is not visible in your gallery. Please make it visible if you need support.
-
don't understand... it is
http://www.butkaj.com/visit/
-
<!--Coppermine Photo Gallery 1.4.20 (stable)-->
Moving accordingly.
-
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
-
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.
-
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... ;)