members upload a video, it posts, but only as a black screen 0.00 minutes, it doesnt matter if they upload as slf,flv or wmv.
when I look at it through edit, thats what I see.
/problem-with-post-edit-buttonome3/sydney09/public_html/wp-content/sp-resources/forum-plugins/uploads-viewer/library/sp-uploads-viewer-display.php
/problem-with-post-edit-buttonome3/sydney09/public_html/wp-content/sp-resources/forum-plugins/uploads-viewer/library/sp-uploads-viewer-display.php, does not appear to have 65 lines ??
so where do look to fix this?
<?php
/*
Simple:Press
Uploads Viewer Plugin file tree dipslay routine
$LastChangedDate: 2014-12-22 14:04:57 -0800 (Mon, 22 Dec 2014) $
$Rev: 12216 $
*/
$_POST[‘dir’] = urldecode($_POST[‘dir’]);
$_POST[‘url’] = urldecode($_POST[‘url’]);
$slug = explode(‘/’, $_POST[‘url’]);
$pieceCount = count($slug);
$user = $slug[$pieceCount-2].’/’;
$add = explode($user, $_POST[‘dir’]);
$url = $_POST[‘url’].$add[1];
$dir = str_replace(‘/’, ‘-‘, $add[1]);
$type = $_POST[‘type’];
if (file_exists($_POST[‘dir’])) {
$files = scandir($_POST[‘dir’]);
natcasesort($files);
if (count($files) > 0) { /* The 2 accounts for . and .. */
echo “<ul class=”jqueryFileTree” style=”display: none;”>”;
# All dirs
foreach ($files as $file) {
if (file_exists($_POST[‘dir’].$file) && $file != ‘.’ && $file != ‘..’ && $file != ‘_thumbs’ && is_dir($_POST[‘dir’].$file)) {
echo “<li class=”directory collapsed”><a href=”#” rel=””.htmlentities($_POST[‘dir’].$file).”/”>”.htmlentities($file).”</a></li>”;
}
}
# All files
foreach ($files as $x => $file) {
if (file_exists($_POST[‘dir’].$file) && $file != ‘.’ && $file != ‘..’ && !is_dir($_POST[‘dir’].$file)) {
$ext = preg_replace(‘/^.*./’, ”, $file);
switch ($type) {
case ‘images’:
$thumb = $url.’_thumbs/_’.$file;
$imgInfo = @getimagesize(htmlentities($_POST[‘dir’].$file));
$out = “<li class=’file ext_$ext’><a id=’file$dir$x’ “;
$out.= “onclick=’spjEdInsertAttachment(“”.htmlentities($file).””, “”.htmlentities($file).””, “”.htmlentities($url).””, “”, “”.$imgInfo[0].””, “”.$imgInfo[1].””);’ “;
$out.= “onmouseover=’spjViewThumb(“file”.$dir.$x.””, “”.$thumb.””);’ “;
$out.= “onmouseout=’spjCloseThumb();’ “;
$out.= “>”.htmlentities($file).”</a></li>”;
echo $out;
break;
case ‘media’:
$width = urldecode($_POST[‘width’]);
$height = urldecode($_POST[‘height’]);
echo “<li class=’file ext_$ext’><a onclick=’spjEdInsertMediaAttachment(“”.htmlentities($file).””, “”.htmlentities($url).””, “”.$width.””, “”.$height.””)’>”.htmlentities($file).”</a></li>”;
break;
case ‘files’:
echo ‘<li class=”file ext_’.$ext.'”><a onclick=”spjEdInsertText(‘<a href=’.htmlentities($url.$file).’>Download ‘.$file.'</a>’)”>’.htmlentities($file).'</a></li>’;
break;
}
}
}
echo “</ul>”;
}
} else {
echo __(‘No existing uploads’, ‘sp-uv’);
so where is the error ?