Page 1 of 1

Re: Share link doesn't work when using a custom index.html

Posted: 21 Aug 2011, 06:38
by mjau-mjau
You need to include the AddThis javascript to your custom document. Put the following in the <head>:
Code
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>

Re: Share link doesn't work when using a custom index.html

Posted: 22 Aug 2011, 12:55
by mjau-mjau
Sorry, I misunderstood the problem ... I think Nick will get back to you shortly with a possible solution. The problem occurs because you are using a custom index file that does not apply the action ?share=

Re: Share link doesn't work when using a custom index.html

Posted: 22 Aug 2011, 14:27
by Nick
This is a bug, but we can provide a workaround for now.

Rename your index.html to index.php and add the following as the first line:
Code
<?php if(isset($_GET['share'])) { include ('imagevue.php'); die(); }?>
This will make sure the imagevue.php is used if there is a 'share' parameter passed in the query string.

Re: Share link doesn't work when using a custom index.html

Posted: 24 Aug 2011, 05:07
by Nick
Oh I didn't notice that you have both index.html and index.php, in that case rename index.html to index.php overwriting the latter and make sure there is no index.html left in the root folder, then paste this line in the beginning of the file:
Code
<?php if(isset($_GET['share']) || isset($_GET['language'])) { include ('imagevue.php'); die(); }?>
But of course the easiest way to solve this would be to put gallery in a sub-folder.