Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Image PHP
#1
I need to create a random image to use as a avatar for the forums i participate on. Does anyone know of a php script which will allow me to point to

http://www.gamersboards.com/mattsavatar/avatar.php
and get the random image

i already have a folder full of jpgs but id rather have it were it uses gifs, jpgs and pngs.

Thanks a bunch
MattG
#2
If you know PHP at all it should be simple.

Put them all into an array and then use array_rand() to randomize it.
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
#3
thats weird, i created it into a php file, like the following

[Image: rotate.php]

I tried to add it to the boards though but it says its invalid because its a php file, how would i get it as a signature like mattR's on mybb?
#4
(11-20-2010, 01:39 PM)MattG Wrote: thats weird, i created it into a php file, like the following

[Image: rotate.php]

I tried to add it to the boards though but it says its invalid because its a php file, how would i get it as a signature like mattR's on mybb?

Quick question, would you rather me just link you to a working sig rotator? Or do you want to have one for yourself?
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
#5
no it works, but it wont setup for a avatar, if you can find one that uses /example.php/image.jpg that would be great, i've found some, but they don't work.

you know what ill do, ill rewrite it in htaccess

edit worked perfectly

dang now it does not rotate
#6
(11-20-2010, 02:15 PM)MattG Wrote: no it works, but it wont setup for a avatar, if you can find one that uses /example.php/image.jpg that would be great, i've found some, but they don't work.

you know what ill do, ill rewrite it in htaccess

edit worked perfectly

dang now it does not rotate

I've made one but it doesn't work with avatars either.

You can use this, not sure if it works for avatars.
http://sig.grumpybumpers.com/
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
#7
not going to work i need one that displays it on when access the php file, not redirects.
#8
I sent you a PM, try that I am not sure if it'll work. It uses the array_rand function though.

The one I made doesn't work with avatars either.
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
#9
Finally got one to work, Used MattR's which he shared with everyone, just didn't see.
#10
(11-20-2010, 03:34 PM)MattG Wrote: Finally got one to work, Used MattR's which he shared with everyone, just didn't see.

Alright, did the one I sent you in a PM work at all?
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 795 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Image: How To Show A User Their IP In Your Signature. BreShiE 9 3,293 11-08-2011, 06:26 AM
Last Post: Contribution
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,320 10-10-2011, 01:00 PM
Last Post: Greyersting
  Random Signature script Gaijin 8 4,683 01-24-2010, 05:08 PM
Last Post: Gaijin
  PHP Image with custom font Gaijin 0 2,520 11-10-2009, 04:54 PM
Last Post: Gaijin

Forum Jump:


Users browsing this thread: 1 Guest(s)