![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Join Date: May 2008
Posts: 9,802
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
![]() 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; } ![]() 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.
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Join Date: May 2008
Posts: 9,802
|
thx man. i'll add it on my site as well
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
You are welcome. Feel free to use this instruction as you want.
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Apr 2004
Posts: 1,892
|
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
__________________
AV Revenue High Quality Sites to Promote Official Twitter account Official Telegram account Skype: avrevenue Telegram: avrevenue |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Join Date: May 2008
Posts: 9,802
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
When are you going to put the import details on your site?
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Join Date: May 2008
Posts: 9,802
|
the module is about to get re-vamped in october
we will add those details during that process |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,363
|
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
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
Quote:
__________________
Obey the Cowgod |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,363
|
Quote:
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'] = '';
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
Quote:
Code:
echo '<pre>' . print_r($post, true) . '</pre>';
__________________
Obey the Cowgod |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,363
|
Quote:
You might run into any issues with the WordPress post object being called $post as well?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
Quote:
__________________
Obey the Cowgod |
|
![]() |
![]() ![]() ![]() ![]() ![]() |