1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skilled PHP'er who can write a small script (tiny)

Discussion in 'Hire a Freelancer' started by graphicnut, Dec 21, 2009.

  1. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    Need a good guy for a small script that basicly changes an id or token in some embed sources i have and then outputs it.

    i.e

    <embed width="600" height="420" wmode="transparent" allowscriptaccess="never" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.vshare.tv/flash/embed.swf?token=15iq2s0qius&autoplay=true"/>

    Id like to be able to change the token= in a flash and have it output changed ready to copy/paste.
    So it would basicly be a select box to slect the source and an input box for the id/channel/token and then submit or something for the ouput.

    I need 4 different sources done, i have all 4 sources ready
     
  2. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    quick bucks boys :p
     
  3. Entrepreneur

    Entrepreneur Regular Member

    Joined:
    Oct 12, 2007
    Messages:
    438
    Likes Received:
    379
    I'm not in anyway volunteering for the job, but i'm really confused as to what you want.

    Do you mean you want a page with boxes that you fill in then it gives you a different version of the above snippet? Surely it would be eaiser to build a php page and dynamicly alter it by passing the editable tokens within the URL?

    i.e. mysite.com/page.php?t=387y4r488248eu

    PHP:
    <?php
    $token 
    =$_GET['t'];
    echo 
    "<embed width=\"600\" height=\"420\" wmode=\"transparent\" allowscriptaccess=\"never\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" src=\"http://www.vshare.tv/flash/embed.swf?token=" $token "&autoplay=true\"/>";
    ?>
     
  4. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    different version as in 1 section changed yeah :)
     
  5. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    basicly in this snippet

    <embed width="600" height="420" wmode="transparent" allowscriptaccess="never" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.vshare.tv/flash/embed.swf?token=15iq2s0qius&autoplay=true"/>

    the bold / red text needs to be changed easily
     
  6. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    my site is also www[dot]sportstreamers[dotcom
    have a look where the streams are placed
     
  7. trushafty38

    trushafty38 Regular Member

    Joined:
    Jul 24, 2009
    Messages:
    208
    Likes Received:
    99
    Occupation:
    I have many Hats, Including a black one.
    Location:
    My rep is ruined! lol
    graphicnut i have a programmer i use that is really good and fast. If you want his contact info let me know if you dont find someone else


    EDIT: on a second look i could do this but probably not worth my time how much for this job?
     
    Last edited: Dec 21, 2009
  8. ukescuba

    ukescuba Senior Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    635
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    this should get you going - save this as token.php any filename will work just as long as it has .php at the end
    Code:
    <?
    $token = $_GET["token"];
    echo "<FORM ACTION=$PHP_SELF>\n";
    echo "Enter Token: <INPUT TYPE=TEXT NAME=token VALUE=$token><BR>\n";
    echo "<INPUT TYPE=submit value=\"Submit Token\">\n";
    echo "</FORM>\n";
    ?>
    <textarea id="codearea" name="codearea" rows="10" cols="30">
    <embed width="600" height="420" wmode="transparent" allowscriptaccess="never" allowfullscreen="true" type="application/x-shockwave-flash" src=""http://www.vshare.tv/flash/embed.swf?token=<?php echo "$token"; ?>&autoplay=true"/>
    </textarea><br>
    <button onclick="document.getElementById('codearea').select()">Select Code</button>
    
    im thinking thats what you wanted? either way merry christmas! :)
     
    Last edited: Dec 21, 2009
  9. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    thanks for help guys, appreciated :)

    Merry Christmas to you all too!:frog:
     
  10. ukescuba

    ukescuba Senior Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    635
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    for adding your other sources simply modify the embed code to suit in each case sticking
    Code:
    <?php echo "$token"; ?>
    wherever you want your token to be displayed...

    Code:
    <?
    $token = $_GET["token"];
    echo "<FORM ACTION=$PHP_SELF>\n";
    echo "Enter Token: <INPUT TYPE=TEXT NAME=token VALUE=$token><BR>\n";
    echo "<INPUT TYPE=submit value=\"Submit Token\">\n";
    echo "</FORM>\n";
    ?>
    <textarea id="codearea" name="codearea" rows="10" cols="30">
    <embed width="600" height="420" wmode="transparent" allowscriptaccess="never" allowfullscreen="true" type="application/x-shockwave-flash" src=""http://www.vshare.tv/flash/embed.swf?token=<?php echo "$token"; ?>&autoplay=true"/>
    </textarea><br>
    
    <button onclick="document.getElementById('codearea').select()">Select Code</button><br>
    <br>
    <textarea id="codearea1" name="codearea1" rows="10" cols="30">
    embed code goes here
    </textarea><br>
    
    <button onclick="document.getElementById('codearea1').select()">Select Code</button><br>
    <br>
    <textarea id="codearea2" name="codearea2" rows="10" cols="30">
    embed code goes here
    </textarea><br>
    
    <button onclick="document.getElementById('codearea2').select()">Select Code</button><br>
    <br>
    <textarea id="codearea3" name="codearea3" rows="10" cols="30">
    embed code goes here
    </textarea><br>
    
    <button onclick="document.getElementById('codearea3').select()">Select Code</button>
    
    hth - i gotta step out but will be back shortly...
     
    Last edited: Dec 21, 2009
  11. De_Raja

    De_Raja Newbie

    Joined:
    Jul 10, 2009
    Messages:
    11
    Likes Received:
    3
    Nevermind.
     
  12. ukescuba

    ukescuba Senior Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    635
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    some stuff is like a 2 minute job guys... what happened to community spirit? we are supposed to help each other here - yes time is money but 2 minutes work jeez... charge for a big job yeah but not something you can do with your eyes closed in under 2min... look at graphicnuts stats the fella hasnt got 300+ thanks for not helping out fellow bhws, this is least i can do to thank the guy! :(
     
    • Thanks Thanks x 1
    Last edited: Dec 21, 2009
  13. SHOwnsYou

    SHOwnsYou Registered Member

    Joined:
    Jun 21, 2009
    Messages:
    94
    Likes Received:
    94
    I already took care of him for free.
     
    • Thanks Thanks x 1
  14. graphicnut

    graphicnut Supreme Member

    Joined:
    Feb 21, 2008
    Messages:
    1,333
    Likes Received:
    240
    Aye, thanks to both of you :)