This mod is done by replacing the code in anycontent.php with the following. This will give you a "standalone -like" language selection block with flags...TESTED in phpnuke6.8...only
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.2.1 -nuke //
// ------------------------------------------------------------------------- //
// mod by gtroll webmaster (at) coppermine.findhere.org --------- //
$title = _SELECTLANGUAGE;
starttable('100%', '$title);
?>
<tr><td>
<table class="tableb" width="100%">
<tr>
<td align="center" valign="top">
<?
global $currentlang;
$content = "<font class=\"content\">"._SELECTGUILANG."<br>";
$langdir = dir("language");
while($func=$langdir->read()) {
if(substr($func, 0, 5) == "lang-") {
$menulist .= "$func ";
}
}
closedir($langdir->handle);
$menulist = explode(" ", $menulist);
sort($menulist);
for ($i=0; $i < sizeof($menulist); $i++) {
if($menulist[$i]!="") {
$tl = ereg_replace("lang-","",$menulist[$i]);
$tl = ereg_replace(".php","",$tl);
$altlang = ucfirst($tl);
$content .= "<a href=\"{$_SERVER[PHP_SELF]}?{$_SERVER[QUERY_STRING]}&newlang=$tl\">";
$imge = "images/language/flag-$tl.png";
if (file_exists($imge)){
$content .= "<img src=\"$imge\" align=\"middle\" border=\"0\" alt=\"$altlang\" title=\"$altlang\" hspace=\"3\" vspace=\"3\">";
} else {
$content .= "$altlang";
}
$content .= "</a> ";
}
}
OpenTable();
echo "<p align=\"center\">$content</p>";
CloseTable();
?>
</td></tr>
</table>
</tr></td>
<?php
endtable();
?>
Only one "bug" with this code if you select language after language each is added to the query string but strangly php knows which var=value you're talking about ie &newlang=chinese&newlang=indonesian&newlang=english