The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
I have made one, save it at main directory
<?php
define('_VALID', true);
require '/home/alp/public_html/libraries/bootstrap.php';
header("content-type:text/txt;charset=utf-8");
ob_start();
$total = $_GET['total'];
if ($total<2) {
$total=50;
}
$db = VF::factory('database');
$current_date = date('Y-m-d');
$index = array();
$sql= "SELECT v.video_id, v.title, v.slug, v.description, v.ext, v.duration,
v.thumb, v.add_time,
GROUP_CONCAT(DISTINCT vc.name) AS categories,
GROUP_CONCAT(DISTINCT t.name) AS tags
FROM #__video AS v
INNER JOIN #__video_category AS c ON (c.video_id = v.video_id)
INNER JOIN #__video_categories AS vc ON (vc.cat_id = c.cat_id)
INNER JOIN #__video_tags AS t ON (t.video_id = v.video_id)
WHERE v.status = 1
AND v.embed_code = ''
GROUP BY v.video_id
ORDER BY video_id DESC
LIMIT $total";
$videos = $db->get_rows($sql);
foreach ($videos as $video) {
$categories = explode(',', $video['categories']);
echo ''.$video['video_id'].'|'.e($video['title']).'|'.BASE_URL.'/'.$video['video_id'].'/'.$video['slug'].'/|'.e($video['categories']).'|'.$video['tags'].'|'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/'.$video['thumb'].'.jpg|',(int) $video['duration'],'|<![CDATA[ <iframe width="588" height="475" src="http://sitename.com/embed.php?id='.$video['video_id'].'" frameborder="0"></iframe> ]]>',"\n";
}
$content = ob_get_contents();
ob_end_clean();
echo $content;
?>
Offline
Hey Eri
Very interesting possibilities here for me. I would need to input the dump back to the db after editing
a quick tutorial on doing this would be of great help.
Thanks
Offline
Hey Eri
Very interesting possibilities here for me. I would need to input the dump back to the db after editing
a quick tutorial on doing this would be of great help.
Thanks
You can edit with driectadmin from your control panel, no need to do this.
Offline
Hey I understand that ,,, but in my case i have a migration with videos that are not classified correctly tag or category wise. Over 3000 need review. Seems like this is a good solution via this or a xml edit. Then upload to db
Offline
Pages: 1