Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Auto Avatar Changing through Cron? in the Shared & Semi-Dedicated forum
I was looking on different forums and I thought it would be cool to put a randomly changing avatar on there everytime someone reloads. Is ...

  1. #1
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471

    Auto Avatar Changing through Cron?

    I was looking on different forums and I thought it would be cool to put a randomly changing avatar on there everytime someone reloads. Is there any possible way to make it happen at our cpanel through a cron job or any other possible way?

    (I tried linking a php script on there, but most forums only take, gif, jpgs, etc.). ^^

    Just a random wacky idea. ^^;;

    ---------------------------

    Ah, got it working through a php script with a disguised extension of gif. ^^;;
    Last edited by kiwi li; 07-23-2005 at 04:02 PM.
    If you see me posting, there must be bad news. ^^

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Could an apache rewrite rule perhaps do that? I.e. rewrite "avatar.gif" into a random file name taken from a certain folder?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    I'd consider using rewrite to call a script, and have the script return the random file.
    in the avatar directory, .htaccess
    Code:
    RewriteEngine On
    
    RewriteRule ^avatarname.gif$ /path/to/randomefilereturner.php
    Or some such

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •