This should be working without modification. Could you send along the content of your PHP page where you're using TubePress Pro? Also, it would be helpful if you could send along a link to your site so I could take a look. Feel free to PM me the address if you don't want to share it with the world. Thanks!
Hi I modified the tubepress_pro_2_1_2/examples/standalone.php as a test and all worked well except the language change.
I'll send you a link later to a site where I've installed it and the language change does not seem to work.
BTW I see a lot of requests on here for a search facility, presumably a Javascript based one. Anyone can just copy the part of my code below that submits a simple search by tags, but this does mean the page reloads.
Also does filter_racy = true mean it DOES filter adult content, or not? I wasn't sure, and in any case it seems the most recent uploads escape that filter. I think in the wordpress plugin this filter has three settings, not two.
Also I was wondering where the cached files are stored and whether the cache is self-cleaning?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
define('LANG', 'de_DE');
/* STEP 1/4: Enter the web-accessible URL of your TubePress installation */
$tubepress_base_url = "http://localhost/video/tubepress_pro_2_1_2"; //worked better without trailing /
//original: = 'http://yoursite.com/tubepress_pro_2_1_0/';
/* STEP 2/4: Include the TubePress stand-alone library file (tubepress-pro.php) */
include '../env/pro/tubepress-pro.php';
//original: include '/var/www/html/yoursite/tubepress_pro_2_1_0/env/pro/tubepress-pro.php';
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>TubePress Pro Example in Plain PHP</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- STEP 3/4: Include this statement inside the HEAD of your HTML document -->
<?php print tubepressHeadElements(true); ?>
</head>
<body>
<div>
<!-- STEP 4/4: Include this statement anywhere you want your gallery -->
<form name="input" action="" method="get" >
<?php
echo"<input type=\"text\" name=\"search\" value = \"$keyword\" onfocus=\"this.value = ''\" />";
?>
<input type="submit" value="Video Search" />
</form>
<?php
//if there is a search search by tags, otherwise fetch most recent
if(!empty($_GET['search'])){
$vid_search_term = strip_tags(trim($_GET['search']));
$mode_selected = 'tag';
} else {
$mode_selected = 'most_recent';
}
print tubepressGallery("resultsPerPage='15' mode='$mode_selected' playerLocation='fancybox' ajaxPagination='true' mode='tag' tagValue='$vid_search_term' tubepress randomize_thumbnails='true' filter_racy='true'");
//print tubepressGallery("resultsPerPage='3' mode='user' playerLocation='fancybox' ajaxPagination='true'");
?>
</div>
</body>
</html>