View unanswered posts | View active topics It is currently Fri Mar 29, 2024 2:35 pm



Reply to topic  [ 10 posts ] 
 Avatars - How to change it everytime you refresh the page 
Author Message

Joined: Tue Jun 13, 2006 8:18 am
Posts: 573
Reply with quote
Post 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.


Fri Jul 17, 2009 11:20 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Sat Jul 18, 2009 12:03 am
Profile

Joined: Tue Jun 13, 2006 8:18 am
Posts: 573
Reply with quote
Post 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.


Sat Jul 18, 2009 5:43 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Sat Jul 18, 2009 7:11 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Sat Jul 18, 2009 7:12 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Avatars - How to change it everytime you refresh the page
Embedding should be fine too.


Sat Jul 18, 2009 7:14 am
Profile WWW
User avatar

Joined: Sat Mar 03, 2007 11:20 pm
Posts: 789
Location: Location: Location
Reply with quote
Post 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


Tue Jul 28, 2009 9:51 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Tue Jul 28, 2009 10:29 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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):

    1. Go to http://www.xlphp.net/ and set up a site. Make sure to bookmark the control panel page as there is no login from the main site. When it tells you what your domain will be, write it down! Usually it is "http://yourusernamehere.xlphp.net/". For instance, in my case, it is "http://thelastbanana.xlphp.net/". Note: I cannot say for sure that this site is totally safe. It has a lot of popups. I haven't gotten any viruses or otherwise from it, but always play it on the safe side and feel free to find another hosting service for this, as they will work the same.

    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 have the same dimensions.
      -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!


Wed Jul 29, 2009 1:09 am
Profile WWW
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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).


Fri Dec 17, 2010 4:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.081s | 15 Queries | GZIP : Off ]