OK, that was easy in fact. So for those interested to only have the mod to appear in the index page only, follow these steps :
1- In index.php, replace include('anycontent.php');
by include('anycontentindex.php');
. Save the file.
2- Make a copy of anycontent.php and rename it anycontentindex.php
3- Open anycontent.php and replace This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
by the applet code given in this topic. For example :
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#FFFFFF" scroll="auto">
<table width="100%" height="100%" border="0"><tr align="center" valign="middle"><td>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '750',
'height', '250',
'src', 'flow_link',
'FlashVars', 'xmlPath=http://mgcontact2.free.fr/photos/flow_link.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#FFFFFF',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
Save the file
4- Connect as admin in your Coppermine. In Configuration/ Content of the main page make sure you have anycontent in the list. For example :
breadcrumb/catlist/alblist/anycontent
5- Send index.php and anycontentindex.php to your server. It should work.