Welcome, Guest. Please Login or Register.
April 22, 2025, 09:46:03 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Random avatars « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Random avatars  (Read 660 times)
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Random avatars
« on: July 31, 2002, 05:37:04 PM »
Reply with quote

Is this possible??
Some of my members are asking for it.
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Random avatars
« Reply #1 on: July 31, 2002, 09:54:08 PM »
Reply with quote

All depends on how it would be set up.
Logged
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:Random avatars
« Reply #2 on: July 31, 2002, 10:01:56 PM »
Reply with quote

They use a php script to randomize a avatar.
Logged

Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Random avatars
« Reply #3 on: August 01, 2002, 06:06:03 AM »
Reply with quote

Look, then hit refresh!

<<<<<---------------------------



 ;D
« Last Edit: August 01, 2002, 06:06:20 AM by Nemesis » Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Random avatars
« Reply #4 on: August 01, 2002, 06:17:37 AM »
Reply with quote

Look then hit refresh for me as well. ;)

Jedi has one also. ;D
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:Random avatars
« Reply #5 on: August 01, 2002, 03:02:24 PM »
Reply with quote

Aha so it works, thnx.
Is there a possibility that someone can run a php script to destroy your forum? I mean, is it secure to run php in your avatar?
Logged

Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Random avatars
« Reply #6 on: August 01, 2002, 03:16:33 PM »
Reply with quote

The php in the avatar scripts can't really do any damage because it is being loaded inside of a image tag. So if the php script being used doesn't have an image it will display an x.

Edit: Just to be sure, I tried to make a php file that would get the password from the board and save it to a file, the script would not save it to the file when I used it as my avatar.
« Last Edit: August 01, 2002, 03:29:24 PM by Chris Cromer » Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Random avatars
« Reply #7 on: August 01, 2002, 05:36:02 PM »
Reply with quote

there are some cool ones here:
http://www.yabb.info/community/index.php?board=137;action=display;threadid=7266
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:Random avatars
« Reply #8 on: August 01, 2002, 09:13:57 PM »
Reply with quote

<------ look and refresh too ;)

Logged
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:Random avatars
« Reply #9 on: August 02, 2002, 08:29:12 AM »
Reply with quote

Thnx for the quick reply's!!
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Random avatars
« Reply #10 on: August 02, 2002, 11:43:56 AM »
Reply with quote

We love yours, Scotty ;) :P
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:Random avatars
« Reply #11 on: August 04, 2002, 12:31:40 PM »
Reply with quote

Quote from: Jedi~ on August 02, 2002, 11:43:56 AMWe love yours, Scotty ;) :P

Someone's obsessed with Holly Valance :P
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Random avatars
« Reply #12 on: August 07, 2002, 11:29:50 AM »
Reply with quote

I don't even know who that is, it's just a nice bunch of avatars :P
Logged
Positronix
Noobie
*
Posts: 11


Good News! Good News!

richard@kcmultimedia.co.uk WWW
Re:Random avatars
« Reply #13 on: August 08, 2002, 02:03:24 PM »
Reply with quote

I suppose you could offer a service to your visitors using this script:

<?php
$absolute_path 
"home/path/personal_avatars/" $user;
$directory "http://site.com/path/personal_avatars/" $user;
$dir opendir($absolute_path);
while(
$avatar readdir($dir))
   {   if(($avatar != "..") and ($avatar != "."))
      {   $avatars[] = "$avatar";   }
   }
srand((double)microtime() * 1000000);
shuffle($avatars);
$randomAvatarURL $avatars[0];
$avatar fopen("$directory/$randomAvatarURL""w+");
while (!
feof($avatar))
   {   print fread($avatar,120);   }
?>


It's edited from one of those in the other discussion, but in this one you can create various directories containing various avatars for various users, using the same script. Upload the avatars for each user, then call it by using the url:

http://site.com/path/personal_avatars/avatar.php?user=username

Obviously changing details to reflect your setup. That's how my avatar works, and as you can see, it works fine!
« Last Edit: August 08, 2002, 02:05:26 PM by Positronix » Logged

Positronix
KC Multimedia
http://www.kcmultimedia.co.uk
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:Random avatars
« Reply #14 on: August 08, 2002, 06:13:11 PM »
Reply with quote

Quote from: Mach8 on August 04, 2002, 12:31:40 PM
Quote from: Jedi~ on August 02, 2002, 11:43:56 AMWe love yours, Scotty ;) :P

Someone's obsessed with Holly Valance :P

Shes got a nice personality ;)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Random avatars « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 17 queries.