Adult Script Pro Community Forums

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.

#26 2011-07-02 11:45:16

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

thank you for mail eri...i do anything like u say.but is not work for me sad


lets see what i have done

/video_view_player.tpl.php

<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<p id="container1"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /></a></p>
<script type="text/javascript">
var flashvars = {config:'<?php echo BASE_URL; ?>/modules/video/player/config.php?id=<?php echo $this->video['video_id']; ?>' ,plugins:'http://xporn4u.com/modules/video/player/dockableskinnableplugin.swf'};
var params = {allowfullscreen:'true', allowscriptaccess:'always', wmode:'transparent'};
var attributes = {id:'player1', name:'player1'};
swfobject.embedSWF('<?php echo BASE_URL; ?>/modules/video/player/player.swf','container1','650','480','9.0.115','false',flashvars, params, attributes);
</script>

in /modules/video/player/config.php

80-93 lines

<config>
  <file><?php echo $video_url; ?></file>
  <start>0</start>
  <stretching>exactfit</stretching>
  <smoothing>true</smoothing>
  <autostart>true</autostart>
  <plugins>sharing-2,dockableskinnableplugin</plugins>
<dockableskinnableplugin.piclink>http://xporn4u.com/modules/video/player/thumb.php?id=<?php echo $video_id; ?></dockableskinnableplugin.piclink>
  <sharing.link>http://alotporn.com/<?php echo $video_id,'/',$video['slug']; ?>/</sharing.link>
  <aboutlink>http://xporn4u.com</aboutlink>
  <abouttext>Xporn4u.com - Free Porn Tube</abouttext>
<sharing.link>http://xporn4u.com/<?php echo $video_id,'/',$video['slug']; ?>/</sharing.link>
  <sharing.code><![CDATA[ your embed code]]></sharing.code>
</config>

in modules/video/player/thumb.php


<?php
define('_VALID', true);
require '/home/thiva77/public_html/libraries/bootstrap.php';

error_reporting(E_ALL);
ini_set('display_errors', 1);

$video_id     = (isset($_GET['id'])) ? (int) $_GET['id'] : 0;
if ($video_id === 0) {
    die('Invalid video id!');
}

header("content-type:text/xml;charset=utf-8");
ob_start();
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<data>";
$db                = VF::factory('database');
$current_date    = date('Y-m-d');
$index            = array();            
$sql                = "SELECT v.video_id, v.thumb,
                                     GROUP_CONCAT(DISTINCT c.cat_id) AS categories,
                                     GROUP_CONCAT(DISTINCT c.slug) AS slugs,
                                     GROUP_CONCAT(DISTINCT c.name) AS name,
                                     GROUP_CONCAT(DISTINCT t.name) AS tags
                                FROM #__video AS v
                                LEFT JOIN #__video_category AS vc ON (vc.video_id = v.video_id)
                                LEFT JOIN #__video_categories AS c ON (vc.cat_id = c.cat_id)
                                LEFT JOIN #__video_tags AS t ON (t.video_id = v.video_id)
                                LEFT JOIN #__video_meta AS vm ON (vm.video_id = v.video_id)
                                LEFT JOIN #__user AS u ON (u.user_id = v.user_id)
                                WHERE v.video_id = ".$video_id."";
$videos = $db->get_rows($sql);                  
foreach ($videos as $video) {                                            
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/1.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/2.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/3.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/4.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/5.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/6.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/7.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/8.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/9.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/10.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/11.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/12.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/13.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/14.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/15.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/16.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/17.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/18.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/19.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/20.jpg</link>',"\n"; }
echo "</data>";

VF::close();



?>

i forget something?

Offline

#27 2011-07-02 15:13:20

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

There is an errors with your thumbs links, your images are not there
http://xporn4u.com/modules/video/player … p?id=25877


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#28 2011-07-02 15:31:13

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

Offline

#29 2011-07-08 12:33:53

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

why is not work for me sad

Offline

#30 2011-07-08 12:36:47

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

lol, maybe because you have the free player,


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#31 2011-07-08 14:03:08

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

you can try to upload to your server the free edition to see if is work??

Offline

#32 2011-08-19 06:06:55

jimmyblaze
Member
From: NY
Registered: 2011-07-13
Posts: 57
Website

Re: Show thumbtails on player bar

Hey,

Will this feature work with sponsor hosted videos?

Offline

#33 2012-03-15 08:23:19

Jeff
Member
Registered: 2012-02-14
Posts: 39

Re: Show thumbtails on player bar

I tried it, but it doesn't work for me as well. sad

Anyone can confirm if it only work for paid player?

Last edited by Jeff (2012-03-16 11:53:23)

Offline

Board footer

Powered by FluxBB