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

Zufälliges Avatar generieren

Recommended Posts

<?php

$avatar = array(); 


$avatar[] = 'g.gif'; // erstes Avatar

$avatar[] = 'g.jpg'; // zweites Avatar



mt_srand((double)microtime()*1000000);

$zufallszahl = mt_rand(0,count($avatar)-1);


Header('Location:'. $avatar[$zufallszahl]); // Ausgabe

?>

ich hab diesen code dazu gefunden ... und wollte fragen ob man das ins ipb so einbauen kann das es einen zufälligen avatar bei neuen usern

die noch kein eigen avatar gewählt haben und bei gästen angezeigt wird ...

mfg

Fabio

Share this post


Link to post

ich weis den Code nicht aber du kannst es doch dann mit htaccess leg das script als jpg ab und lass die htaccess datei als Bild ausgeben.

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  

×