Sponsors

List of our best sponsors and information for paysite owners.

Smart Scripts scripts provide an opportunity for easy updating site with flash movie galleries localy created from sponsor provided content. This page explains how to create a feed that contains information about your video galleries. You, as sponsor, provide just raw content data without ads and ref codes. The key for selecting proper ads for each video is <paysite> tag, which identify where comes the video from and webmaster can select custom ad(s) for each of his tgp sites.

Example feed XML code:
<?xml version="1.0" encoding="UTF-8"?>
<videos>
<updated>2006-04-06T20:30:34+01:00</updated>
<total>1234</total>
<video>
       <id>123</id>
       <title>Video title</title>
       <description>Video description</description>
       <tags>tag1,tag2,tag3,tag4,two-words tag</tags>
       <paysite>paysite.com</paysite>
       <clip_url>http://flv.site.com/galleries/1234/</clip_url>
       <screen_url>http://img.site.com/galleries/1234/</screen_url>
       <clips>
               <clip>
               <duration>120</duration>
               <width>512</width>
               <height>240</height>
               <flv>1.flv</flv>
               <screens>
                        <screen>1_1.jpg</screen>
               </screens>
               </clip>
       </clips>
</video>
</videos>

XML feed always contains only new videos from last update. Which means if you add today 20 new videos, then you display just these and set actual time into <updated> tag.

Your feed should support range requests to allow users to fetch all galleries from your database if they need to. Range request is made by passing GET parameters to your feed url (eg. feed.php?start=0&limit=100) with ranges from 0-x, when you usually pass these parameters as range for MySQL LIMIT start,limit.

Working examples
http://www.nubiles.net/webmasters/promo/dumpsmart.php (showing galleries from last update only)
http://www.nubiles.net/webmasters/promo/dumpsmart.php?start=100&limit=10 (showing 10 videos starting 100th entry, notice displayed <total> tag)
? = optional subtag
* = zero or more instances of the subtag
+ = one or more instances of the subtag

item   definition
<videos>   encapsulates all of the videos listings in the feed.
<updated>   last time xml file was updated, file is parsed only when timestamp changes. Timestamp is formatted according to the rules specified by RFC 3339.
<total>   this value is displayed only by range requests and contains total value of galleries in database. Range requests are requests for galleries when two parameters are passed to feed url, for eg. feed.php?start=0&limit=100, where start and end values are free to set. Feed then returns galleries in range 0-100 from database (start=200&limit=100 returns galleries 200-300). This tag is very important because it tells to xml parser where to end by range requests. You have to follow names for parameters start and limit.
<video> + block which contains informations about one video. This block is repeat for each item in feed.
<id>   unique ID of video from your database. INT (11)
<title>   title of video, 255 characters max.
<description> ? description of video
<tags> ? keywords related to given video separated by comma, 255 characters max.
<paysite>   paysite name for video. This must be unique and static name, which means once you create it, can't be changed in future. Paysite name is used for finding matching ads for each video in our database, thus have to be same all the time.
<clip_url>   root directory for all videos
<screen_url>   root directory for all video screenshots
<clips>   block which contains informations about clip for given video. This block is repeat for each clip.
<clip> + contains information about one clip.
<duration>   duration of clip in seconds
<width> ? width of clip in pixels
<height> ? height of clip in pixels
<flv>   location to video file, relative to <clip_url>. Your video file can be in any video format supported by FLASH, though you should give a choice to select if people want to use just .flv videos compatible with older FLASH versions or also new h264 format eg. .mp4. This could be easily done by adding special parameter to your feed, which will be specific just for your feeds, eg.:
(will display just .flv videos)
(will display just .mp4 videos)
(will display all available formats)

next parameters could be passed to your feeds of course eg.:

You can give a choice to people what video quality they want to use by creating several xml feed files by video quality/length/clips amount/resolution.
<screens>   block which contains informations about screenshots of given videoclip.
<screen> + location to image file, relative to <screen_url>
Additional Guidelines
Your XML file(s) must follow these guidelines:
  • Your feed must use UTF-8 encoding. Please specify this encoding schema by including the encoding attribute in your XML tag as shown in the sample XML below.
  • XML tags without data should be omitted from your feed.
  • XML tags should not contain HTML unless the XML tag definition explicitly specifies that HTML markup is acceptable.
  • All data values, including URLs, in your feed must use escape codes for the characters listed in the following table.
character name xml
& ampersand &amp;
< less-than sign &lt;
> greater-than sign &gt;
' apostrophe &apos;
" quotation &quot;

Do you have already XML feed prepared? You can test it at our site
XML FEED TESTER
 

What they say?

Finally after a long and frustrating search for the perfect tube script the search has ended. Smart Tube Professional is all you need to run whatever type of tube script you can think of. With it's build in payment processor support it's super easy to integrate payment support for CCBILL, EPOCH, MPA3, NATS4 to just name a few. The Smart Scripts team did it again!

Ip0li
ScriptPulse


Time has come to change from TGP's to tubes and Smart Tube Pro would be the best way to go with. After 2 weeks my my search engine traffic grew from almost a 0 to 7k per day. STP proved it self to be friendly to search engine and gave life to the site.

Seadevil


STP is the third tube script i get to setup and install from the ground, and i can tell you STP is at another level, i wont lie you here.. you will not have the site running in 1 day, but it will do EVERYTHING you need from a professional tube script, its fast and have all the features you might need. If you are working on a serious project then look no further, STP will be the key to your success.

Thy