GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tube script developers - in here please (https://gfy.com/showthread.php?t=1121929)

MrDeiz 09-24-2013 05:44 AM

Tube script developers - in here please
 
Many ask me whether SignBucks tube clips database is supported by your script

Can i ask you to provide "Import details for Signbucks database" for your script, e.g. how one can import 200k tube clips database into the script, how to use our rss feeds, how to import .mp4 clips only, etc

Much appreciated
Mail me mrdeiz @ signbucks.com if you've got questions

just a punk 09-24-2013 06:03 AM

Here is the step-by-step instruction on how to syndicate tube clips from SignBucks XML feed with CyberSEO plugin for WordPress and freeware video theme by http://www.adultsiteskins.com/

1) Add the SignBucks XML feed (example) to CyberSEO.

2) Assign the feed title and set the "Post thumbnail" option to "Generate from the 'thumb' custom field".

3) Scroll to the "Custom fields" box and paste there the following content:

url_video->url_video
url_thumb->thumb
seconds->duration
keywords->keywords


4) Put the PHP code below into the "PHP code <?php .. ?>" box:
Code:

$paysite_url = 'http://www.google.com/';
$post['guid'] = $post['custom_fields']['url_video'];
if (!cseo_post_exists($post)) {
    $post['custom_fields']['duration'] = date('i:s', $post['custom_fields']['duration']);
    $post['post_content'] = '[flv:' . $post['custom_fields']['url_video'] . ' ' . $post['custom_fields']['thumb'] . ' 750 564 ]';
    $post['post_content'] .= '<h3><a href="' . $paysite_url . '">Watch full-lenght video in HDV quality!</a></h3><p>' . $post['post_excerpt'] . '.</p>';
    $post ['tags_input'] = explode(',', $post['custom_fields']['keywords']);
    unset($post['custom_fields']['url_video']);
    unset($post['custom_fields']['keywords']);
} else {
    $post = false;
}

:warning Don't forget to replace "http://www.google.com/" with your affiliate link.

5) Click "Syndicate This Feed".

Important: The code above assumes that KVSPlayer (recommend one) or JWPlayer plugin is already installed and activated on your blog.

MrDeiz 09-24-2013 06:22 AM

thx man. i'll add it on my site as well

just a punk 09-24-2013 06:48 AM

You are welcome. Feel free to use this instruction as you want.

avrevenue 09-24-2013 08:06 PM

We just made a small tutorial for wpXtube: Adding a new feed from SignBucks tube clips database
We also update our script to support the last version of your XML

MrDeiz 09-26-2013 05:42 AM

Quote:

Originally Posted by cici131421 (Post 19811554)
We just made a small tutorial for wpXtube: Adding a new feed from SignBucks tube clips database
We also update our script to support the last version of your XML

nice :thumbsup

just a punk 10-01-2013 11:51 PM

When are you going to put the import details on your site?

MrDeiz 10-02-2013 12:55 AM

the module is about to get re-vamped in october
we will add those details during that process

fris 10-02-2013 07:00 AM

cyberseo i have someone trying to use a theme of mine with your cyberseo, they just want to get the video url, nothing more, from the code they said they sent me was from you, but it had awful regex to grab stuff, which i would like to avoid, since it will be called on every query, which is bad practice anyway.

can you give me the code to just get a video url

just a punk 10-14-2013 08:29 AM

Quote:

Originally Posted by fris (Post 19819728)
cyberseo i have someone trying to use a theme of mine with your cyberseo, they just want to get the video url, nothing more, from the code they said they sent me was from you, but it had awful regex to grab stuff, which i would like to avoid, since it will be called on every query, which is bad practice anyway.

can you give me the code to just get a video url

Sure I can. Which exactly XML feed you do you want to parse? Some feeds have the <link> tags, others do contain the video URL in <video> or <clip> sections etc. I need to see your feed to give you the proper code.

fris 10-14-2013 06:49 PM

Quote:

Originally Posted by CyberSEO (Post 19833804)
Sure I can. Which exactly XML feed you do you want to parse? Some feeds have the <link> tags, others do contain the video URL in <video> or <clip> sections etc. I need to see your feed to give you the proper code.

he is using it for youtube videos, so would need either just the youtube id or the full url (not embed) just the url.

Code:

if ($post ['post_content'] == '') {
    $post ['post_content'] = $post ['post_excerpt'];
}
$post ['post_content'] = html_entity_decode($post ['post_content']);
// assign preferred width and height of youtube video
$width = 500;
$height =350;
// extract image thumbnail
preg_match ( "/<img(.*?)src=[\'\"](.+?)[\'\"](.*?)>/s", $post ['post_content'], $matches );
$post ['custom_fields'] ['thumb'] = $matches [2];
// extract youtube clip id
preg_match ( "/www.youtube.com\/watch\?v=(.*?)[&|\"]/s", $post ['post_content'], $matches );
$clip_id = $matches [1];
// create youtube player code and insert the extracted clip id there
$video = "<iframe width=\"$width\" height=\"$height\" src=\"https://youtube.com/embed/$clip_id\" frameborder=\"0\" allowfullscreen></iframe>";
// extract the clip description
preg_match ( "/<span>(.*?)<\/span>/s", $post ['post_content'], $matches );
$post ['post_content'] = "<p>" . $video . "</p>\n<p>" . $matches [1] . "</p>\n";
$post ['post_excerpt'] = '';


just a punk 10-15-2013 01:41 AM

Quote:

Originally Posted by fris (Post 19834610)
he is using it for youtube videos, so would need either just the youtube id or the full url (not embed) just the url.

The full URL is located in $post['link']. BTW, you can always do this to see the contents of $post:

Code:

echo '<pre>' . print_r($post, true) . '</pre>';

fris 10-15-2013 08:02 AM

Quote:

Originally Posted by CyberSEO (Post 19834923)
The full URL is located in $post['link']. BTW, you can always do this to see the contents of $post:

Code:

echo '<pre>' . print_r($post, true) . '</pre>';

curious why are you using $post ?

You might run into any issues with the WordPress post object being called $post as well?

just a punk 10-15-2013 09:07 AM

Quote:

Originally Posted by fris (Post 19835253)
curious why are you using $post ?

You might run into any issues with the WordPress post object being called $post as well?

The plugin uses it because WordPress uses it too. CyberSEO simple allows you to modify the $post array right before it goes to the wp_insert_post function.

fris 10-15-2013 09:59 AM

ahh ok thanks.


All times are GMT -7. The time now is 12:03 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123