Die Generierung der Box habe ich mittlerweile gefunden. Sie ist hardcoded in der includes/functions.inc.php.
Gibts da eine Möglichkeit dieses mit der themes.php im themes-Ordner zu ändern?
Für mich könnte ich die Änderung durchführen, aber da ich das Theme, wenn ich fertig bin, hier veröffentlichen möchte, wird das wohl nicht möglich sein.
Hier der Code:
// display news from coppermine-gallery.net
if ($CONFIG['display_coppermine_news'] == 1 && GALLERY_ADMIN_MODE) {
$help_news = ' ' . cpg_display_help('f=configuration.htm&as=admin_general_coppermine_news&ae=admin_general_coppermine_news_end&top=1', '600', '300');
$news_icon = cpg_fetch_icon('news_show', 2);
$news_icon_hide = cpg_fetch_icon('news_hide', 1);
ob_start();
starttable('100%');
print <<< EOT
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="tableh1">
{$news_icon}{$lang_version_alert['coppermine_news']}{$help_news}
</td>
<td class="tableh1" align="right">
<a href="mode.php?what=news&referer={$REFERER}" class="admin_menu">{$news_icon_hide}{$lang_version_alert['hide']}</a>
</td>
</tr>
<tr>
<td class="tableb" colspan="2">
EOT;
// Try to retrieve the news directly
//$result = cpgGetRemoteFileByURL('http://coppermine-gallery.net/cpg15x_news.htm', 'GET', '', '200'); // disabled, see http://forum.coppermine-gallery.net/index.php/topic,65424.msg325573.html#msg325573
if (strlen($result['body']) < 200) { // retrieving the file failed - let's display it in an iframe then
print <<< EOT
<iframe src="http://coppermine-gallery.net/cpg15x_news.htm" align="left" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" width="100%" height="100" name="coppermine_news" id="coppermine_news" class="textinput">
{$lang_version_alert['no_iframe']}
</iframe>
EOT;
} else { // we have been able to retrieve the remote URL, let's chop the unneeded data and then display it
unset($result['headers']);
unset($result['error']);
// drop everything before the starting body-tag
//$result['body'] = substr($result['body'], strpos($result['body'], '<body>'));
$result['body'] = strstr($result['body'], '<body>');
// drop the starting body tag itself
$result['body'] = str_replace('<body>', '', $result['body']);
// drop the ending body tag and everything after it
$result['body'] = str_replace(strstr($result['body'], '</body>'), '', $result['body']);
// The result should now contain everything between the body tags - let's print it
print $result['body'];
}
print <<< EOT
</td>
</tr>
</table>
</td>
</tr>
EOT;
Bin dankbar für jede Hilfe.