Data Realms Fan Forums http://45.55.195.193/ |
|
Avatars - How to change it everytime you refresh the page http://45.55.195.193/viewtopic.php?f=48&t=15909 |
Page 1 of 1 |
Author: | Wizard James [ Fri Jul 17, 2009 11:20 pm ] |
Post subject: | Avatars - How to change it everytime you refresh the page |
If anyone has ever noticed, my avatar and a few others change everytime you reload the page. If you want this, i am willing to set it up for you, All i need is the images (to be the same size of them all and no bigger then 170x140) in a .zip or .rar (or any package you want) and i will upload then and give you a link. |
Author: | Duh102 [ Sat Jul 18, 2009 12:03 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
I have an alternate way that would take a little less effort on everybody's part. Go to imgkk.com, and in another tab, whichever image host you like best. I use tinypic.com. Go to "Tools" and "Image Randomizer" Paste in all the direct URLs of your images hosted on your image host. This usually comes in the form of a ".jpg" at the end of the link. Hit the "Create" button at the bottom. Copy the Direct link Imgkk gives you. Open up your avatar tab on DRL's control panel. Paste the direct link that Imgkk gave you into the "Link off-site:" box. Hit "Submit". Enjoy. |
Author: | Wizard James [ Sat Jul 18, 2009 5:43 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Duh102 wrote: I have an alternate way that would take a little less effort on everybody's part. Go to imgkk.com, and in another tab, whichever image host you like best. I use tinypic.com. Go to "Tools" and "Image Randomizer" Paste in all the direct URLs of your images hosted on your image host. This usually comes in the form of a ".jpg" at the end of the link. Hit the "Create" button at the bottom. Copy the Direct link Imgkk gives you. Open up your avatar tab on DRL's control panel. Paste the direct link that Imgkk gave you into the "Link off-site:" box. Hit "Submit". Enjoy. Yes, that may work, but the site i use is hosted by the same server that datarealms uses, so its normaly alot faster then any of those other photouploading sites. |
Author: | Duh102 [ Sat Jul 18, 2009 7:11 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Wizard James wrote: so its normaly alot faster Fair enough. I don't mind the lag much, but I suppose some might. |
Author: | Grif [ Sat Jul 18, 2009 7:12 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Can you embed the images? If so then I'll upload the frames to my sig. |
Author: | TheLastBanana [ Sat Jul 18, 2009 7:14 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Embedding should be fine too. |
Author: | Skiv [ Tue Jul 28, 2009 9:51 pm ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
imgkk took out the Image Randomizer. So now we should search another way. or just send the files to WJ like he said ;P |
Author: | Duh102 [ Tue Jul 28, 2009 10:29 pm ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Also, setting up your own with a php(?)-capable web host would work. If anyone is too lazy for that, I moved to here for mine. |
Author: | TheLastBanana [ Wed Jul 29, 2009 1:09 am ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Okay, here's a walkthrough for setting up a free php site to do this kind of thing for you. ONLY FOLLOW THIS if you are fairly technologically inclined, as there are all sorts of bugs and such that can occur along the way and you will need to be able to figure them out. If this doesn't work, that's too bad, you'll have to ask Wizard James to host them for you. Also keep in mind that anything hosted by Wizard James is going to be faster to load than these, as it is A) on the same server as the forum and B) on a server that is actually being paid for. Anyway, without further ado (and thanks to WJ for showing me how to set this up):
2. Log in to your control panel. 3. Click on "File manager" under "FTP Manager". (If you're using another site, find the file manager.) 4. Go into the "htdocs" folder. 5. Within the htdocs folder, create another folder that you can remember the name of. This is just so you can have separate rotation sequences for avatars. For instance, if you are having an avatar that is a sequence of pictures of ducks, name it "ducks". 6. In this new folder, make a file called "avatar.php". Put this code inside of it: Code: <?php $filetype = end(explode(".",$_SERVER['REQUEST_URI'])); if($filetype != "jpg" && $filetype != "gif" && $filetype != "png") exit; if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && stristr($file, ".".$filetype)) $files[]=$file; } closedir($handle); } if ($files) { $imagenr = rand(0, sizeof($files)-1); if($filetype == "jpg") $filetype = "jpeg"; $fp = fopen($files[$imagenr], 'rb'); header("Content-Type: image/$filetype"); header("Content-Length: " . filesize($files[$imagenr])); fpassthru($fp); exit; } ?> 7. Create a file called ".htaccess". Put this code in it: Code: RewriteEngine on RewriteRule (.png) avatar.php RewriteRule (.gif) avatar.php RewriteRule (.jpg) avatar.php 8. Upload your files into this folder. Remember the following rules:
-All files must be 170x140 or under. -All files must have the same filetype. -The only filetypes that this script allows are .jpg, .gif and .png. 9. Go to your Control Panel. 10. Click on "Profile". 11. Click "Edit Avatar". 12. Go to the "Link Off-Site" box and enter what your domain name was, adding this onto the end: "/nameoffolder/avatar.php/avatar.filetype". As an example, in my case, the folder the avatar pictures are contained in is called "bo" and it is of filetype "png". So, the URL is "http://thelastbanana.xlphp.net/img/bo/avatar.php/avatar.png". 13. Enter the images' dimensions under avatar dimensions. 14. Hit "Submit". You're done! |
Author: | Duh102 [ Fri Dec 17, 2010 4:17 pm ] |
Post subject: | Re: Avatars - How to change it everytime you refresh the page |
Bumping this to show people how to do it, follow TLB's post above this one for best results (Wizard James is no longer around). |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |