View Single Post
Old 02-19-2007, 11:02 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
complete Video site - 1 line of code (FREE)

Easy code
Code:
<form action=http://smokeycash.com/gvids/ target=hi><input type=text name=kw><input type=submit></form><iframe frameborder=0 name=hi width=800 height=9000>
To include your banners and a linkback on every video use the following code

Code:
<form action=http://smokeycash.com/gvids/ target=hi><input type=text name=kw><input type=submit>

<input type=hidden name=bi value=www.a-sponsor.com/banner.gif>
<input type=hidden name=bu value=www.a-sponsor.com>
<input type=hidden name=yu value=www.smokey.com>
<input type=hidden name=ex value="Some Link Text">
<input type=hidden name=size value=s>
<input type=hidden name=limit value=33>
<input type=hidden name=random value=yes>
</form><iframe frameborder=0 name=hi width=800 height=9000>
If you want to use php instead of html its a bit longer code but allows for alot more flexibility in how the results are displayed and is better for seo.

Code:
<form target=_top><input type=text name=kw><input type=submit></form>
<?php
$kw = $_GET["kw"];
$bi = "www.a-sponsor.com/banner.gif";
$bu = "www.a-sponsor.com";
$yu = "www.smokey.com";
$ex = "Some+Link+Text";
$size = "m";
$limit = "88";
$random = "";
if ($kw == ""){
echo "<br>ENTER A SEARCH TERM";
} else{
$html = file_get_contents("http://www.smokeycash.com/gvids/?kw=$kw&bi=$bi&bu=$bu&yu=$yu&ex=$ex&size=$size&limit=$limit&random=$random");
echo $html;
}
?>
There are a number of features you will notice in the code most are self explanatory

You can choose from small medium large or extra large thumbs, using "s" "m" "l" or "x" for size

You can show any number of results from 1-100 in the "limit"

You can choose between random results or non-random results using YES for random or leave blank for non-random results.

HTML example
http://tools.webspacemania.com/freevideos/example1.html
PHP example
http://tools.webspacemania.com/freevideos/example2.php

p.s. do not use the following characters in your banner , site or sponsor urls "?" , "&" or "=" if you must use them setup a redirect using the following code to setup a redirect ( to redirect an image just drop it in an empty folder with the code as index.php and call the image like www.mysite.com/banner/ )

[code]
<?php
header("Location: http://sponsor.com/?nats=funky&hello=yes");
?>
__________________
hatisblack at yahoo.com

Last edited by SmokeyTheBear; 02-19-2007 at 11:03 PM..
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote