Is there a plugin that allow a new logo per refresh?
#3
Create a logo.php on your public root directory
<?php 
$logos = Array();
if ($dir = opendir('images/custom_logos')){
	while (false !== ($file = readdir($dir))){
		if (!preg_match("/\.png$/i", $file)){
			continue;
		}
		$logos[] = $file;
	}
	closedir($dir);
}

if (count($logos) > 0){
	$rand = rand(0, count($logos)-1);
	$logo = $logos[$rand];
	header('Content-Type: image/png');
	echo file_get_contents("images/custom_logos/{$logo}");
}
?>

Then, in your .htacccess
RewriteEngine On
RewriteBase /
RewriteRule ^images\/logo\.png logo.php [L,QSA,NC]

You should save all your logos at "images/custom_logos" in png format.

Then point your forum logo to

http://YOURSITE.COM/images/logo.png
Reply


Messages In This Thread
RE: Is there a plugin that allow a new logo per refresh? - by Neeeeeeeeeel.- - 2016-10-13, 10:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)