Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Devil

Logo Rotation

Recommended Posts

Auf invisionize gibt es ein Logo-Roataions script. Aber irgendwie bekomme ich es nuicht zu laufen. Die Edits habe ich alle gemacht aber wie gesagt, es geht nicht.

Dies ist der Code der die Ausgabe der Logos steuern soll

<?php
$ext = array(".jpg", ".png", ".jpeg", ".gif");
$logos = array();
$logo_dir = opendir('logo/');
while (($file = readdir($logo_dir))) {
if ($file != "." && $file != ".." && in_array(strrchr($file, '.') ,$ext)) {
$logos[] = $file;
}
}
closedir($logo_dir);
$img = 'logo/'.$logos[array_rand($logos, 1)];
header('Content-type: image/png
');
header('Content-length: '.filesize($img));
readfile($img);
?>

Der Code in der global_board_header ist folgender

<img src='style_images/style_1/logo.php' alt='IPB' style='vertical-align:top' border='0' />

Es wäre toll wenn sich jemand meines Problems annehmen würde.

Danke

Edited by Devil

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×