Need help with the site/forum/pets? Ask questions and get help from other members here.
by -------------- » Tue May 14, 2019 9:09 pm
probably you're using sig.grumpybumpers.com for having random images at every refresh. if you're hosting php supporter site you're able to do similar to this

.
i'm using this three images(1,2,3): (probably gave you broken. visit the site to fix

)

,

,

and lets change them with every refresh! use that:
- Code: Select all
<?php
//variable
$id=mt_rand(0,2);
//Tell the browser that we are sending it a PNG image to display
header("Content-Type: image/png");
//Echo Random!!
if ($id==0){
//Echo the contents of the image file
readfile("1.png");
}
elseif ($id==1){
//Echo the contents of the image file
readfile("2.png");
}
elseif ($id==2){
//Echo the contents of the image file
readfile("3.png");
}
?>
name that file to refreshimage.php
and our output is : (refresh to see another)
- Code: Select all
(make sure to put the link betwwen [img] and [/img]0
the "mt_rand(0,yournumber)" allows you to have random value between "0" and "yournumber" (if you choose 0 and 12 or anything. that will give one more (13)
I'll add more odd guides as soon as possible 
-
--------------
-
- Posts: 5352
- Joined: Sat Jul 28, 2018 10:22 pm
- My pets
- My items
- My wishlist
- My gallery
- My scenes
- My dressups
- Trade with me
by ~Phantom » Wed May 15, 2019 7:05 am
Hey, this area of the forums is used for questions and suggestions, there is already a guide for coding bbc within this site. However there is not much need for php as this site doesn't allows users to insert php into their coding (I'm pretty sure).
┌─────────────────────────┐│
│
│
│
│
│
│
│
│
│└─────────────────────────┘
-

~Phantom
-
- Posts: 11755
- Joined: Sun Feb 07, 2016 2:28 pm
- My pets
- My items
- My wishlist
- My gallery
- My scenes
- My dressups
- Trade with me
by ~Phantom » Wed May 15, 2019 11:47 pm
EchoDino wrote:~Phantom wrote:Hey, this area of the forums is used for questions and suggestions, there is already a guide for coding bbc within this site. However there is not much need for php as this site doesn't allows users to insert php into their coding (I'm pretty sure).
yes. but it's guide for site makers

This isn’t a site for guide makers for php, this is chickensmoothie that is based around collecting pets and posts are based around bbcodinf, not php... This isn’t the forums to put guides, you should find a forum better suited if you wish to do this.
┌─────────────────────────┐│
│
│
│
│
│
│
│
│
│└─────────────────────────┘
-

~Phantom
-
- Posts: 11755
- Joined: Sun Feb 07, 2016 2:28 pm
- My pets
- My items
- My wishlist
- My gallery
- My scenes
- My dressups
- Trade with me
Who is online
Users browsing this forum: Google Adsense [Bot] and 18 guests