• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • Fallen Kingdom Game

    gozmeu 27 juli 2026 om 23:49
  • Crimora.nl

    Dennii 11 juli 2026 om 13:13
  • RPG game gebouwd met AI

    zwpgangster 9 juli 2026 om 11:25
  • (Verkoop) Criminals

    Syntax 5 juli 2026 om 13:22
  • Het Grote Vibe Code Topic

    Syntax 30 juni 2026 om 11:54
  • Ictscripters Chat

    Jeffrey.Hoekman 26 juni 2026 om 16:21
  • Het oorspronkelijke Criminals Script

    Jeroen.G 24 juni 2026 om 09:21
  • StraatBaas is back, maar hoe?!

    Syntax 17 juni 2026 om 10:28

Marktplaats

  • 303 Nieuwe Domeinnamen Juli 2026

    shiga 1 augustus 2026 om 13:56
  • Straatbaas.eu – complete Nederlandstalige en Engelstalige online maffia-RPG

    Syntax 28 juli 2026 om 15:47
  • 306 Nieuwe Domeinnamen Juni 2026

    shiga 1 juli 2026 om 13:39

Ipod/Iphone webapplicatie fout

  • Dein
  • 16 mei 2009 om 16:08
  • Closed
  • Dein
    Master
    Berichten
    2.614
    • 16 mei 2009 om 16:08
    • #1

    Hey,

    Ik ben momenteel wat bezig geweest met het inbouwen van een soort twitter menu om te kijken wat die persoon heeft getwittert maar nu ben ik een beetje hopeloos aangezien hij steeds maar 1 twit laat zien ipv. ze allemaal.

    Het werkt vooral voor Ipod/Iphone maar je kan het ook hier in je browser bekijken: http://www.twitterphone.crimepatrol.be/

    Dit is het scriptje:

    PHP
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    
    
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    
    <head>
    
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    
    <title>TwitterPhone By Dein Dehouwer</title>
    
    
    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    
    
    
    
    
    
    <link rel="stylesheet" href="style.css" type="text/css" />
    
    
    <link rel="apple-touch-icon" href="apple-touch-icon.png"/>
    
    
    </head>
    
    
    
    
    
    
    <body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">
    
    
        <div id="header">TwitterPhone</div>
    
    
        <div id="content">
    
    
        <?php
    
    
        /* An little Twitter Aplication for the Iphone & Ipod Touch */
    
    
    
    
    
    
        // If there is submit something:
    
    
        if ( isset($_POST['submit']) )
    
    
        {
    
    
            // Your twitter username.
    
    
            $username = $_POST['twitname'];
    
    
    
    
    
    
            // Prefix - some text you want displayed before your latest tweet.
    
    
            // (HTML is OK, but be sure to escape quotes with backslashes: for example href=\"link.html\")
    
    
            $prefix = "<img src=\"twitter-t.png\" />";
    
    
    
    
    
    
            // Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)
    
    
            $suffix = "test";
    
    
    
    
    
    
            $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1";
    
    
    
    
    
    
            function parse_feed($feed)
    
    
            {
    
    
    
    
    
    
                $stepOne = explode("<content type=\"html\">", $feed);
    
    
                $stepTwo = explode("</content>", $stepOne[1]);
    
    
    
    
    
    
                $tweet = $stepTwo[0];
    
    
    
    
    
    
                return $tweet;
    
    
    
    
    
    
            }
    
    
    
    
    
    
            $twitterFeed = file_get_contents($feed);
    
    
        ?>
    
    
    
    
    
    
        <div id="username">Twitter of <?php echo $username; ?></div>
    
    
        <h3>Twit's:</h3>
    
    
    
    
    
    
        <?php
    
    
    
    
    
    
            echo "".stripslashes($prefix)." ".parse_feed($twitterFeed)." ".stripslashes($suffix)."";
    
    
        }
    
    
        else
    
    
        {
    
    
    
    
    
    
        ?>
    
    
            <h3>Twitter:</h3>
    
    
    <form method="POST">
    
    
    <table>
    
    
        <tr>
    
    
            <td>Twitter UserName:</td>
    
    
            <td><input type="text" name="twitname" /></td>
    
    
        </tr>
    
    
        <tr>
    
    
            <td>&nbsp;</td>
    
    
            <td><input type="submit" name="submit" value="Twit" /></td>
    
    
        </tr>
    
    
    </table>
    
    
    </form>
    
    
        </div>
    
    
    
    
    
    
    <?php
    
    
        }
    
    
    ?>
    
    
    
    
    
    
    </body>
    
    
    </html>
    Toon Meer

    Alvast bedankt!

    Mvg,

    Dein

    Verklein je links met http://url2s.nl

  • Dein
    Master
    Berichten
    2.614
    • 16 mei 2009 om 17:11
    • #2

    Thanks, maar nu heb ik er een foreach-lus ingestoken, maar nu werkt het nog niet.

    PHP
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    
    
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    
    <head>
    
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    
    <title>TwitterPhone By Dein Dehouwer</title>
    
    
    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    
    
    
    
    
    
    <link rel="stylesheet" href="style.css" type="text/css" />
    
    
    <link rel="apple-touch-icon" href="apple-touch-icon.png"/>
    
    
    </head>
    
    
    
    
    
    
    <body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">
    
    
        <div id="header">TwitterPhone</div>
    
    
        <div id="content">
    
    
        <?php
    
    
        /* An little Twitter Aplication for the Iphone & Ipod Touch */
    
    
    
    
    
    
        // If there is submit something:
    
    
        if ( isset($_POST['submit']) )
    
    
        {
    
    
            // Your twitter username.
    
    
            $username = $_POST['twitname'];
    
    
    
    
    
    
            // Prefix - some text you want displayed before your latest tweet.
    
    
            // (HTML is OK, but be sure to escape quotes with backslashes: for example href=\"link.html\")
    
    
            $prefix = "<img src=\"twitter-t.png\" />";
    
    
    
    
    
    
            // Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)
    
    
            $suffix = "test";
    
    
    
    
    
    
    
    
    
    
                $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=15";
    
    
    
    
    
    
    
    
    
    
            function parse_feed($feed)
    
    
            {
    
    
    
    
    
    
                $stepOne = explode("<content type=\"html\">", $feed);
    
    
                $stepTwo = explode("</content>", $stepOne[1]);
    
    
    
    
    
    
                $tweet = $stepTwo[0];
    
    
    
    
    
    
                return $tweet;
    
    
    
    
    
    
            }
    
    
    
    
    
    
            $twitterFeed = file_get_contents($feed);
    
    
            $twitterText = parse_feed($twitterFeed);
    
    
        ?>
    
    
    
    
    
    
        <div id="username">Twitter of <?php echo $username; ?></div>
    
    
        <h3>Twit's:</h3>
    
    
    
    
    
    
        <?php
    
    
    
    
    
    
        foreach ( $twitterText as $test )
    
    
        {
    
    
            echo "".stripslashes($prefix)." ".$test." ".stripslashes($suffix)."";
    
    
        }
    
    
        }
    
    
        else
    
    
        {
    
    
    
    
    
    
        ?>
    
    
            <h3>Twitter:</h3>
    
    
    <form method="POST">
    
    
    <table>
    
    
        <tr>
    
    
            <td>Twitter UserName:</td>
    
    
            <td><input type="text" name="twitname" /></td>
    
    
        </tr>
    
    
        <tr>
    
    
            <td>&nbsp;</td>
    
    
            <td><input type="submit" name="submit" value="Twit" /></td>
    
    
        </tr>
    
    
    </table>
    
    
    </form>
    
    
        </div>
    
    
    
    
    
    
    <?php
    
    
        }
    
    
    ?>
    
    
    
    
    
    
    </body>
    
    
    </html>
    Toon Meer

    Verklein je links met http://url2s.nl

  • Jesse.H
    Project Bandiet
    Berichten
    559
    • 16 mei 2009 om 18:22
    • #3

    400: Bad request ;).

    50 euro winnen én een maffia baas worden?

    CrimeXL.com

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Quanscient ontvangt €10M om AI- en kwantum-native hardware engineering te bevorderen - Tech.eu

    ICTscripters 27 mei 2026 om 12:03
  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design