1. Post #81
    Meow :3
    Ac!dL3ak's Avatar
    July 2005
    6,062 Posts
    uhhh... what
    woops forgot the semicolon

    Code:
    location /sub/ {
    try_files $uri $uri/ /gf/index.php?$uri;
    }
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Funny Funny x 1 (list)

  2. Post #82
    zzlawlzz's Avatar
    July 2010
    1,750 Posts
    oh you forgot the ';'

    Edited:

    wow ninja'd

    Edited:

    that only checks if the file is there. Doesn't seem to help.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  3. Post #83
    Meow :3
    Ac!dL3ak's Avatar
    July 2005
    6,062 Posts
    oh you forgot the ';'

    Edited:

    wow ninja'd

    Edited:

    that only checks if the file is there. Doesn't seem to help.
    uh, no it doesn't?

    http://wiki.nginx.org/HttpCoreModule#try_files

    read up
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  4. Post #84
    lkymky's Avatar
    December 2007
    653 Posts
    I don't think that's technically a virus, so i don't think that would show up on an antivirus

    Edited:



    yeah, it should be document.getElementById("loadingText" + (arrows[ i ] + '<br/>'));
    http://jsfiddle.net/h8EaG/
    Damn still something is wrong here.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  5. Post #85

    May 2011
    213 Posts
    http://jsfiddle.net/h8EaG/
    Damn still something is wrong here.
    Click the JSLint button. It should highlight the errors. It's easy to fix them from there.

    Edited:

    I've fixed it for you.

    http://jsfiddle.net/a/h8EaG/2/

    Try that.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 1 (list)

  6. Post #86
    lkymky's Avatar
    December 2007
    653 Posts
    Click the JSLint button. It should highlight the errors. It's easy to fix them from there.

    Edited:

    I've fixed it for you.

    http://jsfiddle.net/a/h8EaG/2/

    Try that.
    Thanks :D
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  7. Post #87
    zhed+redball.jpg
    xmariusx's Avatar
    May 2010
    1,390 Posts
    Is there anyway to control the anti-alising on certain elemts if the browser supports anti-alising?
    Reply With Quote Edit / Delete Windows 8 Norway Show Events Dumb Dumb x 3 (list)

  8. Post #88
    Yanukovich Style
    Dennab
    January 2008
    2,888 Posts
    How can SteamID be found by having only steam name?
    Lets say I have HTML form, says your steam name:
    when user enters it there and clicks submit, it takes his steamID somehow, how can that be done? I saw many converters but they obviously don't show source code or anything.
    Reply With Quote Edit / Delete Windows 7 Ireland Show Events

  9. Post #89
    Upload Images
    kragmars102's Avatar
    April 2011
    731 Posts
    I don't know much of the API, but from what I know you won't be able to find their profile by only their steam name ( There are probably several duplicates of every name out there ).
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  10. Post #90
    Gold Member
    Adzter's Avatar
    September 2009
    2,015 Posts
    You'd probably have to have them enter their steam community ID page.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 1 (list)

  11. Post #91
    Dragon Member
    Dragory's Avatar
    January 2006
    1,312 Posts
    How can SteamID be found by having only steam name?
    Lets say I have HTML form, says your steam name:
    when user enters it there and clicks submit, it takes his steamID somehow, how can that be done? I saw many converters but they obviously don't show source code or anything.
    They fetch the XML version of the Steam Community profile page of the user (GET called "xml" - such as http://steamcommunity.com/id/dragory?xml=1), get the 64bit SteamID from that and then convert that (reverse the formula there).
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Useful Useful x 1 (list)

  12. Post #92
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    How can SteamID be found by having only steam name?
    Lets say I have HTML form, says your steam name:
    when user enters it there and clicks submit, it takes his steamID somehow, how can that be done? I saw many converters but they obviously don't show source code or anything.
    Code:
    <?php
    
    	function getSteamID($name)
    	{
    		if (!$name) return false;
    		
    		$id = file_get_contents('http://steamcommunity.com/id/'. $name .'?xml=1', null, null, 78, 17);
    		
    		$server = (substr($id, -1) % 2 == 0) ? 0 : 1;
    		
    		$auth = bcdiv(bcsub(bcsub($id, '76561197960265728'), $server), 2);
    		
    		return 'STEAM_0:'. $server .':'. $auth;
    	}
    	
    	echo getSteamID('Jaybuz');	// STEAM_0:0:6008869
    
    ?>
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Useful Useful x 1Friendly Friendly x 1 (list)

  13. Post #93
    Meow :3
    Ac!dL3ak's Avatar
    July 2005
    6,062 Posts
    How can SteamID be found by having only steam name?
    Lets say I have HTML form, says your steam name:
    when user enters it there and clicks submit, it takes his steamID somehow, how can that be done? I saw many converters but they obviously don't show source code or anything.
    you can use the Resolve Vanity URL thing from steam's web api for vanity urls, or you can convert a community steamid to the other kind of steamid.

    Unfortunately, you can't just take their name and try to find their profile; as one of the above posts said, there can be multiple users with the same name.
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  14. Post #94
    Sprite's Avatar
    October 2011
    294 Posts


    so i was arguing with Leif K Brooks about what is faster at animating.
    <canvas> or SVG (if supported)

    Who is right?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  15. Post #95
    Blue and Proud Of It.
    Dennab
    September 2011
    961 Posts


    so i was arguing with Leif K Brooks about what is faster at animating.
    <canvas> or SVG (if supported)

    Who is right?
    Neither, it's not the program. It's the animator.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Dumb Dumb x 3 (list)

  16. Post #96
    Sprite's Avatar
    October 2011
    294 Posts
    the programs do the animating???
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  17. Post #97
    Vietnow's Avatar
    February 2011
    920 Posts
    How do you make PHP "do nothing"?

    I have a contact form, with the script on the same page, and I don't know what to put in the "else" to stop it doing anything when the page first loads.

    Code:
    <?php
    	$to = "[removed]"; 
    	$subject = "Inquiry";
    	$name_field = $_POST['name'];
    	$email_field = $_POST['email'];
    	$message = $_POST['message'];
    
    	$body = "Sender: $name_field\n\nEmail: $email_field\n\nMessage:\n $message\n";
    
    if(isset($_POST['submit'])) {
    	
    	if ($name_field != NULL && $email_field != NULL && $message != NULL) {
    
    			if (mail($to, $subject, $body)) {
    				echo "<script type='text/javascript'>alert('Success')</script>";
    			} else {
    				echo "<script type='text/javascript'>alert('Failure')</script>";
    			}
    	} else {
    		--> What goes here? <--
    	}
    }
    ?>
    I've tried leaving out the else statement completely, and it stops the form working.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  18. Post #98
    Gold Member
    Sc00by22's Avatar
    August 2007
    1,253 Posts
    Removing the else shouldn't screw up the page in any way really, but:

    http://php.net/manual/en/function.exit.php
    http://php.net/manual/en/function.die.php

    You should probably check if everything was posted first before assigning variables to $_POST.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  19. Post #99
    RAPISTS ARE OPPRESSED
    mobrockers2's Avatar
    April 2011
    12,403 Posts
    How do you make PHP "do nothing"?

    I have a contact form, with the script on the same page, and I don't know what to put in the "else" to stop it doing anything when the page first loads.

    Code:
    <?php
    	$to = "[removed]"; 
    	$subject = "Inquiry";
    	$name_field = $_POST['name'];
    	$email_field = $_POST['email'];
    	$message = $_POST['message'];
    
    	$body = "Sender: $name_field\n\nEmail: $email_field\n\nMessage:\n $message\n";
    
    if(isset($_POST['submit'])) {
    	
    	if ($name_field != NULL && $email_field != NULL && $message != NULL) {
    
    			if (mail($to, $subject, $body)) {
    				echo "<script type='text/javascript'>alert('Success')</script>";
    			} else {
    				echo "<script type='text/javascript'>alert('Failure')</script>";
    			}
    	} else {
    		--> What goes here? <--
    	}
    }
    ?>
    I've tried leaving out the else statement completely, and it stops the form working.
    In the else you should have the code for the form, as if it isn't empty, it needs data.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  20. Post #100
    Vietnow's Avatar
    February 2011
    920 Posts
    It works fine like this:

    Code:
    <?php
    	$to = "[removed]"; 
    	$subject = "Inquiry";
    	$name_field = $_POST['name'];
    	$email_field = $_POST['email'];
    	$message = $_POST['message'];
    
    	$body = "Sender: $name_field\n\nEmail: $email_field\n\nMessage:\n $message\n";
    
    	
    	if ($name_field != NULL && $email_field != NULL && $message != NULL) {
    
    		if (mail($to, $subject, $body)) {
    				echo "<script type='text/javascript'>alert('Success')</script>";
    		} else {
    				echo "<script type='text/javascript'>alert('Failure')</script>";
    		}
    	} else {
    		echo "<script type='text/javascript'>alert('Empty')</script>";
    	}
    ?>

    When I put this around it, it stops working.
    Code:
     if (isset($_POST['submit'])) {
    
    
    }else{
    die();
    }
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  21. Post #101
    RAPISTS ARE OPPRESSED
    mobrockers2's Avatar
    April 2011
    12,403 Posts
    It works fine like this:
    You're telling it to stop working.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  22. Post #102
    Vietnow's Avatar
    February 2011
    920 Posts
    Wow I'm good at this...
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  23. Post #103
    Gold Member
    toaster468's Avatar
    January 2010
    3,230 Posts
    I got this legal question, I am making a Tumblr blog template and I want to know if it is legal for me to use the 960 Grid Library and distribute it, it is protected under GNU and MIT licenses. I am not going to sell it. Do I need to give a copyright notice? I looked at a website that used it and I see no obvious markings about it.

    The library:
    http://960.gs/

    Website that uses it but doesn't give reference to a library:
    http://fedoraproject.org/
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  24. Post #104
    Vietnow's Avatar
    February 2011
    920 Posts
    Code:
    <?php
    	$to = "[removed]"; 
    	$subject = "Inquiry";
    	$name_field = $_POST['name'];
    	$email_field = $_POST['email'];
    	$message = $_POST['message'];
    
    	$body = "Sender: $name_field\n\nEmail: $email_field\n\nMessage:\n $message\n";
    	
    	if ($name_field != NULL && $email_field != NULL && $message != NULL) {
    
    		if (mail($to, $subject, $body)) {
    				echo "<script type='text/javascript'>alert('Success')</script>";
    		} else {
    				echo "<script type='text/javascript'>alert('Failure')</script>";
    		}
    	} else {
    		echo "<script type='text/javascript'>alert('Empty')</script>";
    	}
    ?>
    This works well enough I guess, the only issue being that it executes the final else statement when the page first loads.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  25. Post #105
    RAPISTS ARE OPPRESSED
    mobrockers2's Avatar
    April 2011
    12,403 Posts
    Code:
    <?php
    	$to = "[removed]"; 
    	$subject = "Inquiry";
    	$name_field = $_POST['name'];
    	$email_field = $_POST['email'];
    	$message = $_POST['message'];
    
    	$body = "Sender: $name_field\n\nEmail: $email_field\n\nMessage:\n $message\n";
    	
    	if ($name_field != NULL && $email_field != NULL && $message != NULL) {
    
    		if (mail($to, $subject, $body)) {
    				echo "<script type='text/javascript'>alert('Success')</script>";
    		} else {
    				echo "<script type='text/javascript'>alert('Failure')</script>";
    		}
    	} else {
    		echo "<script type='text/javascript'>alert('Empty')</script>";
    	}
    ?>
    This works well enough I guess, the only issue being that it executes the final else statement when the page first loads.
    Like I said before, you'll want to have the form code in the else part of that check.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Friendly Friendly x 1 (list)

  26. Post #106
    Vietnow's Avatar
    February 2011
    920 Posts
    After all that, turns out it's because I used

    Code:
    <input type="submit" id="submit" value="Submit"/>
    instead of

    Code:
    <input type="submit" id="submit" value="Submit" name="submit"/>
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  27. Post #107
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    simple css question
    http://www.nielsgade.dk/adnan/index.html
    Code:
    <div id="topbanner";>WHAT THE FUCK HONESTLY</div>
    Code:
    #topbanner
    {
    	background-image:url(topbanner.jpg);
    	background-repeat: no-repeat;
    	height:255px;
    	width:1024px;
    }
    How do I align it to horizontal center
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  28. Post #108
    zzlawlzz's Avatar
    July 2010
    1,750 Posts
    simple css question
    http://www.nielsgade.dk/adnan/index.html
    Code:
    <div id="topbanner";>WHAT THE FUCK HONESTLY</div>
    Code:
    #topbanner
    {
    	background-image:url(topbanner.jpg);
    	background-repeat: no-repeat;
    	height:255px;
    	width:1024px;
    }
    How do I align it to horizontal center
    margin:auto;
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1 (list)

  29. Post #109
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    margin:auto;
    holy shit

    Edited:

    this is bullshit, I want to to stick to the center and be fixed, but those tags don't want to coexist.
    Code:
    	background-image:url(topbanner.jpg);
    	background-repeat: no-repeat;
    	position:fixed;
    	height:255px;
    	width:1024px;
    	margin:auto;
    	top:0px;
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  30. Post #110
    Sprite's Avatar
    October 2011
    294 Posts
    http://sekwet.k8r.us/ad-page/

    http://i.imgur.com/S84mw.png

    I think I give up. I'm just gonna do an image link map thing and call it a day. fuck the client

    but no seriously. i'm having all sorts of issues:
    -How can I get the testimonial gray box to fit on the far ends and the bottom?
    -why the fuck are my css borders just saying "no" ?
    -
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  31. Post #111
    zzlawlzz's Avatar
    July 2010
    1,750 Posts
    holy shit

    Edited:

    this is bullshit, I want to to stick to the center and be fixed, but those tags don't want to coexist.
    Code:
    	background-image:url(topbanner.jpg);
    	background-repeat: no-repeat;
    	position:fixed;
    	height:255px;
    	width:1024px;
    	margin:auto;
    	top:0px;
    use a css reset or do this

    html,body {
    padding:0;
    margin:0;
    }

    Edited:

    http://sekwet.k8r.us/ad-page/

    http://i.imgur.com/S84mw.png

    I think I give up. I'm just gonna do an image link map thing and call it a day. fuck the client

    but no seriously. i'm having all sorts of issues:
    -How can I get the testimonial gray box to fit on the far ends and the bottom?
    -why the fuck are my css borders just saying "no" ?
    -
    make sure the gray box has the same width of the white background.

    i.e. min-width:100%;width:100%;

    Edited:

    Then make another div container and make the width like 80% and margin:auto;
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1 (list)

  32. Post #112
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    use a css reset or do this

    html,body {
    padding:0;
    margin:0;
    }
    didn't work, resorting to iframe
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  33. Post #113
    Sprite's Avatar
    October 2011
    294 Posts

    1 answer down

    (ignore the middle line)
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 2 (list)

  34. Post #114
    zzlawlzz's Avatar
    July 2010
    1,750 Posts
    didn't work, resorting to iframe
    wait, what are you trying to do?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  35. Post #115
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    wait, what are you trying to do?
    banner fixed at top center
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  36. Post #116
    zzlawlzz's Avatar
    July 2010
    1,750 Posts

    1 answer down

    (ignore the middle line)
    Fuck. you are not wanted here.

    You got banned 2 times for being a dumbass. Why the fuck did I help you.

    Edited:

    banner fixed at top center
    position:fixed?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1Agree Agree x 1 (list)

  37. Post #117
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    position:fixed?
    snaps to the left
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  38. Post #118
    Sprite's Avatar
    October 2011
    294 Posts

    Got the last part too
    Christ. All this CSS html stuff is slipping my mind.
    Can't believe I forgot about those "border-styles'
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 3 (list)

  39. Post #119
    zzlawlzz's Avatar
    July 2010
    1,750 Posts
    snaps to the left
    left:0; right:0;
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1 (list)

  40. Post #120
    Positive energy is space expanding, negative energy is space contracting. Or reverse?
    onebit's Avatar
    July 2005
    6,405 Posts
    left:0; right:0;
    fuck me, thanks
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events Funny Funny x 1Friendly Friendly x 1 (list)