Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    2. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    3. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

Xbox 360 Countdown in my Sig


Hunter¥
 Share

Recommended Posts

So, I'm wondering if it's possible to get this Xbox 360 countdown, near the middle of this page, in my sig. I understand that this probably sounds retarded and is probably impossible but I wasn't entirely sure.

 

That's basically it.

Link to comment
Share on other sites

  • 4 weeks later...

Yeah, that'd be great and all if we had HTML and Javascript enabled for sigs.

 

Which would also result in the forum being one massive security hole :rofl:

 

You'll want a PHP script that generates an image, containing the countdown.

Link to comment
Share on other sites

user posted image

 

edit - and yeah, I didn't specify what its counting down to, but gimme a break. I wrote that in about two minutes after reading up on mktime();.

Link to comment
Share on other sites

Don't suppose you'd be able to mirror that anywhere else, anuj? I'd like to see it, but can't see anything on 2G, along with the other Melbournians/Australians apparently.

Link to comment
Share on other sites

 

Don't suppose you'd be able to mirror that anywhere else, anuj? I'd like to see it, but can't see anything on 2G, along with the other Melbournians/Australians apparently.

Yeah, Hostrocket is really pissing me off. I'll see what i can do.

 

I might have accidentally banned the entire range of a popular Aussie ISP. I'll remove all the IP denies and see if it gets better. Until then:

 

 

<?php//xbox360 countdownheader("Content-type:image/png");$background = "http://www.2graphik.com/count.png";$image = ImageCreateFromPNG($background);$tahoma = "/home/sigmg/public_html/TAHOMABD.TTF";$now = time();$cday = 22;$cmonth = 11;$cyear = 2005;$hour = 8;$then = mktime(0,0,0,$cmonth, $cday, $cyear);$calc = ($then - $now);$seconds = $calc;$weeks    = floor($seconds/604800);$seconds -= $weeks   * 604800;$days     = floor($seconds/86400);$seconds -= $days    * 86400;$hours    = floor($seconds/3600);$seconds -= $hours   * 3600;$minutes  = floor($seconds/60);$seconds -= $minutes * 60;$string = "$weeks weeks, $days days, $hours hours, $minutes minutes, and $seconds seconds until launch!";$white = ImageColorAllocate($image, -255, -255, -255);$black = ImageColorAllocate($image, -0, -0, -0);imagettftext($image, 10, 0, 40, 21, $black, $tahoma, $string);imagettftext($image, 10, 0, 39, 20, $black, $tahoma, $string);imagettftext($image, 10, 0, 38, 19, $white, $tahoma, $string);ImagePNG($image);ImageDestroy($image);?>

 

 

Remember to replace:

 

1. The path to tahomabd.ttf (just upload tahoma bold and use appropriate path) In retrospect, I should've just used imagestring(), but I wanted to use tahoma. tounge.gif

2. The URL to count.png (mirror provided below)

 

user posted image

 

http://img390.imageshack.us/img390/5548/count8nq.png

Link to comment
Share on other sites

How are you able to make a php image show up in the forum? Or does invision allow php images and phpBB doesn't?

Link to comment
Share on other sites

How are you able to make a php image show up in the forum? Or does invision allow php images and phpBB doesn't?

It doesn't allow PHP extensions by default, but rotators/dynamic sigs aren't against the rules, per se.

 

So all you do is write your script, put it in your image tags, and add something like "?act=pic.png" to the end of the URL.

Link to comment
Share on other sites

So all you do is write your script, put it in your image tags, and add something like "?act=pic.png" to the end of the URL.

You only need to do that for avatars, I think. And I so came up with that way of getting around it. tounge.gif

 

Also, I've never had a problem accessing 2G.

Link to comment
Share on other sites

I'd change that "launch" to "lunch", cause I really haven't had any lunch in a long time.

 

Anyways, there are lots of ways to do it. But I congratulate anuj on a well written one.

Link to comment
Share on other sites

And just as a sidenote, if you use the absolute URL (with the http intact) for loading the image, it's going to load it from the web, not the local file system. This will count towards your bandwidth limit TWICE each time it's viewed.

 

But other than that, very nicely done.

Link to comment
Share on other sites

And just as a sidenote, if you use the absolute URL (with the http intact) for loading the image, it's going to load it from the web, not the local file system. This will count towards your bandwidth limit TWICE each time it's viewed.

 

But other than that, very nicely done.

I updated the one on 2G's server with that in mind. Thanks for the heads-up. icon14.gif

Link to comment
Share on other sites

Wow. For a topic that I made a month ago, I didn't expect this. You're my hero. blush.gif

 

Edit: You wouldn't mind if I ripped off the style of the counter, to make an Xbox360 sig to go above it, would you?

 

Edit2: Wow, I suck at photoshop. I'm going to go play Battlefield. mad.gif

Edited by Hunter¥
Link to comment
Share on other sites

Wow. For a topic that I made a month ago, I didn't expect this. You're my hero. blush.gif

 

Edit: You wouldn't mind if I ripped off the style of the counter, to make an Xbox360 sig to go above it, would you?

 

Edit2: Wow, I suck at photoshop. I'm going to go play Battlefield. mad.gif

No problem. I used the theme of the 360 site to make the background of the sig, so me getting mad over style inspiration would be hypocritical. tounge.gif

Link to comment
Share on other sites

So, Yeah. I gave up. But thanks for the counter. tounge.gif

 

Edit: So, who wants to make me an unsh*tty .png sig? For the third time, my computer has crashed while in PS.

 

 

 

 

 

user posted image

Edited by Hunter¥
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.