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

Status
Not open for further replies.

graphicnut

Supreme Member
Joined
Feb 21, 2008
Messages
1,330
Reaction score
245
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
 
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\"/>";
?>
 
different version as in 1 section changed yeah :)
 
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
 
my site is also www[dot]sportstreamers[dotcom
have a look where the streams are placed
 
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:
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:
thanks for help guys, appreciated :)

Merry Christmas to you all too!:frog:
 
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:
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! :(
 
Last edited:
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top