BakaBT > Need Help? Ask Here
Avatar not showing (only mine)
Tiffanys:
It's even more bizarre that it shows on your phone considering it doesn't show for us. o_O
Well, I tested on Chrome and it seems that it shows there. Doesn't show for Firefox though. My guess is it's a problem with the signavatar site not being compatible with some browsers.
You could just sign up here: http://0fees.net/
Then use this script:
<?php
/*
By Matt Mullenweg > http://photomatt.net
Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php
Latest version always at:
http://photomatt.net/scripts/randomimage
*/
// Make this the relative path to the images, like "../img" or "random/images/".
// If the images are in the same directory, leave it blank.
$folder = '';
// Space seperated list of extensions, you probably won't have to change this.
$exts = 'jpg jpeg png gif';
$files = array(); $i = -1; // Initialize some variables
if ('' == $folder) $folder = './';
$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) { // for each extension check the extension
if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive
$files[] = $file; // it's good
++$i;
}
}
}
closedir($handle); // We're not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
header('Location: '.$folder.$files[$rand]); // Voila!
?>
Just call it index.php and put it in a folder like "image.gif" for your avatars and "image2.gif" for your sigs or something.
megido-rev.M:
Huh, I don't see it either.
Belmakar:
I can see it at work, but not at home... both PCs have the most recent firefox installed
Clannad_92:
Forgot to mention that this only happen in firefox in my laptop...havent try my friends laptop...
And Tiffanys, how to use that code? Im not that good at codes...
Fwind4:
--- Quote from: Clannad_92 on February 19, 2013, 11:26:31 PM ---And Tiffanys, how to use that code? Im not that good at codes...
--- End quote ---
--- Quote from: Tiffanys on February 19, 2013, 03:54:47 PM ---Just call it index.php and put it in a folder like "image.gif" for your avatars and "image2.gif" for your sigs or something.
--- End quote ---
Copy/paste it into notepad and save it as index.php
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version