I see in the latest cvs that it is possible to get the embed.php path via fsockopen eg "http://example.com/gallery2/embed.php?getEmbedPath=1". I am having some difficulty in actually getting this to work in my embed code. Could you please post a snippet of how to use fsockopen to actually do this.
Thanks.
Posts: 32509
http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration#How_does_it_work.3F
Posts: 189
Thanks valiant, somehow I missed that.
If I use the functions in G2EmbedDiscoveryUtilities, how should the G2EmbedDiscoveryUtilities.class file be distributed with the embed code (Drupal in my case)? It would seem to me that ideally it should be part of the Gallery2 core files, rather than also supplying a (potentially out of date) version of it and then get the user to install it correctly.
Posts: 32509
of course you need to package the G2EmbedDiscoveryUtilities class with your integration and it can't be packaged with g2.
why? because you don't know where g2 is on the server at the time when you need G2EmbeDiscoveryUtilities.
the purpose of this class is to find g2.
Posts: 189
Doh. What kind of idiot am I ;-)