• Home
    • Recent
    • Calendar
    • Register
    • Login
    Iron Heart Forum
    Iron Heart Forum

    Iron Heart Fall/Winter 2025 Collection Preview - Now Live

    Random questions to which you seek an answer

    The Resource Centre
    723
    18.5k
    6.9m
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Snowy
      Joined:

      MCL, that's not a stupid call.

      Shoque, I know you're busy mate, here's code to directly upload images to S3 means they'll never disappear.

      
      include('s3_config.php');
      
      if($s3->putObjectFile('imgs/'.$actual_image_name, $bucket , $actual_image_name, S3::ACL_PUBLIC_READ) )
      {
      echo "
      
      ### Upload Successful.
      
      "; 
      $s3file='http://'.$bucket.'.s3.amazonaws.com/'.$actual_image_name;
      echo 'S3 File URL:'.$s3file.'
      ';
      echo 'Forum Code: [img]'.$s3file.'[/img]
      
      ';
      echo "![]($s3file)
      ";
      
      }
      else
      $msg = "S3 Upload Fail.";
      
      }
      else
      $msg = "Image size Max 5 MB";
      
      }
      else
      $msg = "Invalid file, please upload image file.";
      
      }
      else
      $msg = "Please select image file.";
      
      }
      
      ?>
      
      

      Originally from; http://undesigned.org.za/2007/10/22/amazon-s3-php-class

      last edited by 1 Reply Last reply Reply Quote 0
      • S
        shoque
        Joined:

        @mclaincausey:

        I like the Add image to post feature, but have a request:

        Can we either have it

        • Not add a URL to postimage.org

        • Make the URL to postimage.org open to the image page instead of the base URL

        ?

        I will try to modify the JS-bits to achieve that, can't promise anything though.

        last edited by 1 Reply Last reply Reply Quote 0
        • mclaincauseyM
          mclaincausey
          見習いボス
          Joined:

          Hey that's great thanks man 🙂

          Think it, be it.

          last edited by 1 Reply Last reply Reply Quote 0
          • mclaincauseyM
            mclaincausey
            見習いボス
            Joined:

            Realizing I can no longer abide the fit of my cashmere overcoat since losing weight, I'm looking for a pea coat / overcoat hybrid. That's to say, a pea coat that has a long body. Appropriate for a suit or jeans. Gotta be heavy, 30 oz or heavier, or if not insulated somehow.

            Think it, be it.

            last edited by 1 Reply Last reply Reply Quote 0
            • S
              shoque
              Joined:

              @mclaincausey:

              I like the Add image to post feature, but have a request:

              Can we either have it

              • Not add a URL to postimage.org

              • Make the URL to postimage.org open to the image page instead of the base URL

              ?

              Having looked at the code shortly, I think this is done via the JS in the postimage.org-popup, so not possible at the moment. i would love to implement this properly via imgur or s3 some time.

              last edited by 1 Reply Last reply Reply Quote 0
              • mclaincauseyM
                mclaincausey
                見習いボス
                Joined:

                Thanks!

                Think it, be it.

                last edited by 1 Reply Last reply Reply Quote 0
                • natehateN
                  natehate
                  啓蒙家
                  Joined:

                  how does a canadian text a english number?

                  don't you know there ain't no devil? only god when he's drunk!

                  last edited by 1 Reply Last reply Reply Quote 0
                  • SeulS
                    Seul
                    Joined:

                    Slowly (ey)…

                    last edited by 1 Reply Last reply Reply Quote 0
                    • GilesG
                      Giles
                      IHUK Crew
                      Joined:

                      Let me see if I can find anything oot aboot that question…

                      "OK face up to it - you're useless but generally pretty honest and straightforward . . . it's a rare combination of qualities that I have come to admire in you" - Geo 2011

                      last edited by 1 Reply Last reply Reply Quote 0
                      • thomasnunnallyT
                        thomasnunnally
                        Joined:

                        @Seul:

                        Slowly (ey)…

                        Haha!

                        Nate, I don't think you have to do anything special…..maybe put the country code (1) before the number.  There can't be much to it.

                        Out with the new! In with the old!

                        last edited by 1 Reply Last reply Reply Quote 0
                        • GilesG
                          Giles
                          IHUK Crew
                          Joined:

                          Nope, you need to do +44 then the number without the leading zero….

                          So my mobile is 07740706464

                          You would text:

                          +44 7740706464
                          or 0044 7740706464

                          "OK face up to it - you're useless but generally pretty honest and straightforward . . . it's a rare combination of qualities that I have come to admire in you" - Geo 2011

                          last edited by 1 Reply Last reply Reply Quote 0
                          • thomasnunnallyT
                            thomasnunnally
                            Joined:

                            @Giles:

                            Nope, you need to do +44 then the number without the leading zero….

                            So my mobile is 07740706464

                            You would text:

                            +44 7740706464
                            or 0044 7740706464

                            So why do you brits have that leading 0 then?  Otherwise it makes sense.  Also, whats the logic on these country codes….never thought about it before.

                            Out with the new! In with the old!

                            last edited by 1 Reply Last reply Reply Quote 0
                            • SeulS
                              Seul
                              Joined:

                              Same for Belgium… My digits are 0485 XX XX XX, if you'd wanna text me it'd be 0032485 XX XX XX..

                              last edited by 1 Reply Last reply Reply Quote 0
                              • natehateN
                                natehate
                                啓蒙家
                                Joined:

                                okay new problem
                                im receiving texts but cant respond?

                                don't you know there ain't no devil? only god when he's drunk!

                                last edited by 1 Reply Last reply Reply Quote 0
                                • J
                                  jdl1279
                                  Joined:

                                  Thomas,

                                  I don't see how it's any different here in the States, you dial 1+ area code to dial anything that isn't local. Now add a country code, which they would need as well calling us, ours happens to be a extra 1. Do you see how the numbers then fall into place?

                                  Bourbon: because living in Kentucky just makes you want to drink

                                  last edited by 1 Reply Last reply Reply Quote 0
                                  • natehateN
                                    natehate
                                    啓蒙家
                                    Joined:

                                    never mind i got it

                                    don't you know there ain't no devil? only god when he's drunk!

                                    last edited by 1 Reply Last reply Reply Quote 0
                                    • thomasnunnallyT
                                      thomasnunnally
                                      Joined:

                                      @jdl1279:

                                      Thomas,

                                      I don't see how it's any different here in the States, you dial 1+ area code to dial anything that isn't local. Now add a country code, which they would need as well calling us, ours happens to be a extra 1. Do you see how the numbers then fall into place?

                                      I never have to use a country code within the US.  But, I have a feeling that is already built in, which is logical.  I don't get the extra zeros that Giles mentioned

                                      If you look online, not all countries use that prefix.  Also, why is Uzbekistan 998, UK 44 and US, 1?

                                      The question isn't important at all, but I couldn't extract the reasoning from wikipedia, so just wondering what the logic is.

                                      Out with the new! In with the old!

                                      last edited by 1 Reply Last reply Reply Quote 0
                                      • GilesG
                                        Giles
                                        IHUK Crew
                                        Joined:

                                        @Seul:

                                        Same for Belgium… My digits are 0485 XX XX XX, if you'd wanna text me it'd be 0032485 XX XX XX..

                                        @thomasnunnally:

                                        @Giles:

                                        Nope, you need to do +44 then the number without the leading zero….

                                        So my mobile is 07740706464

                                        You would text:

                                        +44 7740706464
                                        or 0044 7740706464

                                        So why do you brits have that leading 0 then?  Otherwise it makes sense.  Also, whats the logic on these country codes….never thought about it before.

                                        Virtually every country has a leading zero in their phone number.

                                        Read this:

                                        http://en.wikipedia.org/wiki/Telephone_numbering_plan

                                        and this:

                                        http://wikitravel.org/en/List_of_country_calling_codes

                                        "OK face up to it - you're useless but generally pretty honest and straightforward . . . it's a rare combination of qualities that I have come to admire in you" - Geo 2011

                                        last edited by 1 Reply Last reply Reply Quote 0
                                        • GilesG
                                          Giles
                                          IHUK Crew
                                          Joined:

                                          The 00 or + is to indicate to the country that you are dialling from that you want to dial outside the country.

                                          "OK face up to it - you're useless but generally pretty honest and straightforward . . . it's a rare combination of qualities that I have come to admire in you" - Geo 2011

                                          last edited by 1 Reply Last reply Reply Quote 0
                                          • GilesG
                                            Giles
                                            IHUK Crew
                                            Joined:

                                            And here is a "fascinating" read….

                                            http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.164D-2009-PDF-E.pdf

                                            "OK face up to it - you're useless but generally pretty honest and straightforward . . . it's a rare combination of qualities that I have come to admire in you" - Geo 2011

                                            last edited by 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright Iron Heart 2025.