Former Member
inherit
guest@proboards.com
209998
0
Nov 22, 2024 15:51:47 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 15, 2014 4:35:59 GMT -8
As you may know, Peter and Stinky666 have avatars that change randomly. I was going to ask sooner but I never got to it. As peter stated; "My code isn't tidy enough last I looked at it, I would suggest asking in the request board, someone may post a version with detailed instructions on how to set one up." So how exactly could I do this? I wasn't sure if he meant through a template request or a plugin request. Also,would I have to put the link for each avatar I want it to switch around to? I am fine with that because I am getting the images I plan on using.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jul 15, 2014 4:52:51 GMT -8
Originally, I was using a .php script that was open source from online, that I got several years ago. Since then, to try make it more random, Peter did make a few modifications to it (or gave me a new one, can't remember), so in case he did, I can't give you the script unless he doesn't mind. All mine is, is a simple code, then you place your avatars in a folder (all in one folder), upload it to a host, and input your url in your avatar slot on here, PB. And voila.
|
|
Former Member
inherit
guest@proboards.com
209998
0
Nov 22, 2024 15:51:47 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 15, 2014 5:00:36 GMT -8
Originally, I was using a .php script that was open source from online, that I got several years ago. Since then, to try make it more random, Peter did make a few modifications to it (or gave me a new one, can't remember), so in case he did, I can't give you the script unless he doesn't mind. All mine is, is a simple code, then you place your avatars in a folder (all in one folder), upload it to a host, and input your url in your avatar slot on here, PB. And voila. Thanks for explaining. So we just have to wait for Peter's approval.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jul 15, 2014 5:05:40 GMT -8
Originally, I was using a .php script that was open source from online, that I got several years ago. Since then, to try make it more random, Peter did make a few modifications to it (or gave me a new one, can't remember), so in case he did, I can't give you the script unless he doesn't mind. All mine is, is a simple code, then you place your avatars in a folder (all in one folder), upload it to a host, and input your url in your avatar slot on here, PB. And voila. Thanks for explaining. So we just have to wait for Peter's approval. Or if I send him the script that I have to see if it is his or not. Then if it isn't, I can give you it and explain what to do. If it is his, then yeah he'd need to approve. I'm pretty sure there's a website or 2, that allows you to register and gives you a rotating image for free. I can't remember the name of it, so unfortunately can't google it or anything. I'm sure someone knows which site I mean and can hopefully link to it.
|
|
Former Member
inherit
guest@proboards.com
209998
0
Nov 22, 2024 15:51:47 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 15, 2014 5:11:52 GMT -8
Thanks for explaining. So we just have to wait for Peter's approval. Or if I send him the script that I have to see if it is his or not. Then if it isn't, I can give you it and explain what to do. If it is his, then yeah he'd need to approve. I'm pretty sure there's a website or 2, that allows you to register and gives you a rotating image for free. I can't remember the name of it, so unfortunately can't google it or anything. I'm sure someone knows which site I mean and can hopefully link to it. Great because I was a little confused.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jul 15, 2014 5:14:17 GMT -8
Or if I send him the script that I have to see if it is his or not. Then if it isn't, I can give you it and explain what to do. If it is his, then yeah he'd need to approve. I'm pretty sure there's a website or 2, that allows you to register and gives you a rotating image for free. I can't remember the name of it, so unfortunately can't google it or anything. I'm sure someone knows which site I mean and can hopefully link to it. Great because I was a little confused. Here we go: www.random-image.net/That's the one I was thinking of. It was really bugging me! Or there is also this one: www.imgweave.com/Try both to see which one is better, as in more customization, allows more and bigger images etc.
|
|
Former Member
inherit
guest@proboards.com
209998
0
Nov 22, 2024 15:51:47 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 15, 2014 5:53:08 GMT -8
I have the coding for it but I don't know where I add the coding. Never mind I figured it out. Thanks Stinky666
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 15, 2014 10:05:06 GMT -8
For future reference in case other people are interested (should be the same as one I done for you Stinky666)... <?php
$dir = "images/"; $images = scandir($dir);
$i = rand(2, sizeof($images) - 1);
header("Content-Type: image/png");
echo readfile($dir . $images[$i]); exit();
?>
|
|